Created
October 22, 2013 14:18
-
-
Save jonathandavis/7101535 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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