I was looking for this same fix to only display certain zone tables based on weight. I tried maxidvds code below, but i get the error;

Code:
Call to a member function show_weight() on a non-object
Has anyone else tried this mod and got it working?

Thanks,

Scott.

Quote Originally Posted by maxidvd View Post
Nevermind I figured out a way.

In my Registered Post shipping mod I added a code snippet to only display if the cart is 10kg or more:

Find this code snippet in zonestable.php:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
}
And directly benief it add this:
Code:
  
                // Fishmad added: Enable only if cart contents are heavier than 10kg
                if ($_SESSION['cart']->show_weight() >= 10) {
                $this->enabled = true;
                }
In my Express Post shipping mod I added a code snippet to only display if the cart is less then 10kg:

Find this code snippet in zonestable.php:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
}
And directly benief it add this:
Code:
  
                // Fishmad added: Enable only if cart contents are less than 10kg
                if ($_SESSION['cart']->show_weight() >= 10) {
                $this->enabled = false;
                }
Works for me.