Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2010
    Posts
    56
    Plugin Contributions
    0

    Default Flat rate shipping with a minimum purchase

    I would like to do flat rate shipping on all orders above a minimum purchase of $75. Orders below that threshold would pay standard UPS or USPS rates. Is there a way to do this?
    -thanks

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

    Default Re: Flat rate shipping with a minimum purchase

    You can control this by customizing the shipping modules ...

    To not show the Flat Rate flat shipping module you can add the code in red:
    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_ITEM_STATUS == 'True') ? true : false);
          }
    
          // bof: do not show if <= $75.00
          if ($order->info['total'] <= 75) {
            $this->enabled = false;
          }
          // eof: do not show if <= $75.00
    
    Then, to allow UPS or USPS reverse the logic and place the code in red in approximately the same location so that the shipping does not show on orders > $75.00 ...
    Code:
          $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
          // bof: do not show if > $75.00
          if ($order->info['total'] > 75) {
            $this->enabled = false;
          }
          // eof: do not show if > $75.00
    
    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: v1.5.5]
    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
    Dec 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: Flat rate shipping with a minimum purchase

    Ajeh,
    Which php file would need to be modified?
    Thank you for your help
    -john

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

    Default Re: Flat rate shipping with a minimum purchase

    Your shipping modules code files are located in:
    /includes/modules/shipping

    Flat Rate is flat.php
    USPS is usps.php
    UPS is ups.php
    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: v1.5.5]
    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
    Dec 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: Flat rate shipping with a minimum purchase

    Ajeh,
    As if you didnt already know. This worked perfectly.
    thank you very much!!!
    -john

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

    Default Re: Flat rate shipping with a minimum purchase

    Thanks for the update and glad that this is now 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: v1.5.5]
    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!

  7. #7
    Join Date
    Dec 2010
    Posts
    56
    Plugin Contributions
    0

    Default Re: Flat rate shipping with a minimum purchase

    OK, this is working perfectly. But now I have a new issue. We would like to add some items to the store that are very heavy, but fairly inexpensive. I would like to have these new products omitted from the flat rate shipping mod that we have done. Or in other words, I would like to charge actual shipping costs for just some specific items.

    I know I can add a flat shipping fee onto these items, which we already do for for expensive products that are also expensive to ship. Unfortunately, due to the price of these items, charging a nearby customer the same shipping fee as someone across the country will just cost sales. Is there a way to just omit certain items from this mod?

    thanks
    -john

 

 

Similar Threads

  1. v150 Trouble with flat rate shipping
    By pixelboy7734 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Aug 2012, 07:31 PM
  2. Flat Rate Shipping with Zones
    By BotRot in forum General Questions
    Replies: 4
    Last Post: 8 Oct 2010, 04:28 AM
  3. Percentage with Minimum Shipping Rate
    By pwood31 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 26 Mar 2008, 08:53 PM
  4. Flat rate shipping per item with shipping & handling
    By FlameAngel in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Jan 2008, 05:43 PM
  5. flat rate shipping - can u set a minimum wieght
    By modchipfitters.co.uk in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Oct 2006, 04:35 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR