» How simple would it be to create discounts?
C5 Extras > Support > Knowledge Base > eCommerce Express > How simple would it be to create discounts?

With this add-on it's easy to create discounts and has a great control of it as you can see in the image below. The highlighted field is where you can put and create your own discount rule also if you look at the top it can also support coupon codes so basically it's highly customiseable.

Example of discount rules:

For a discount of $5 if there are at least 20 (or more) items in the cart, use this:


if (this.quantity >= 20) {return 5;}

To get free shipping when 20 (or more) items are in the cart use this:


if (this.quantity >= 20) {this.shipping = 0;}

To get 0 tax if the subtotal is above 1000 use this:


if (this.quantity >= 1000) {this.tax = 0;}

For a discount of $5 if the subtotal is above 100, use this:


if (this.subtotal > 100) {return 5;}

Also if you want to sum up discounts with discount codes just use the "discount" variable.


if (this.quantity > 20) {return 5 + discount;}