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.

  1. Open the Catalog discounts application.

  2. Click New catalog discount to open a page where you can specify the discount properties.

  3. Enter the following values for the discount’s properties:

    • Name: Brewers department discount
    • Enabled: Yes (selected)
    • Discount: Percentage
    • Amount: 10
  4. 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:

  1. Edit the created Brewers department discount.

  2. 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.

  3. 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

  1. Click Edit to open the Edit macro condition dialog.
  2. Select the Product department is rule in the right part of the dialog.
    Adding a macro rule
  3. Click Add rule () to add the selected rule to the condition.

Specifying the rule’s parameter

  1. Click select department in the left part of the dialog to open the Set parameter value dialog.
  2. Select Brewersfrom the list of available departments.
    Macro rule parameter dialog
  3. Click Set parameter to close the Set parameter value dialog.
  4. Click Save & Close in the Edit macro condition dialog to save and close the dialog specifying the product scope.
  5. 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

  1. View the live site.

  2. Sign in as a registered customer.

  3. Select Store -> Brewers in the on-line store’s main menu.

    • The system offers all brewers with a 10% discount.
  4. Click on the Hario Vacuum Pot product.

  5. 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

  1. Open the Orders application.

  2. Edit () the selected order of a registered customer.

  3. Switch to the Items tab.

  4. Add Hario Vacuum Pot.

    1. Click Add item.

      • The system opens the Add order items dialog.
    2. Select Hario Vacuum Pot.

    3. Specify the amount of product items:

      • Units: 1
    4. Click Add to cart.

      • The system closes the dialog and applies the catalog discount.
        Catalog discount for existing orders

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.