Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Promotions #1289

Merged
merged 1 commit into from
May 12, 2022
Merged

fix: Promotions #1289

merged 1 commit into from
May 12, 2022

Conversation

tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented May 12, 2022

What's the purpose of this pull request?

When dealing with "Buy 2 Get 3" kind of promotions our code got crazy. This was because of a miss interpretation between of selling prices and prices.

This PR fixes this issue.

How to test it?

You can use carrefourbrfood for testing this. Open store.config.js, change account to carrefourbrfood and use sales channel 2. After that, visit the following url: /cafe-pilao-senseo-intenso-18-saches-8756201-2618/p. Add 6 items on cart and make sure the promotion was applied correctly.

Starters Deploy Preview

@vercel
Copy link

vercel bot commented May 12, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
faststore ✅ Ready (Inspect) Visit Preview May 12, 2022 at 3:35PM (UTC)

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d94b677:

Sandbox Source
Store UI Typescript Configuration

@tlgimenes tlgimenes marked this pull request as ready for review May 12, 2022 15:43
@tlgimenes tlgimenes requested a review from a team as a code owner May 12, 2022 15:43
@tlgimenes tlgimenes merged commit 5779658 into main May 12, 2022
@tlgimenes tlgimenes deleted the fix/promotions branch May 12, 2022 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants