The highlight of a promotion is a visual notification that can be placed on shelves and product pages, informing customers that the item is eligible for a promotion. A common example is the indication of free shipping below the product image.

In this guide, you will find the following sections:
- Promotions eligible for highlight
- Restrictions
- Configuring a promotion
- Promotion highlight in Store Framework
- Promotion highlight in Legacy CMS Portal
Promotions eligible for highlight
The promotion highlight can be applied to different types of promotions and discounts. This highlight will be displayed on shelves and product pages, alerting customers that the item is part of a special promotion.
The following types of discounts are eligible for a highlight application:
- Percentage discount: offers a percentage reduction on the product’s price.
- Percentage shipping discount: applies a discount to a portion of the shipping cost, allowing customers to pay less for shipping and encouraging the purchase decision.
- Maximum shipping: sets a maximum shipping cost, regardless of factors such as distance or order weight.
- Free shipping: completely eliminates the shipping cost.
- Free gift: offers an extra product at no cost to the customer when purchasing a certain item or reaching a minimum purchase value.
To learn more, see the Promotions section.
Restrictions
You cannot configure the highlight in promotions with restrictions in the cart, such as:
- Postal code range
- Accumulated purchase value
- BIN
- Customer clusters
- Shipping method
- Payment method
- Max installments, first purchase only
These promotions are not eligible for all customers. This means that customers need to provide additional information (e.g., postal code) for the promotion to be applicable. Therefore, highlights cannot be configured in these cases.
Configuring a promotion
Follow the instructions below to configure promotions in your store.
- In the VTEX Admin, go to Promotions > Promotions, or type Promotions in the search bar at the top of the page.
- Search for the promotion you want to configure.
- In the Promotion is highlighted option, select Yes.
- Configure the promotion with the desired specifications.
- Click the
Save
button. - Follow the instructions corresponding to the frontend technology used by your store:
Promotion highlight in Store Framework
For stores developed using Store Framework, after configuring the promotion highlight, follow the instructions in the documentation for the Product Highlights component.
Promotion highlight in Legacy CMS Portal
For Legacy CMS Portal stores, after configuring the promotion highlight, configure the page template and shelves template in the CMS module. In addition, your CSS must be configured for this function.
Page template
This configuration involves editing the page template used for the product page layout and including the <vtex.cmc:discountHighLight/>
tag.
-
In the VTEX Admin, go to Storefront > Layout, or type Layout in the search bar at the top of the page.
-
Click CMS > Sites and channels.
-
Click the name of the website you want.
-
Click / > Product > @Product@.
-
Click the layout with a red checkmark.
-
In the Template field, check the name of the template used:
-
In the side menu, click the HTML Templates folder.
-
Click the template found at @Product@.
-
Enter the code
<vtex.cmc:discountHightLight/>
based on your HTML structure. -
Click Save Template.
Shelves template
-
In the VTEX Admin, go to Storefront > Layout, or type Layout in the search bar at the top of the page.
-
Click CMS > Shelves Templtes.
-
Click the desired template.
-
Enter the
$product.DiscountHightLight
code. -
Click Save Template.
After making the settings in the VTEX Admin and adding the appropriate tags to the templates, a CSS class with the name of each promotion that meets the requirements will be automatically generated in the HTML. For example, if the promotion is called "BlackFriday," a class called .BlackFriday
will be generated in the HTML of the product or shelf.
Once the class is generated, you will need to define your CSS styles, customizing a text or image for the flag directly in the templates.