Post by GiovanniCoa » Wed Jan 30, 2008 4:52 pm

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

Newbie

Posts

Joined
Mon Jan 14, 2008 6:51 pm

Post by bruce » Sat Feb 02, 2008 5:52 pm

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.

Code: Select all

$this->cart->decreaseTotal($this->coupon->getDiscount($this->cart->getTotal()));

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm
Who is online

Users browsing this forum: No registered users and 2 guests