I would like to set up compulsory insurance for orders over $50.
I have 2 table rate modules; one for standard shipping and the other for insurance shipping. I would like the standard shipping table rate module to be disabled after $50
The below code disables a shipping mod after 18lbs; I can imagine it can be edited to work with price somehow.
In includes/modules/shipping/zonetable.php
Or in
includes/modules/shipping/any_shipping_mod.php
Find this code
PHP Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONETABLE_STATUS == 'True') ? true : false);
}
DIRECTLY BENEATH IT, add the following:
PHP Code:
// Check for Weight and display module if weight exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 18) {
$this->enabled = false;
} else {
$this->enabled = true;
}
So it now looks something like:
HTML Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
}
// Check for Weight and display module if weight exceeds stated value
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->show_weight() < 18) {
$this->enabled = false;
} else {
$this->enabled = true;
}
// CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED
$this->num_zones = 3;
}
[FONT=Verdana]* 2 other people have the same unanswered question and would like to answer for them; can see in stickies below[/FONT]
Bookmarks