This is the early access documentation preview for Custom Views. This documentation might not be in sync with our official documentation.
Creating Discounts
Learn how to define discounts with the Merchant Center.
Discount templates let you create simple promotions from a predefined rule structure. Depending on the template selected, the fields available on the discount creation form (that are not required for the use case) are made available. This lets you focus on the essential settings and create your promotions faster.
This tutorial shows you how you can create a simple product or cart discount with discount templates.
Create a Product Discount
For this tutorial, consider an example of a merchant selling furniture in the United States. In their web shop, the products sold are categorized into Living Room Furniture and Bedroom Furniture. The goal is to discount all products in the Bedroom Furniture Category by 10%.
In the Merchant Center main menu, go to Discounts > Add discount.
In the Discount templates card, select Percent off product in the Product discounts section of the drop-down, and then click Select template.
In the General Information section, follow these steps:
- For Product discount name, enter a display name for the Product Discount,
10% off Bedroom Furniture
. - Optional: For Product discount description, enter a plain-text description for the Product Discount,
10% off Bedroom Furniture
. - Optional: For Product discount key, enter a unique identifier key for the Product Discount,
10pctOffBedroomFurniture
. - For Discount value, enter
10
. This is the percentage value by which targeted products will be discounted. - For Rank (sortOrder), enter
0.7
. This defines the relative importance of the Product Discount. Since a larger value ranks higher and as Product Discounts do not stack, this discount will be considered and applied to products instead of an active Product Discount with a rank of0.3
.
- For Product discount name, enter a display name for the Product Discount,
In the Product discount rules, follow these steps:
- For operation, select This discount only applies to products.
- For condition, select If ALL of the following conditions are met.
- Select Categories (by key), then is, and then enter
bedroom-furniture
(the Category key of Bedroom Furniture).
- Select Categories (by key), then is, and then enter
Click Save.
As new discounts are not active by default, click the Status toggle to activate the newly created Product Discount.
You have now successfully created a percentage off discount. All products in the Bedroom Furniture Category would now display the newly discounted price against the base price.
Create a Cart Discount
For this tutorial, let's consider the same example of the merchant selling furniture. The goal is to discount any cart by $10 if the cart's value is $100 or more, and no more discounts must apply to the cart.
In the Merchant Center main menu, go to Discounts > Add discount.
In the Discount templates card, select Amount off based on total spend in the Cart discounts with line items section of the drop-down, and then click Select template.
In the General Information section, follow these steps:
For Cart discount name, enter a display name for the Cart Discount,
$10 off when you spend $100
.Optional: For Cart discount description, enter a plain-text description for the Cart Discount,
$10 off when you spend $100
.Optional: For Cart discount key, enter a unique identifier key for the Cart Discount,
USD10off100Cart
.For Rank (sortOrder), enter
0.5
. This defines the relative importance of the Cart Discount; a larger value ranks higher.- Select the Do not apply any further cart discounts after this one checkbox. This ensures that no further discounts apply to the cart after this discount.
In the Discount configurations section, follow these steps:
In the Under these cart conditions section, do the following:
- For operation, select This discount only applies to carts.
- For condition, select If ALL of the following conditions are met.
- Select Cart Total, then is equal to or greater than, and then enter
100.00 USD
.
- Select Cart Total, then is equal to or greater than, and then enter
In the Apply these discount effects, do the following:
- For Discount value, enter
10.00
for the USD currency. - For Target predicate, select This discount applies to all line items without restriction.
- For Discount value, enter
Click Save.
As new discounts are not active by default, click the Status toggle to activate the newly created Cart Discount.
You have now successfully created a fixed amount off discount. When a cart value reaches $100 and more, the cart would now be discounted by $10.