Forums / Built-in Shipping and Payment Modules / How to disable table rate shipping module after certain weight

How to disable table rate shipping module after certain weight

Views: 1,674

Results 1 to 8 of 8
10 Jan 2015, 4:13 PM
#1
samuxul avatar

samuxul

New Zenner

Join Date:
Sep 2011
Posts:
25
Plugin Contributions:
0

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.

10 Jan 2015, 7:59 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

11 Jan 2015, 9:43 AM
#3
samuxul avatar

samuxul

New Zenner

Join Date:
Sep 2011
Posts:
25
Plugin Contributions:
0

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

11 Jan 2015, 9:46 AM
#4
samuxul avatar

samuxul

New Zenner

Join Date:
Sep 2011
Posts:
25
Plugin Contributions:
0

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.

11 Jan 2015, 2:11 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }

[B]if (!IS_ADMIN_FLAG && $_SESSION['cart']->weight > 2000) {
  $this->enabled = false;
}
[/B]    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!

4 Mar 2015, 1:35 AM
#6
buddhaflow avatar

buddhaflow

New Zenner

Join Date:
Mar 2009
Posts:
41
Plugin Contributions:
0

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?

4 Mar 2015, 2:04 AM
#7
buddhaflow avatar

buddhaflow

New Zenner

Join Date:
Mar 2009
Posts:
41
Plugin Contributions:
0

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.

4 Mar 2015, 3:45 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :lookaroun

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!]
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!