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

[0.2] Hotfix - Discount issues #847

Closed
wants to merge 3 commits into from

Conversation

ryanmitchell
Copy link
Contributor

Theres overlap with PR #841 here but I wanted to push up as conversation on it seems to have stalled.

This fixes up a few issues I've found on discounts:

  1. Cache getEligibleLines to avoid re-running queries and logic
  2. Handle there not being a condition coupon, which per the UI indicates the discount should be added automatically
  3. Applies currency factoring

One thing I've noticed in testing is that percentage discounts don't apply a cart level discount value (cartDiscountAmount) in the way fixed discounts do. Is this intentional?

@vercel
Copy link

vercel bot commented Feb 7, 2023

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

Name Status Preview Comments Updated
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 7, 2023 at 11:08AM (UTC)

@ryanmitchell ryanmitchell changed the base branch from main to 0.2 February 7, 2023 11:07
@alecritson alecritson changed the title Fix/discount issues [0.2] Hotfix - Discount issues Feb 10, 2023
@alecritson alecritson self-requested a review February 10, 2023 10:23
@alecritson
Copy link
Collaborator

@ryanmitchell Looks like there's some conflicts since the other PR was merged in. Do you have casting your eyes over it, I don't want to try myself and get it wrong 🙈

@ryanmitchell
Copy link
Contributor Author

Shouldnt be needed now the other has merged.

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.

3 participants