Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Incorrect discount calculation for 'More for Less' with Max price after item split by previous promotion application
Incorrect discount calculation for 'More for Less' with Max price after item split by previous promotion application
ID: 1093789
Backlog
Published on 9/6/2024
Last update on 9/7/2024

Summary

A bug occurs when stacking a Buy Together promotion, or any promotion that splits items, with a More for Less promotion configured to give a Max Price discount, leading to incorrect discount calculations. The issue arises from price differences between the split items, causing the second promotion to apply inaccurate discounts across multiple SKUs. Additionally, a side effect occurs where the calculated discount from the second promotion is applied to all eligible SKUs, without considering the maximum number of items specified in the More for Less promotion configuration.

Simulation

  1. Create a Buy Together promotion that applies a percentage discount to a SKU.
  2. Create a More for Less promotion with a max price discount that applies a discount to the same SKU.
  3. Add items to the cart that meet the conditions for both promotions.
  4. Observe that the Buy Together promotion applies correctly.
  5. When the More for Less promotion attempts to apply, the system calculates the discount based on a split group of SKUs and applies the discount inaccurately to all items of that SKU. Note: The issue can occur due to other factors that cause item splits, not just from the first promotion.

Workaround

N/A

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