catalog/model/extension/payment/cod.php
Code: Select all
$customer_group_id = $this->customer->getCustomerGroupId();
if ($customer_group_id == 2 ) {
Code: Select all
if ($this->config->get('payment_cod_total') > 0 && $this->config->get('payment_cod_total') > $total) {
$status = false;
} elseif (!$this->cart->hasShipping()) {
$status = false;
} elseif (!$this->config->get('payment_cod_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
}
Code: Select all
} else {
$status = false;
}