You need to stop the COD method being offered to customers with those postcodes, then they cannot choose it.
In both payment and shipping modules there is a similar line at the beginning of the class which determines the if the module is enabled or not, such as this:
PHP Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
You need to add your check for the postcodes after this line to change the state of "enabled" based on a postcode check:
PHP Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
if (this postcode is in some array) {
$this->enabled = false;
}
Such as this
https://www.zen-cart.com/showthread....09#post1262609
Bookmarks