
Is it possible to set a minimum weight for a shipping option/extension? I only want it to be an option for the customer if their order weighs at least 4kg


Add the line:
To the beginning checks in your shipping extensions model file.
The file can be found in:
catalog/model/shipping/
Regards,
Joel.
Code: Select all
if ($this->cart->getWeight() < 4) {
$status = false;
}
The file can be found in:
catalog/model/shipping/
Regards,
Joel.
If you need further options beyond this, I have a Restrict Shipping Methods extension that allows you to limit shipping method availability by a variety of options (including weight).
Who is online
Users browsing this forum: No registered users and 2 guests