Two ways to tackle this:
1. rewrite the code to set a handling fee for COD orders, which helps you recover the costs of COD shipping.
2. rewrite the code to detect the weight of items in the cart and enable/disable COD based on the value
To use #2 above, edit the modules/payment/cod.php file:
around line 61 you see:
Code:
if ($check_flag == false) {
$this->enabled = false;
}
}
add a few lines of code below it, starting on line 65:
Code:
if ($_SESSION['cart']->weight < 500) {
$this->enabled = false;
}
This says ... if the weight of the items in the cart is under 500, then disable this module (in this case, COD).
Change the "500" to whatever suits your needs.
Bookmarks