We are introducing a new promotions engine, that offers functionality to discount carts through coupon codes with a given set of rules governing when and how the code should be applied.
The engine will ship in its own package, @medusajs/promotion.
The key features of the module are:
It allows you to create coupon codes that will discount the total of a resource
It allows you to create promotions that are automatically applied when a given condition (or set of conditions) holds true
It allows you to create (any) rules for coupon codes that govern when and how a promotion is applied
It allows you to compute the discount amount given a context (e.g. cart or order)
We are introducing a new promotions engine, that offers functionality to discount carts through coupon codes with a given set of rules governing when and how the code should be applied.
The engine will ship in its own package,
@medusajs/promotion
.The key features of the module are: