
Originally Posted by
RodG
Like all good shipping modules, the ozpost module makes use of and honors the $this-enabled variable.
Hi Rod
Are the auto-updates of version 3 likely to overwrite the $this-enabled variable?
Just for the record, immediately after
Code:
$this->enabled = ((MODULE_SHIPPING_OZPOST_STATUS == 'True') ? true : false);
or Line 86 of includes\modules\shipping\ozpost.php, I inserted the following chunk of code:
Code:
// disable only when entire cart is free shipping
// if (zen_get_shipping_enabled($this->code)) $this->enabled = ((MODULE_SHIPPING_OZPOST_STATUS == 'True') ? true : false);
// bof disable for categories in cart
if (IS_ADMIN_FLAG == false) {
if (($_SESSION['cart']->in_cart_check('master_categories_id','4') > 0) ||
($_SESSION['cart']->in_cart_check('master_categories_id','5') > 0) ||
($_SESSION['cart']->in_cart_check('master_categories_id','6') > 0))
{
$this->enabled = false;
}
}
/* eof disable for categories in cart*/
Is the free shipping part of the inserted code required?
Thanks
Bookmarks