Coupon-bug relating to quantity?
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 38
- Joined: 23 Nov 2015, 14:10
Coupon-bug relating to quantity?
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
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?
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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 38
- Joined: 23 Nov 2015, 14:10
Re: Coupon-bug relating to quantity?
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.
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.
- Attachments
-
- screenshot_coupon-bug.jpg (108.21 KiB) Viewed 2738 times
Re: Coupon-bug relating to quantity?
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?
https://github.com/aimeos/aimeos-core/b ... te.php#L49
Can you test and confirm that a change there fixes the problem?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 38
- Joined: 23 Nov 2015, 14:10
Re: Coupon-bug relating to quantity?
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?
The bug has been fixed in the development version and will be part of the next TYPO3 release in two weeks.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star