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

Specified shipping for Specified products?

Started by joshuaove on 10 Mar 2011, 6:44 PM · Views: 3,084

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:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

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');```

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

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') {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!