Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default 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

  3. #3
    Join Date
    Dec 2008
    Posts
    2
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

 

 

Similar Threads

  1. v151 Can I restrict certain shipping modules for certain products?
    By gumboot in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 13 Feb 2013, 05:26 AM
  2. Charge shipping only for certain products
    By elabuwa in forum Addon Shipping Modules
    Replies: 5
    Last Post: 29 Apr 2011, 05:44 PM
  3. Special Shipping for certain products
    By 2mymall in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jun 2010, 01:32 PM
  4. Call for shipping costs for certain products or region
    By ianhg in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Feb 2010, 12:29 PM
  5. different shipping rules for certain products
    By marglar in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 19 Jan 2008, 11:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg