If I order some Blackberry Jelly and then I also order a bunch of Tea and Spices, do I still need to pick up the order at the store?
From what I see, all Preserves are using master_categories_id 4 ... is this correct?
If so, you could customize your shipping module with the code:
Code:
// bof: turn off shipping module when 1 or more Products are in the cart for master_categories_id 4
if (!IS_ADMIN_FLAG) {
// check the count of a specific field
$chk_cat = 0;
// check how many Products are in the cart for master_categories_id 4
$chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','4');
// if any are found turn off the shipping module
if ($chk_cat > 0) {
$this->enabled = false;
}
}
// eof: turn off shipping module when 1 or more Products are in the cart for master_categories_id 4
That code can be added to most any shipping module, just put it below the code similar to:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
Bookmarks