Samples > JSP code snippets


JSP code snippet: Promotions display

This JSP code snippet displays all of the available discounts associated with a particular category or catalog entry. It uses the CalculationCodeListDataBean to retrieve all of the CalculationCodeDataBeans in order to get the required information.

The PromotionsDisplay.jsp file is available under the following directory:


Prerequisites

Before you can see the category-specific discounts, create some category or product promotions associated with the category or product, which will be displayed on the test page. The short description, long description and the promotion's period of availability are required when you create these promotions.


Usage

To display category discounts in the store's category page, cut and paste the code from the snippet to the category page.


Related concepts

Promotions


Related tasks

Create a promotion

Activating or deactivating a promotion

Delete a promotion

View a promotion


Related information

Tutorial: Customizing the consumer direct sample store using snippets


+

Search Tips   |   Advanced Search