Menu
Feedback
Known issues
Promotional flag displayed on products outside of the price range
Marketing & Merchandising
•
ID:
Backlog
Published on4/10/2018
•
Last updated on12/22/2022
1 min read

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
Was this helpful?
Yes
No
Suggest Edits (GitHub)
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 VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback