New Zenner
- Join Date:
- Dec 2007
- Posts:
- 35
- Plugin Contributions:
- 0
turn on/off the shippment base on product weight? Need PHP Help
Hi All, some my products are heavy, the othes is light
i have the pre item and mzmt shipping modules
when the product's weight above 70lbs i want only show the pre item shipping module in checkout_shipping page, when the product's weight bellow 70lbs i want only show mzmt moduls.
in the mzmt.php i have add the following code ,but is can not work.
if ($products_weight = $product['products_weight'] < 70) {
$this->enabled = ((MODULE_SHIPPING_MZMT_STATUS == 'False') ? true : false);
} else {
$this->enabled = ture;
}
or
if ($order->info['products_weight'] < 70) {
$this->enabled = ((MODULE_SHIPPING_MZMT_STATUS == 'False') ? true : false);
} else
$this->enabled =false;