Displaying catalog discounts on the live site

The system allows you to attract the customers by showing them what economical and convenient purchases they can make in your on-line store. Specifically, the system can display original and also discounted prices of products. The system can also display special status labels, for example, SaleNewFeatured, etc.

Displaying catalog discounts on the live site

Offering products at discounted prices

The sample E-commerce Site can display the products** with the original and discounted prices**. Whether and how the system displays the prices depends on each product’s configuration, and availability of catalog discounts:

Product price

Product list price

Catalog discount

Description

defined

defined

doesn’t apply

The list price is crossed out and the price is highlighted.

defined

not defined

applies

The price is crossed out and the price reduced by the discount is highlighted.

defined

defined

applies

The list price is crossed out and the price reduced by the discount is highlighted.

defined

not defined

doesn’t apply

Only the price is displayed for the product; the price is highlighted. (The system displays only one price for the product).

The sample E-commerce Site can display the products with the original and discounted prices. The amount (and percentage of the original prices) that the customers can save is also displayed. Whether and how the system displays this information depends on the products’ configuration, and availability of catalog discounts:

Product price

Product list price

Catalog discount

Description

defined

defined

doesn’t apply

The list price, displayed as List price, is crossed out and the price, displayed as Your price, is highlighted.

defined

not defined

applies

The price, displayed as List price, is crossed out and the price reduced by the discount, displayed as Your price, is highlighted.

defined

defined

applies

The list price, displayed as List price, is crossed out and the price reduced by the discount, displayed as Your price, is highlighted.

defined

not defined

doesn’t apply

The system displays for the product only the price asTotal price.

You can specify the products’ Price and List price properties while editing the products on the General tab.

Alternatively, you can specify these properties in the Pages application while editing the corresponding product pages on the Form tab.

List price stands for the recommended retail price (RRP) or manufacturer’s suggested retail price (MSRP) of the product. The list price is typically determined by factors such as supply, demand and manufacturing costs.

Offering products highlighted with statuses

You can motivate your customers to purchase selected products by showing product statuses, e.g., SaleNewFeatured, etc.

You can specify the products’ statuses by modifying their Public status properties on the General tab.

Alternatively, you can specify the products’ statuses in the Pages application while editing the corresponding product pages on the Form tab.

Configuring pages to display product discounts

The sample product listing pages and sample product details pages contain web parts using transformations that can display product discount information (product prices and statuses).

Kentico sample pages

Web part

Transformation

Product listing pages, e.g., T-shirts page

Product List

EcommerceSite.Transformations.ProductPreviewForThreeColumnsLayout

Product details pages, e.g., Adidas Trefoil Tee page

Product Detail

EcommerceSite.Transformations.ProductDetail

Product details pages, e.g., Adidas Trefoil Tee page

Product Main Image

EcommerceSite.Transformations.ProductDetailGalleryProductImage

Configuring the Product List web part

To configure a product listing/product details page to display product prices and product statuses:

  1. Open the Pages application.

  2. Select the required page from the content tree.

  3. Switch to the Edit -> Design tab.

  4. Add appropriate web parts to the selected web part zones.

    You can do this by copying the web part(s) from any sample product listing/product details page. If you are editing:

    • your custom product listing page, add the Product List web part;
    • your custom product details page, add the Product Detail and Product Main Image web parts.
  5. Modify the web parts’ Transformation properties as required:

    • Product listing pages
      • If you want the page to display product prices, i.e., the currently valid price and the undiscounted price (if available), make sure the transformation contains the following code:

        
        
        
          <span class="retailPrice"><%# If(GetSKUOriginalPrice() > 0, GetSKUFormattedOriginalPrice(), "") %></span>
          <span class="price"><%# GetSKUFormattedPrice() %></span>
        
        
          
      • If you want the page to display product statuses (if available), make sure the transformation contains the following code:

        
        
        
          <span class="indicator <%# GetSKUIndicatorProperty("PublicStatusName") %>"><%# Localize(GetSKUIndicatorProperty("PublicStatusDisplayName")) %></span>
        
        
          

        Code for displaying product statuses

    • Product details pages
      • If you want the page to display product prices, i.e., the currently valid price and the undiscounted price (if available), and the amount (percentage of the original price) that the customers can save, make sure the transformation contains the following code:

        
        
        
          <table>
                <% if(GetSKUPriceSaving() > 0){ %>
                <tr>
                    <td class="label">
                       <span class="retailPrice">List price: </span>
                    </td>
                    <td>
                        <span class="lineThrough"><%# GetSKUFormattedOriginalPrice() %></span>
                    </td>
                 </tr>
                 <tr>
                    <td class="label">
                         <span class="yourPrice">Your price: </span>
                    </td>
                    <td>
                         <span><%# GetSKUFormattedPrice() %></span>
                    </td>
                 </tr>
                 <tr>
                    <td class="label">
                        <span class="instantSavings">You save: </span>
                    </td>
                    <td>
                        <span><%# GetSKUFormattedPriceSaving() + " (" + GetSKUPriceSaving(true) + "%)"  %></span>
                    </td>
                  </tr>
                <% } %>
           </table>
        
        
          

        Code for displaying product prices

      • If you want the page to display the product’s status (if available), make sure the transformation contains the following code:

        
        
        
          <div class="productPublicStatus">
              <span class="<%# GetSKUIndicatorProperty("PublicStatusName") %>">
                <%# Localize(GetSKUIndicatorProperty("PublicStatusDisplayName")) %>
              </span>
          </div>
        
        
          

        Code for displaying product statuses

  6. (Optional) Modify other properties of the web parts if required.

  7. Click OK.

If your customers now view the page on the live site, they can see the product’s discount information.