Documentation
Feedback
Guides
Troubleshooting

Troubleshooting
Development
The promotion highlight flag does not appear on the product

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

  1. In the VTEX Admin, go to Promotions > Promotions.
  2. Open the promotion you configured.
  3. Confirm the promotion is highlighted.

{"base64":"  ","img":{"width":388,"height":289,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":8708,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/docs/troubleshooting/development/is-featured-en.png"}}

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

  1. Open the Store Theme app using any code editor, such as Visual Studio Code.
  2. Go to the page template where the product should be displayed with the highlight flag.
  3. 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 and product-summary.shelf.

  1. 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.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page