Post by daynight » Tue Nov 18, 2014 6:23 pm

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 ?
Last edited by daynight on Wed Nov 19, 2014 1:43 pm, edited 2 times in total.

Newbie

Posts

Joined
Fri Jul 11, 2014 5:34 pm

Post by daynight » Wed Nov 19, 2014 1:42 pm

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.

Newbie

Posts

Joined
Fri Jul 11, 2014 5:34 pm

Post by daynight » Wed Dec 10, 2014 7:45 pm

This vqmod disables cash on delivery if cart has vouchers or both products and vouchers in the cart.

Newbie

Posts

Joined
Fri Jul 11, 2014 5:34 pm
Who is online

Users browsing this forum: No registered users and 1 guest