In catalog/model/payment/cod
I used the code
$method_data = array();
if (isset($this->session->data['vouchers']) && $this->session->data['payment_method'] == 'cod.cod') {
$status = false;
}
But its not working. Could anyone help me ?
In Catalog/Model/Payment/Cod.php
Find
$method_data = array();
After add
if ((float)$this->cart->getTotal() == 0) {
$status = false;
}
If the product is zero, that means voucher exits in the cart, cod would be disabled. But this code doesn't works if there are products and voucher both exist in the cart.
Find
$method_data = array();
After add
if ((float)$this->cart->getTotal() == 0) {
$status = false;
}
If the product is zero, that means voucher exits in the cart, cod would be disabled. But this code doesn't works if there are products and voucher both exist in the cart.
This vqmod disables cash on delivery if cart has vouchers or both products and vouchers in the cart.
Attachments
Who is online
Users browsing this forum: No registered users and 0 guests