Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default USPS shipping on all except one item need UPS

    Hello,

    I have the Free shipping option along with USPS for upgradable shipping for services like priorty, etc. But I have one product that I only want to ship UPS, therefore no free option or USPS. Could someone inform me how to make a product have a specific shipping method only? All shipping is USA only. I have the newest version installed. Any help would be appriciated. Thanks, Paul

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

    Default Re: USPS shipping on all except one item need UPS

    The shipping modules need the $this->enabled to evaluate as true or they will not display ...

    You can add conditions in the Payment modules on controlling that setting based on anything you want to test for ...
    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!

  3. #3
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: USPS shipping on all except one item need UPS

    Thank you for getting back to me! Btt I do not see a place in UPS shipping to put a condition. Also is it possible to turn off the free shipping option on this one item? Thanks again

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

    Default Re: USPS shipping on all except one item need UPS

    In the shipping module for the USPS there is the code:
    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
        }
    The existing IF statement stops the $this->enabled from being able to run when the shipping is Free Shipping and makes its value false ...

    You can add other conditions either within this code or after to determine when the $this->enabled should be true or false based on your conditions ...

    Free Options freeoptions can also have something similar done on the code for its $this->enabled ...
    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
              $this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
          }
    So you can again turn off the $this->enabled by setting its value to false when this product is in the cart ...

    However, what do you want to happen when 7 things are in the cart and 1 of them is this 1 product?
    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!

  5. #5
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: USPS shipping on all except one item need UPS

    Very helpful Thank you! I see the problem with multiple items in the cart. I may have to make that a free shipping option item as well and add flate rate to the price and desable the USPS options to the item.

    Thank you!

 

 

Similar Threads

  1. Shipping 1 item type USPS and 1 item type UPS
    By tenthmuse in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Jul 2011, 07:10 PM
  2. USPS shipping on one category UPS for all others
    By kamelda in forum Basic Configuration
    Replies: 2
    Last Post: 16 Apr 2011, 12:59 AM
  3. Add to UPS shipping price for one item?
    By edacsac in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 6 Dec 2010, 06:01 AM
  4. Shipping via USPS except some items need to be flat rate
    By kylex in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 6 May 2010, 11:22 PM
  5. All Zones EXCEPT particular one
    By PJD in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 25 Apr 2008, 07:15 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