Customize the freeoptions.php and change the code to read:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
}
// only show if products_id 11 or 12 are in the cart
if (!IS_ADMIN_FLAG) {
global $cart;
$chk_prods = $_SESSION['cart']->in_cart_check('products_id','11') + $_SESSION['cart']->in_cart_check('products_id','12');
if ($chk_prods > 0) {
$this->enabled = true;
} else {
$this->enabled = false;
}
}
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEOPTIONS_ZONE > 0) ) {
Change the tables.php to read:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
}
// do NOT show if products_id 11 or 12 are in the cart
if (!IS_ADMIN_FLAG) {
global $cart;
$chk_prods = $_SESSION['cart']->in_cart_check('products_id','11') + $_SESSION['cart']->in_cart_check('products_id','12');
if ($chk_prods > 0) {
$this->enabled = false;
}
}
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE_ZONE > 0) ) {
where 11 and 12 are the products_id controlling this ...
Bookmarks