Zen Cart Ups Filter

I need a quick modification to Zen Cart includes/modules/shipping/UPS.php

Filter code should be added at about line 71.

If one or more products_id are using master_categories id XXX then set shipping method to: ‘2DA’ => ‘2nd Day Air’, and hide all other methods.

I need this to work for two different websites.

For www.siteA.com > Category > Cars ID = 66.

For www.siteB.com > Category > Cars Id = 100
> Sub category > Small Id = 109
> sub category > Large Id = 110

If any item in Cart is in this category UPS 2 day air is the only shipping method avalble.

code is similar to this:

// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_UPS_STATUS == ‘True’) ? true : false);
}

// disable for one master_categories_id
if ((IS_ADMIN_FLAG == false

Leave a Reply

Your email address will not be published. Required fields are marked *