Skip to content

fix(core): show correct base price when sale is active in Cart#922

Merged
jorgemoya merged 1 commit intomainfrom
fix-price-sale
May 17, 2024
Merged

fix(core): show correct base price when sale is active in Cart#922
jorgemoya merged 1 commit intomainfrom
fix-price-sale

Conversation

@jorgemoya
Copy link
Copy Markdown
Contributor

What/Why?

Fixes issue of showing an item as on sale when quantity was 2 or above.

extendedListPrice and extendedSalePrice account for quantity, but originalPrice doesn't. With this change I compare originalPrice to listPrice, and multiple original Price accordingly.

Before:
Screenshot 2024-05-17 at 1 55 58 PM

After:
Screenshot 2024-05-17 at 1 55 37 PM

Testing

Locally.

@jorgemoya jorgemoya requested a review from a team May 17, 2024 18:56
@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2024

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

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 7:05pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 7:05pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 7:05pm
catalyst-test-store ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 7:05pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 7:05pm

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 17, 2024

🦋 Changeset detected

Latest commit: 557b2c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-9ux967oqi-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟢 Performance 100
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 90

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟢 Performance 96
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 92

@jorgemoya jorgemoya added this pull request to the merge queue May 17, 2024
Merged via the queue into main with commit 321f67f May 17, 2024
@jorgemoya jorgemoya deleted the fix-price-sale branch May 17, 2024 19:19
@github-actions github-actions Bot mentioned this pull request May 17, 2024
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