Hi boys,
I'm very newbie in using opencart but I think it's a pretty open product.
In my opencart 7.7 laboratory that if I create a coupon for certain products and assign them, if the customer put in the basket this product and whenever they want, the coupon discount is applied to the entire basket.
Have you experieced this ?
Thanks,
Giovanni Coa
You have found a bug in the calculate function in the file \catalog\extension\calculate\coupon.php.
Even though the coupon definition allows you to set which products it may apply to, the calculate function does not honour your selection. Instead, it uses the following.
Even though the coupon definition allows you to set which products it may apply to, the calculate function does not honour your selection. Instead, it uses the following.
Code: Select all
$this->cart->decreaseTotal($this->coupon->getDiscount($this->cart->getTotal()));
Who is online
Users browsing this forum: No registered users and 3 guests