Skip to content

Instantly share code, notes, and snippets.

@jonathandavis
Created October 22, 2013 14:18
Show Gist options
  • Save jonathandavis/7101535 to your computer and use it in GitHub Desktop.
Save jonathandavis/7101535 to your computer and use it in GitHub Desktop.
<?php
//Add One handling fee for any quantity
add_filter('shopp_cart_fees','flat_rate_filter');
function flat_rate_filter ( $fee ) {
$shipping = shopp('cart.get-shipping','number=on');
$products = array();
while( shopp('cart.items') )
$products[] = shopp('cartitem.get-product');
if ( in_array(1062, $products) && in_array(2126, $products) )
$fee = $shipping + 24.69;
return $fee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment