Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2011
    Posts
    25
    Plugin Contributions
    0

    Default How to disable table rate shipping module after certain weight

    How to disable the TABLE RATE Shipping module after certain weight?

    I have few different package sizes and different table rate modules for them. Problem is when TABLE 1 is over 2000grams you have to ship using TABLE 2 rates. How ever it's still possible to choose TABLE 1 but the price is 0.

    Hope you guys get what I'm after.

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

    Default Re: How to disable table rate shipping module after certain weight

    What are the settings right now in the Configuration ... Shipping ... for the Maximum Weight and the two Tare Rates?
    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
    Sep 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: How to disable table rate shipping module after certain weight

    Max weight: 10000 (grams)
    Package tare small to medium: 0:3
    Large: 10:0

    And I have 11 different table rate modules for different countries and zones

    Finland Letter
    Finland Package

    Europe Letter
    Europe Maxi Letter
    Europe Zone 1 Package
    Europe Zone 2 Package

    World Letter
    World Maxi Letter
    World Maxi Letter Economy
    World Zone 3 Package
    World Zone 4 Package

  4. #4
    Join Date
    Sep 2011
    Posts
    25
    Plugin Contributions
    0

    Default Re: How to disable table rate shipping module after certain weight

    So I'm intrested if it's possible to code each table rate module in a way when the order is certain weight some of the modules wont be visible.

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

    Default Re: How to disable table rate shipping module after certain weight

    To disable at over 2000, you can use in the file:
    /includes/modules/shipping/table.php

    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 && $_SESSION['cart']->weight > 2000) {
      $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: 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!

  6. #6
    Join Date
    Mar 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: How to disable table rate shipping module after certain weight

    Hi, this worked in zones shipping module too, thanks Linda!

    Only one thing, I had to change the '2000' to '2' to make it work right. Not sure if zones consideres weight differently than tables does?

  7. #7
    Join Date
    Mar 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: How to disable table rate shipping module after certain weight

    Also...perhaps this should be how the tables and zones modules are setup by default? On my site, if the total order weight went over the maximum set up in the zones settings, it would allow them to checkout with shipping price '0'. This doesn't seem right.

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

    Default Re: How to disable table rate shipping module after certain weight

    Thanks for the update that you were able to fix this ...

    Most people are using the Weight as pounds for use with USPS, UPS and FedEx and 2000lbs would not work very well ...

    For you, you are working in grams so you needed to adjust things for your purposes ...

    If you are not adjusting your weights for grams vs lbs or are having difficulties in setting your weights and obtaining quotes you may wish to re-review your shipping or expand your explanation about your shipping methods and customizations ...
    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!

 

 

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. v139f How set Table rate shipping module for differe weight.
    By jagcbe in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 3 May 2012, 07:42 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. Disable table shipping after certain rate
    By lilblocker in forum Built-in Shipping and Payment Modules
    Replies: 41
    Last Post: 25 Oct 2010, 05:14 PM
  5. Disable Flat rate after weight of cart is over a certain amoun
    By brettw in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 7 Mar 2009, 08:38 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