Coupon-bug relating to quantity?

Questions around the TYPO3 integration and plugins
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!
franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

Coupon-bug relating to quantity?

Post by franzrudolf » 06 Jul 2016, 18:28

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

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Coupon-bug relating to quantity?

Post by aimeos » 07 Jul 2016, 07:16

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, Image give us a star

franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

Re: Coupon-bug relating to quantity?

Post by franzrudolf » 07 Jul 2016, 14:08

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.
Attachments
screenshot_coupon-bug.jpg
screenshot_coupon-bug.jpg (108.21 KiB) Viewed 2590 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Coupon-bug relating to quantity?

Post by aimeos » 07 Jul 2016, 22:24

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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

franzrudolf
Posts: 38
Joined: 23 Nov 2015, 14:10

Re: Coupon-bug relating to quantity?

Post by franzrudolf » 08 Jul 2016, 08:24

I would really like to do so but I am not a php-programmer and thus not able to work in the code seriously... :-)

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Coupon-bug relating to quantity?

Post by aimeos » 08 Jul 2016, 21:26

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, Image give us a star

Post Reply