
Originally Posted by
Ajeh
I have not used the Royal Mail shipping module but you should be able to customize it in a similar manner ...
Hmm, I've been struggling with this for a while now and can't seem to get it working.
I want to disable and hide the option of large letter shipping for a certain categories as they have items which are too thick to be posted at this rate.
At the moment my item.php reads as follows...
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);
}
So I tried adding this code underneath...
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_RM1STLARGELETTER_STATUS == 'True') ? true : false);
}
// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('master_categories_id','148') > 0)) {
// show RM1STLARGELETTER
$this->enabled = false;
} else {
// hide RM1STLARGELETTER
$this->enabled = true;
}
Like you showed for your UPS version...but nothing happened.
I know it that instance you said to put it in the UPS.php, but the rm1stlargeletter.php doesn't have this code in it to change...
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);
}
Sorry to be a pain, but I really want to get this sorted as I can't afford to lose out by undercharging, but equally don't want to put people off by over charging for shipping. I have really tried to understand it, but I know that one of you clever people will probably see what I am doing wrong straight away and hopefully be able to steer me to a solution.
Thanks for any help you can offer.