I've tried to change the code somewhat and it still displays the shipping options ive excluded. Any help would be appreciated!
I'm using the newest version of zen-cart and USPS module.
PHP Code:
global $cart;
$chk_products15 = $_SESSION['cart']->in_cart_check('products_id','15');
$chk_products16 = $_SESSION['cart']->in_cart_check('products_id','16');
$chk_products42 = $_SESSION['cart']->in_cart_check('products_id','42');
$chk_products43 = $_SESSION['cart']->in_cart_check('products_id','43');
$chk_products73 = $_SESSION['cart']->in_cart_check('products_id','73');
$chk_products74 = $_SESSION['cart']->in_cart_check('products_id','74');
$chk_products76 = $_SESSION['cart']->in_cart_check('products_id','76');
$chk_products77 = $_SESSION['cart']->in_cart_check('products_id','77');
$chk_products81 = $_SESSION['cart']->in_cart_check('products_id','81');
$chk_products82 = $_SESSION['cart']->in_cart_check('products_id','82');
$chk_products83 = $_SESSION['cart']->in_cart_check('products_id','83');
$chk_products84 = $_SESSION['cart']->in_cart_check('products_id','84');
$skip_type = false;
if ( ($type == 'First-Class Mail International Large Envelope' ||$type == 'First-Class Mail International Package' ||$type == 'Priority Mail International Flat Rate Envelope' ||$type == 'Priority Mail International Small Flat Rate Box' ||$type == 'Express Mail International Flat Rate Envelope' || $type == 'Priority Mail International Small Flat Rate Box') && ($chk_products15 +$chk_products16 + $chk_products42 + $chk_products43 + $chk_products73 + $chk_products74 + $chk_products76 + + $chk_products77 + $chk_products81 + $chk_products82 $chk_products83 + $chk_products84 +) > 0) {
$skip_type = true;
}
if ( ($type == 'Priority Mail International Medium Flat Rate Box' ) && ($chk_products42 + $chk_products43 + $chk_products74 + $chk_products77 + $chk_products83 + $chk_products84 ) > 0) {
$skip_type = true;
}
if ($skip_type) {
// do not show excluded shipping types
} else {
Bookmarks