Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Specified shipping for Specified products?

Specified shipping for Specified products?

Views: 3,070

Results 21 to 25 of 25
16 Mar 2011, 8:08 PM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Specified shipping for Specified products?

You are most welcome ... :smile:

16 Mar 2011, 8:09 PM
#22
joshuaove avatar

joshuaove

New Zenner

Join Date:
Mar 2011
Posts:
12
Plugin Contributions:
0

Re: Specified shipping for Specified products?

Can add more products_id's to that piece of flat rate code, using an "or" type statement? Also, could I set a required quantity of said products_id before flat rate is offered??

16 Mar 2011, 8:10 PM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Specified shipping for Specified products?

To do products_id 12, 15 and 17 use:
$chk_worms = $_SESSION['cart']->in_cart_check('products_id','12');
$chk_worms += $_SESSION['cart']->in_cart_check('products_id','15');
$chk_worms += $_SESSION['cart']->in_cart_check('products_id','17');```

16 Mar 2011, 9:54 PM
#24
joshuaove avatar

joshuaove

New Zenner

Join Date:
Mar 2011
Posts:
12
Plugin Contributions:
0

Re: Specified shipping for Specified products?

How would say, (4 of same products_id "6", then offer Flat Rate) look like?

16 Mar 2011, 11:38 PM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Specified shipping for Specified products?

You have to make the check on the products_id logical ... for greater or equal to 4 on products_id 6 you could use:

          $chk_worms = $_SESSION['cart']->in_cart_check('products_id','6');
          if ($chk_worms >= 4 && $type != 'PRIORITY') {