Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
OrderByBestDiscount returns the wrong sorting order
OrderByBestDiscount returns the wrong sorting order
ID:
Backlog
Published on 8/24/2021
Last update on 12/22/2022

Summary

The OrderByBestDiscount sorting is affected by the lowest list price and base price among all available trade policies.

For more sorting-related errors, see this documentation.

Simulation

  1. Configure at least two trade policies listed in your store.
  2. Create a base price for a SKU.
  3. Create a list price for the same SKU.
  4. Configure the <vtex.cmc:searchResult/> control on the product page.

Workaround

There is no workaround in the Portal. However, you can add VTEX Intelligent Search to your store.

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