I've found a few hints while searching, but I've not been able to get it to work yet.
I found an suggestion to add an if-section with a master_categories_id filter.
This did not work, AFAIK. I checked the category id and came up with 33.
Replacing "17" with "33" did not disable the module.
PHP Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true : false);
}
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','17') > 0)) {
$this->enabled = false;
}
I then tried to use "product_is_free" marker and see if that would trigger
the module into disable. It did not.
PHP Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_BREV_STATUS == 'True') ? true : false);
}
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('product_is_free','1')) {
$this->enabled = false;
}
Im pretty much stuck.
I don't know what Im doing wrong, but being able to just supply the
category_id or product_id in some similar fashion to the above
would obviously be my end all goal.
Anyone know how this is suposed to be written? I'v read and re-read
the threads that these suggestions came from.
Threads:
http://www.zen-cart.com/forum/showth...hipping+module
http://www.zen-cart.com/forum/showth...=in_cart_check
http://www.zen-cart.com/forum/showth...=in_cart_check
Im grateful for any help I can get on this issue.
Sincerly
/SHK