Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
DiscountExpression Always Uses the Cheaper Freight Regardless of the Selected One
DiscountExpression Always Uses the Cheaper Freight Regardless of the Selected One
ID: 1075053
Backlog
Published on 8/2/2024
Last update on 8/2/2024

Summary

The DiscountExpression, which is a discount based on a formula defined in the promotion settings, always uses the cheaper freight option regardless of the shipping method selected by the customer. This results in discrepancies between the discount given and the expected discount based on the selected shipping method.

Simulation

  • Create a promotion formula that applies a discount based on the total amount including freight.
  • Set multiple shipping methods with different costs.
  • Add items to the cart and select a shipping method that is not the cheapest.
  • Apply the promotion and proceed to checkout.
  • Observe that the discount is calculated using the cheapest shipping method rather than the selected one.

Workaround

There is no workaround available.

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