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.
Bookmarks