Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Use flat rate up to a certain weight, then use USPS

    Disabling flat rate will still work
    Might take a bit of code to not show USPS until a certain weight is acheived
    Zen-Venom Get Bitten

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

    Default Re: Use flat rate up to a certain weight, then use USPS

    Just use something similar in the usps.php ...
    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);
        }
    
    // bof: If the shipping weight is less than 20lb disable the module
    if (!IS_ADMIN_FLAG) {
      global $cart;
      if ($_SESSION['cart']->show_weight() < 20) {
        $this->enabled = false;
      }
    }
    // eof: If the shipping weight is less than 20lb disable the module
    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. v1302 Can I offer Flat rate shipping in the US only then by weight everywhere elese?
    By mahlerosa in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 30 Jun 2013, 03:42 PM
  2. v151 Use Table rate to a point, then ignore
    By bulpup in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 12 Feb 2013, 12:30 AM
  3. How do I - Flat rate shipping up to a certain weight
    By jjj0923 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 24 Jan 2012, 12:59 AM
  4. How do I use FLAT RATE for one item - and UPS Ship by weight for the other 8 items?
    By MarleneF in forum Built-in Shipping and Payment Modules
    Replies: 36
    Last Post: 31 Aug 2011, 04:15 PM
  5. Flat rate, then another flat rate for certain heavy products?
    By JohneeMac in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 27 Mar 2007, 07:37 PM

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