Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Customize promotions engine

$
0
0

Hi,

I am working on Commerce 12.15.0, we have a requirment to calculate the promotions on Regular price and not the placed price. For example:

SKU 001 has a Regular Price $10 and Sale Price $8. Upon entering a valid coupoun the discount is currently applied on the placed price which is $8 by default. But the client wants to apply the discount on Regular price and then honor the lowest price between the two (Discounted Regular Price and Sale Price). So if the Discount is 50% off, then the Discount is applied to regular price which makes it $5 and then compare the Discounted Regular Price and Sale Price and take the lowest price between the two.

So should I have my own implementaton of the IPromotionEngine interface or should I create a new promotions processor? This is my first time working with promotions, I apprecite any ideas on how to approach this.


Viewing all articles
Browse latest Browse all 9076

Trending Articles