Customize the freeoptions.php and change the code to read:
// 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:
// 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 ...
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!