Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Shipping method dependent on one product

Shipping method dependent on one product

Views: 708

Results 1 to 2 of 2
20 Feb 2011, 9:58 AM
#1
mdo82 avatar

mdo82

New Zenner

Join Date:
Apr 2010
Posts:
39
Plugin Contributions:
0

Shipping method dependent on one product

I'm trying to get the shipping method dependent on one product.

I had found this thread as an example http://www.zen-cart.com/forum/showthread.php?t=120145 but i don't getting it right

Is it possible to adjust shipping methode so i can exclude a product?

So one product may not shipped with mail sender 1 but with mail sender 2

21 Feb 2011, 6:49 PM
#2
mdo82 avatar

mdo82

New Zenner

Join Date:
Apr 2010
Posts:
39
Plugin Contributions:
0

Re: Shipping method dependent on one product

I've solved it to put the following into my zones.php.

  // disable one product for shipping
  if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_id','586') > 0)) { 
      $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'False') ? true : false);
  }

  // disable one product for shipping
  if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_id','587') > 0)) { 
      $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'False') ? true : false);
  }