Forums / Built-in Shipping and Payment Modules / Shipping for Certain Products

Shipping for Certain Products

Locked

Views: 779

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
9 Dec 2008, 9:24 PM
#1
m2mannix avatar

m2mannix

New Zenner

Join Date:
Dec 2008
Posts:
2
Plugin Contributions:
0

Shipping for Certain Products

Hi, does anyone know a way to activate a shipping module just for a certain product. My client typically uses USPS to ship their products however they have entered in an agreement with UPS to ship one of their products. Is their a way in Zen Cart to display only that shipping module if a person has that certain product in their shopping cart?

Thanks. I appreciate any help.

10 Dec 2008, 9:46 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Shipping for Certain Products

What is your shipping rule if a customer has a cart with several products that require BOTH UPS and USPS ?

20 years a Zencart User

10 Dec 2008, 2:26 PM
#3
m2mannix avatar

m2mannix

New Zenner

Join Date:
Dec 2008
Posts:
2
Plugin Contributions:
0

Re: Shipping for Certain Products

If the user orders multiple products and one of them is for UPS then all the products would go out via UPS. That would probably be a lot easier than saying this product is shipped via this and that product is shipped via the other one.

10 Dec 2008, 6:40 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Shipping for Certain Products

There is a function in the shopping_cart.php class where you can test the contents of the shopping cart to see what is in there in relation to the products table:

/**

  • Method to calculate the number of items in a cart based on an abitrary property
  • $check_what is the fieldname example: 'products_is_free'
  • $check_value is the value being tested for - default is 1
  • Syntax: $_SESSION['cart']->in_cart_check('product_is_free','1');
  • @param string product field to check
  • @param mixed value to check for
  • @return integer number of items matching restraint
    */
    function in_cart_check($check_what, $check_value='1') {

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!