Forums / Built-in Shipping and Payment Modules / Different Shipping Options for Different Category

Different Shipping Options for Different Category

Locked

Views: 694

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
28 Apr 2010, 2:09 AM
#1
goatwhisperer avatar

goatwhisperer

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Different Shipping Options for Different Category

I need to limit shipping options by category

Cat 1 is small items and I can fit in USPS flat rate boxes and table rate works well for this as it is much cheaper than regular shipping

Cat 4 can not be shipped it needs to pick up at the farm only
so I need to turn off all options beside pick up

all other categorys need to use the regular rates table rate needs to be off

I tried this and it didn't seem to do anything

// 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','4') > 0)) { 
      $this->enabled = false; 
  }
28 Apr 2010, 5:30 AM
#2
goatwhisperer avatar

goatwhisperer

New Zenner

Join Date:
Nov 2007
Posts:
8
Plugin Contributions:
0

Re: Different Shipping Options for Different Category

I fixed it