This would disable the COD Payment Module when the Flat Rate flat Shipping module has been selected by changing the code in:
/includes/modules/payment/cod.php
where it reads:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
to read:
Code:
$this->enabled = ((MODULE_PAYMENT_COD_STATUS == 'True') ? true : false);
// do not show COD when shipping is Flat Rate
if ($_SESSION['shipping']['id'] == 'flat_flat') {
$this->enabled = false;
}
Now if Flat Rate flat shipping module is selected then the COD Payment Module will be disabled and not shown ...
Bookmarks