Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Oct 2010
    Posts
    25
    Plugin Contributions
    0

    Default Limiting USPS shipping if over a certain weight.

    I have searched this question with no luck, any direction would be much appreciated.

    I would like to be able to control when USPS shipping is available by the order weight. Right now it displays no matter how heavy the order is... even with freight orders of 100 or more pounds. I would like to turn off USPS shipping option if over 50 pounds. Is that possible?

    Also, is it possible to turn off "free shipping" if the item is a heavy freight item? I have the free shipping set for orders over a certain combined price (orders over $40 are free shipping... excluding freight orders). I tried setting two qualifying parameters for free shipping... $40 or more, but less than 100 lbs. However that does not work.

    My needs are:

    Offer Free Shipping on all orders $40 or more (excluding freight orders that are over 100lbs).
    Offer USPS priority shipping on all orders under 50lbs.

    Thanks in advance for any and all help.

  2. #2
    Join Date
    Mar 2008
    Location
    The Free South
    Posts
    174
    Plugin Contributions
    0

    Default Re: Limiting USPS shipping if over a certain weight.

    I really need this as well.
    www.theCableStation.com
    "If we restrict liberty to attain security we will lose them both."

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Limiting USPS shipping if over a certain weight.

    It sounds like you are using the Free Shipping Options freeoptions ...

    If so, you can customize the code in:
    /includes/modules/shipping/freeoptions.php

    with the code in Red:
    Code:
    // final check for display of Free Options
           if ($this->ck_freeoptions_total &&  $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Limiting USPS shipping if over a certain weight.

    Quote Originally Posted by merchantdroid View Post
    Offer Free Shipping on all orders $40 or more (excluding freight orders that are over 100lbs).
    Offer USPS priority shipping on all orders under 50lbs.
    Are you saying limit only USPS priority ... or that happens to be the only only you offer?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Oct 2010
    Posts
    25
    Plugin Contributions
    0

    Default Re: Limiting USPS shipping if over a certain weight.

    Thank you Ajeh for your help. I think I came up with a easier solution to my issues. The main issue I was having is that USPS and UPS were giving shipping options on everything.... no matter if they qualified for free shipping or if it was weights way over the two company's limits.

    My difficulties were that I wanted to offer free shipping with a minimum order of $40 for all "non-freight" items. However I was not able to set all the parameters (with my limited knowledge) to limit shipping offers if they were not included with shipping discounts, etc.

    What I ended up doing is turning off UPS and USPS shipping modules. I added the "Shipping by Quote" and turned on "table".

    I decided to estimate a shipping charge per level of cart price and simply charge a set amount per level (table), this way I could manage my free shipping by cost as well as limit free shipping by cost (the freight that does not qualify for free shipping is well over $300)... so my table settings read:

    9.99:6.99,19.99:7.99,29.99:8.99,39.99:10.99,299.99:0.00,4000.00:750.00

    This translates to "if the cart order value is "X"/then the shipping charge is "Y"

    0.01 - 9.99 = $6.99 shipping
    10.00-19.99 = $7.99 shipping
    20.00-29.99 = $8.99 shipping
    30.00-39.99 = $10.99 shipping
    40.00-299.99= $0.00 shipping
    300.00-4000.00 = $750.00 shipping

    I had to put in a dollar amount range to cut off the free shipping, so I estimated that I would not receive a single order over the cost of $300. If that starts to happen all I have to do is edit that parameter. I had to also put a shipping cost high enough to equal to a price over the actual freight costs that would occur so I would not be held accountable to honoring a automatic freight quote.

    I added Freightquote.com so the clients could get an estimated freight cost in the shipping calculator... however I added the "Shipping by Quote" so the customer can either submit the order for a freight quote, or call us for the quote... then they can manually enter the quote and check out. I also added, "Orders over $300.00 and freight orders will require customers to use "Shipping by Quote" for the best discounts." in definitions.

    This cleaned up my shipping page and put me in control of both my free shipping and my freight orders. As well, I don't have to show UPS and USPS. We have control to ship either way without the customer forcing us to use one or the other.

    Hope this may help others trying to deal with this issue and not really advanced in coding.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Limiting USPS shipping if over a certain weight.

    Thanks for the update and the details of how you handled this to suite your needs ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #7
    Join Date
    Oct 2010
    Posts
    25
    Plugin Contributions
    0

    Default Re: Limiting USPS shipping if over a certain weight.

    Okay, I know I have dug up one of my old threads... however I am still working on different shipping options with USPS. The above has been taken care of successfully. My new situation is that we offer very heavy items that I would only like to ship UPS. We use USPS a lot on smaller items. Is there a way to limit by weight the USPS shipping option? What I would like allow USPS shipping for orders less than 40 lbs. in weight, if 41 lbs. or more I would like for USPS not to be a shipping option.

    Thanks for all the help!

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Limiting USPS shipping if over a certain weight.

    Depending on the USPS shipping module you will use, 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_USPS_STATUS == 'True') ? true : false);
        }
        
    // bof: disable over 40lbs    
            if (!IS_ADMIN_FLAG) {
                global $shipping_weight;
                if ($shipping_weight > 40) {
                    $this->enabled = false;
                }
            }
    // eof: disable over 40lbs    
    
    Or use ...
    Code:
      function update_status() {
        global $order, $db;
        if (IS_ADMIN_FLAG == TRUE) return;
    
        // disable when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
        }
    
        // 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: disable over 40lbs    
              global $shipping_weight;
              if ($shipping_weight > 40) {
                  $this->enabled = false;
              }
    // eof: disable over 40lbs    
    
        if ($this->enabled == true) {
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #9
    Join Date
    Oct 2010
    Posts
    25
    Plugin Contributions
    0

    Default Re: Limiting USPS shipping if over a certain weight.

    Thanks Ajeh. I am using the actual USPS module with my USPS information. I dug up another thread that you assisted on in a similar fashion:

    http://www.zen-cart.com/showthread.p...hipping+weight

    Was almost ready to test it, however your coding is so much cleaner. :)

    I will reply with my results. Thank you so very much!

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Limiting USPS shipping if over a certain weight.

    You are most welcome ... thanks for the update 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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. USPS shipping module / tare weight
    By buildingblocks in forum Built-in Shipping and Payment Modules
    Replies: 15
    Last Post: 29 Nov 2008, 06:18 PM
  2. USPS Shipping and weight
    By lilrowo in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 14 Jan 2008, 12:29 AM
  3. First Class Shipping USPS weight problem?
    By ecowraps in forum Built-in Shipping and Payment Modules
    Replies: 16
    Last Post: 2 Dec 2007, 06:14 AM
  4. USPS Shipping adds 3lbs to cart weight. Problem with USPS or my Zen?
    By Yuchant in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 17 Oct 2007, 01:02 AM

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
  •