Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2011
    Location
    Washington, D.C.
    Posts
    80
    Plugin Contributions
    0

    Default Want to use fixed shipping price but also provide USPS/UPS

    Hello

    I would like to be able to provide a fixed shipping price, for example: $6 fixed shipping on all order. However, there are some items that are heavy 10lbs+ which is really expensive to ship. For these items, I would like to continue to use UPS/USPS shipping option and let the customer pay what the real cost will be. If I use the fixed price shipping module, is there a way to override this price so that when the weight of the order is over 10 pounds, then instead of the fixed price, the UPS/USPS prices are displayed?

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

    Default Re: Want to use fixed shipping price but also provide USPS/UPS

    If you were to use the Flat Rate flat shipping module and the UPS shipping module with the following changes ...

    /includes/modules/shipping/ups.php

    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
        }
    
        // bof: turn off shipping if weight is Less than 10 lbs
        if (!IS_ADMIN_FLAG) {
          if (($_SESSION['cart']->show_weight()) < 10) {
            $this->enabled = false;
          }
        }
        // eof: turn off shipping if weight is Less than 10 lbs
    
        if ($this->enabled) {
    /includes/modules/shipping/flat.php

    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
          }
    
          // bof: turn off shipping if weight is Greater than 10 lbs
          if (!IS_ADMIN_FLAG) {
            if ($_SESSION['cart']->show_weight() >= 10) {
              $this->enabled = false;
            }
          }
          // eof: turn off shipping if weight is Greater than 10 lbs
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {
    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
    Feb 2011
    Location
    Washington, D.C.
    Posts
    80
    Plugin Contributions
    0

    Default Re: Want to use fixed shipping price but also provide USPS/UPS

    Thanks Ajeh. This is exactly what I was looking for. I was also able to use the same code for ups.php to /includes/modules/shipping/usps.php and got what I needed. Thank you again for your help.
    http://www.kinkykupid.com. WARNING: Please note that this site is intended to sell Adult Toys, Novelties and Costumes. Please do not click the link if you may find it offensive.

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

    Default Re: Want to use fixed shipping price but also provide USPS/UPS

    You are most welcome ... thanks for the update that this is working for you ...
    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. v150 Fedex only shipping on a certain product but cart is offering USPS also
    By annamf3a in forum Addon Shipping Modules
    Replies: 1
    Last Post: 10 Mar 2014, 05:02 PM
  2. Fixed table rate shipping and UPS charges.
    By simpledomaining in forum Addon Shipping Modules
    Replies: 11
    Last Post: 3 Oct 2012, 08:29 PM
  3. USPS Shipping to use ONLINE price not Post Office price
    By chachew1234 in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 20 Feb 2011, 04:35 AM
  4. want to use 3 shipping options but too much confusion please help
    By itsmeSaifu in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 9 Feb 2011, 07:29 AM
  5. How do I get UPS and USPS quotes in Zen Cart to match USPS/UPS rates in my PayPal?
    By chachab in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 May 2008, 06:13 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