Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Promotional flag displayed on products outside of the price range
Promotional flag displayed on products outside of the price range
ID:
Backlog
Published on 4/10/2018
Last update on 12/22/2022

Summary

The viewports $product.DiscountHightLight and <vtex.cmc:discountHightLight/> are based on the teasers provided by checkout as a rule for displaying promotional flags. However, the checkout does not filter "ItemMinPrice" rules if other rules are configured.

As a consequence, promotions that are based on ranges of values for items and have other restrictions, such as payment methods, appear as a promotional flag for other products, even if they are outside the price range for the promotion.

Simulation

  1. From the Admin, choose Rates and Benefits > Benefits.
  2. In the upper right corner, click the New Benefit button > Regular.
  3. Choose any type of discount.
  4. Under Product Highlight, choose Highlight.
  5. Apply some restriction, for example: by price range of the item.
  6. Restrict it by some payment method, such as Bank Slip.
  7. Activate and save the promotion.

Workaround

Use the checkout API (orderForm Simulation) to fetch information from available teasers for the product, and then render the promotional flag with the desired business rule in a custom way.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback