Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31
  1. #1
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    help question Hide shipping method when order exceeds certain weight

    Hi

    I have looked around the forums for something like this, and actually found a few threads, but discovered nothing that works.

    What I have is both regular shipping and an express shipping option -- the max package weight is at 22kg, but the express can only fit up to 5kg, so what is happening now is when a customer's shopping cart weight exceeds 5kg, the express option sits at $0.

    What I want to do is disable the express shipping module when the weight of the order exceeds 5kg. That way, only the regular shipping shows if the order doesn't fit the express.

    Hoping someone can help me out on this.

    Thanks,
    Tija

  2. #2
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: Hide shipping method when order exceeds certain weight

    So... been a while since I posted -- does anyone have any suggestions as to how I can do this?

    - Tija

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

    Default Re: Hide shipping method when order exceeds certain weight

    What shipping module(s) are you using for this?
    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!

  4. #4
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: Hide shipping method when order exceeds certain weight

    It's a table rate module.

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

    Default Re: Hide shipping method when order exceeds certain weight

    If you only have Table Rate table ... how are you offering 2 shipping methods?
    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!

  6. #6
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: Hide shipping method when order exceeds certain weight

    Sorry -- that wasn't very clear of me (using 'it' instead of 'they').

    I use a few cloned table rates... so all the shipping mods I'm using in this case are table rates.

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

    Default Re: Hide shipping method when order exceeds certain weight

    You could use the code in RED:
    Code:
        // disable only when entire cart is free shipping
        if (zen_get_shipping_enabled($this->code)) {
          $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
        }
    
        if (!IS_ADMIN_FLAG) {
          global $cart;
          if ($_SESSION['cart']->weight > 22 ) {
            $this->enabled = false;
          }
        }
    
        if ($this->enabled) {
    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!

  8. #8
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    131
    Plugin Contributions
    0

    Default Re: Hide shipping method when order exceeds certain weight

    Unfortunately, that code isn't working for me.

    The shipping still shows as a $0 option

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

    Default Re: Hide shipping method when order exceeds certain weight

    Make sure that you are putting that code in the copy of the Table Rate table shipping module that you do not want to show when the weight is over 22 ...

    What are your settings in the Configuration ... Shipping/Packaging ...
    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!

  10. #10
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Hide shipping method when order exceeds certain weight

    Quote Originally Posted by MortalWombat View Post
    What I have is both regular shipping and an express shipping option -- the max package weight is at 22kg, but the express can only fit up to 5kg,
    I hope you don't mind me asking, but exactly where/how/why did you determine or derive these weight limits?

    The reason I ask is because I don't know of any Australian Carrier/Courier that places a 5kg limit on express parcels, and the 22kg limit is actually 2kg higher than Australia Post will allow.

    Feel free to tell me to mind my own business if you like (I won't be offended), but it does sadden me a little to see Australian Merchants struggling with shipping quotes, when there is generally no need.

    Cheers
    Rod

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Hide table rate shipping under a certain weight
    By Kcin in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 20 Jul 2020, 04:45 PM
  2. v139h Hide COD payment method from certain customers?
    By TroyC in forum General Questions
    Replies: 3
    Last Post: 5 Apr 2013, 04:19 PM
  3. v138a Hide shipping method when order exceeds certain value of order
    By staudrak in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jun 2012, 05:22 PM
  4. Shipping charges to change when a certain weight is reached
    By Llamatron77 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 20 Feb 2011, 01:10 PM
  5. Hide shipping method if order is over a certain weight?
    By Danielle in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Jul 2007, 06:24 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