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:
- WC_INSTALL/samples/Snippets/web/Marketing/Promotions
- WCDE_INSTALL\samples\Snippets\web\Marketing\Promotions
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
Related tasks
Activating or deactivating a promotion
Related information
Tutorial: Customizing the consumer direct sample store using snippets