Page 1 of 1

Coupon-bug relating to quantity?

Posted: 06 Jul 2016, 18:28
by franzrudolf
Hi,

if a customer orders a quantity of two or more of the same product and he uses a coupon code, the discount only affects the price of one. Actually it is supposed to be a discount on the lump sum, isn't it? Or is there a logic, I don't understand?

Best regards
Ralph

Re: Coupon-bug relating to quantity?

Posted: 07 Jul 2016, 07:16
by aimeos
Can you give us some more information? Which coupon provider are you using? Can you attach a screenshot before entering the code and after to explain what you mean?

Re: Coupon-bug relating to quantity?

Posted: 07 Jul 2016, 14:08
by franzrudolf
We use the percentRebate coupon provider to realize a 10% discount (on the lump sum) for club members. Everything works fine as long there is no product ordered two or more times. If you compare the two screenshots in the attached file you can see that everything is fine on the left picture (where each product is ordered only once) - the lump sum is reduced 10% .
However, on the right screenshot (where two cups are ordered) only the price of one cup is reduced. But the discount should always reduce the lump sum.

Re: Coupon-bug relating to quantity?

Posted: 07 Jul 2016, 22:24
by aimeos
Indeen, that looks like a bug. Seems like the multiplication with the quantity is missing here:
https://github.com/aimeos/aimeos-core/b ... te.php#L49

Can you test and confirm that a change there fixes the problem?

Re: Coupon-bug relating to quantity?

Posted: 08 Jul 2016, 08:24
by franzrudolf
I would really like to do so but I am not a php-programmer and thus not able to work in the code seriously... :-)

Re: Coupon-bug relating to quantity?

Posted: 08 Jul 2016, 21:26
by aimeos
The bug has been fixed in the development version and will be part of the next TYPO3 release in two weeks.