When creating a promotion and enabling the highlight option, the product does not display the highlight flag in the store.
In stores developed with VTEX IO Store Framework, when creating a promotion and enabling the highlight option, the corresponding flag may not appear on the product.
This behavior may occur due to the absence of the product-highlights
component on the corresponding page.
Solution
To display the promotion highlight on a product, follow the steps below.
Check the promotion setup
Make sure your promotion is configured properly and has the highlight option enabled. You can check this directly in the VTEX Admin or using a VTEX API.
VTEX Admin
- In the VTEX Admin, go to Promotions > Promotions.
- Open the promotion you configured.
- Confirm the promotion is highlighted.
VTEX API
Using the Get promotion or tax by ID API, check if the isFeatured
field is set as true.
Check the product-highlights
component
- Open the Store Theme app using any code editor, such as Visual Studio Code.
- Go to the page template where the product should be displayed with the highlight flag.
- Check if the template has a product highlight block declared.
The Product Highlights blocks require a product context to work properly. Therefore, when declaring these blocks, ensure that they are placed in a theme template or a block where this context is available, such as
store.product
andproduct-summary.shelf
.
- If a product highlight block is not declared, follow the Product Highlights documentation to set it up.
If the problem continues, open a ticket with VTEX Support.