cart icon indicating copy to clipboard operation
cart copied to clipboard

Feature Request: Discount when ordering multiple products of a product group

Open dahaupt opened this issue 3 years ago • 1 comments

Feature Request

Describe the solution you'd like Our customer would like to grant a discount if multiple products are ordered of a product group. For this, it would be useful if products could belong to a group, which would then configure a percentage discount by quantity.

Describe alternatives you've considered We could solve it by making use of the product property specialPrice which could be set by a hook or event when changing products in the cart.

dahaupt avatar Apr 07 '22 10:04 dahaupt

Currently, this feature cannot be implemented just like that. This feature would require changes in many places in the calculation of the shopping cart. The shopping cart itself would have to take over the logics, because the discount should also be removed again when the number of products in the shopping cart is reduced and the condition no longer applies. Furthermore, because it is probably error-prone, this would have to be backed up with lots of tests. I find your solution already once quite good and shows that there are already ways here.

I could imagine that one possibly still creates at one or the other place the possibility to manipulate the shopping cart or other things in the shopping cart to be able to implement requirements of the customers faster. The correct calculation would then have to be checked in the respective implementation.

In my spare time, I can not currently implement such a large feature.

extcode avatar May 12 '22 15:05 extcode