Pricing & Discounts

Here are various ways you can calculate the price of a product or implement discounts.


The preferred way of handling discounts is to use Commerce Discount. Commerce Discount integrates with rules and creates some customized actions that give you the ability to create labeled price discounts on products and orders.

Programmatically created discounts

To store your discounts in code, just export the rules or create your rules in your code and follow these examples.