{"section":"tutorials","requestedLocale":"en","requestedSlug":"configuring-promotions-with-a-highlightflag","locale":"en","slug":"configuring-promotions-with-a-highlightflag","path":"docs/en/tutorials/promotions-and-taxes/promotions/configuring-promotions-with-a-highlightflag.md","branch":"main","content":"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.\n\n![ExemploPromocaoDestaque2](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/promotions-and-taxes/promotions/configuring-promotions-with-a-highlightflag_1.png)\n\nIn this guide, you will find the following sections:\n\n- [Promotions eligible for highlight](#promotions-eligible-for-highlight)\n- [Restrictions](#restrictions)\n- [Configuring a promotion](#configuring-a-promotion)\n- [Promotion highlight in Store Framework](#promotion-highlight-in-store-framework)\n- [Promotion highlight in Legacy CMS Portal](#promotion-highlight-in-legacy-cms-portal)\n  - [Page template](#page-template)\n  - [Shelves template](#Shelves-template)\n\n## Promotions eligible for highlight\n\nThe 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.\n\nThe following types of discounts are eligible for a highlight application:\n\n- [Percentage discount](/en/docs/tutorials/how-to-set-percent-discount-promotion-for-a-specific-sku): offers a percentage reduction on the product’s price.\n- **Free gift**: offers an extra product at no cost to the customer when purchasing a certain item or reaching a minimum purchase value.\n\nTo learn more, see the [Promotions](/en/subcategory/promocoes--1yTYB5p4b6iwMsUg8uieyq) section.\n\n## Restrictions\n\nYou cannot configure the highlight in promotions with restrictions in the cart, such as:\n\n- Postal code range\n- Accumulated purchase value\n- BIN\n- Customer clusters\n- Shipping method\n- Payment method\n- Max installments, first purchase only\n\nThese 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.\n\n## Configuring a promotion\n\nFollow the instructions below to configure promotions in your store.\n\n1. In the VTEX Admin, go to **Promotions > Promotions**, or type **Promotions** in the search bar at the top of the page.\n2. Search for the promotion you want to configure.\n3. In the **Promotion is highlighted** option, select **Yes**.\n4. Configure the promotion with the desired specifications.\n5. Click the `Save` button.\n6. Follow the instructions corresponding to the frontend technology used by your store:\n\n- [Store Framework](#promotion-highlight-in-store-framework)\n- [Legacy CMS Portal](#promotion-highlight-in-legacy-cms-portal)\n\n## Promotion highlight in Store Framework\n\nFor stores developed using Store Framework, after configuring the promotion highlight, follow the instructions in the documentation for the [Product Highlights](https://developers.vtex.com/docs/apps/vtex.product-highlights) component.\n\n## Promotion highlight in Legacy CMS Portal\n\nFor Legacy CMS Portal stores, after configuring the promotion highlight, configure the [page template](#configure-the-page-template) and [shelves template](#configure-the-shelves-template) in the CMS module. In addition, your CSS must be configured for this function.\n\n### Page template\n\nThis configuration involves editing the page template used for the product page layout and including the `<vtex.cmc:discountHighLight/>` tag.\n\n1. In the VTEX Admin, go to **Storefront > Layout**, or type **Layout** in the search bar at the top of the page.\n2. Click **CMS > Sites and channels**.\n3. Click the name of the **website** you want.\n4. Click **/ > Product > @Product@**.\n5. Click the layout with a red checkmark.\n\n   ![template-pagina](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/promotions-and-taxes/promotions/configuring-promotions-with-a-highlightflag_2.gif)\n\n6. In the **Template** field, check the name of the template used:\n\n   ![template-produto](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/promotions-and-taxes/promotions/configuring-promotions-with-a-highlightflag_3.png)\n\n7. In the side menu, click the **HTML Templates** folder.\n8. Click the template found at **@Product@**.\n\n   ![save-template](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/promotions-and-taxes/promotions/configuring-promotions-with-a-highlightflag_4.gif)\n\n9. Enter the code `<vtex.cmc:discountHightLight/>` based on your HTML structure.\n10. Click **Save Template**.\n\n### Shelves template\n\n1. In the VTEX Admin, go to **Storefront > Layout**, or type **Layout** in the search bar at the top of the page.\n2. Click **CMS > Shelves Templtes**.\n\n   ![shelves-templates](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/promotions-and-taxes/promotions/configuring-promotions-with-a-highlightflag_5.png)\n\n3. Click the desired template.\n4. Enter the `$product.DiscountHightLight` code.\n5. Click **Save Template**.\n\nAfter 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.\n\nOnce the class is generated, you will need to define your CSS styles, customizing a text or image for the flag directly in the templates."}