Example - Applying a catalog discount
This example demonstrates an application of a catalog discount. The example uses the sample Dancing Goat MVC site.
We want a 10% discount, that is time-limited, targeted at all visitors, and applies to all products from the Brewers department. The system applies the discount while shopping on the live site, and while editing existing orders in the administration interface.
Adding a catalog discount
First, enter the catalog discount’s general properties.
Open the Catalog discounts application.
Click New catalog discount to open a page where you can specify the discount properties.
Enter the following values for the discount’s properties:
- Name: Brewers department discount
- Enabled: Yes (selected)
- Discount: Percentage
- Amount: 10
Click Save.
The system saves the catalog discount. Currently, the discount applies to all products, there is no time limit, and all customers are eligible.
Limiting the discount’s validity
To specify the catalog discount’s period of validity:
Edit the created Brewers department discount.
Enter the properties in the Duration category.
Valid from: 11/15/2019 8:00:00 AM
Valid to: 01/23/2012020 6:00:00 PM
To see how the discount applies to products on the site, adjust the validity to include the current date.
Click Save.
The system saves the catalog discount. The discount applies to all products, there is a time limit specified, and all customers are eligible.
Limiting the discount’s product scope
To limit the catalog discount’s product scope, specify the Apply to property in the Basics category.
Selecting the discount rule
- Click Edit to open the Edit macro condition dialog.
- Select the Product department is rule in the right part of the dialog.
- Click Add rule () to add the selected rule to the condition.
Specifying the rule’s parameter
- Click select department in the left part of the dialog to open the Set parameter value dialog.
- Select Brewersfrom the list of available departments.
- Click Set parameter to close the Set parameter value dialog.
- Click Save & Close in the Edit macro condition dialog to save and close the dialog specifying the product scope.
- Click Save.
The system saves the catalog discount. Currently, the discount applies to all products from the Brewers department, there is a time limit specified, and all visitors are eligible.
Testing the catalog discount
While shopping on the live site
View the live site.
Sign in as a registered customer.
Select Store -> Brewers in the on-line store’s main menu.
- The system offers all brewers with a 10% discount.
Click on the Hario Vacuum Pot product.
Click Add to cart.
The system displays the product’s unit price in the shopping cart with the catalog discount applied.
While editing existing orders in the administration interface
Open the Orders application.
Edit () the selected order of a registered customer.
Switch to the Items tab.
Add Hario Vacuum Pot.
Click Add item.
- The system opens the Add order items dialog.
Select Hario Vacuum Pot.
Specify the amount of product items:
- Units: 1
Click Add to cart.
- The system closes the dialog and applies the catalog discount.
- The system closes the dialog and applies the catalog discount.
The catalog discount is included in the displayed Unit price. If you view the Price detail (), you can see a detailed summary of all applied discounts.
If you now click OK, the system saves the order.