Skip to content

Fix discount product and variants purchasables query#1487

Merged
alecritson merged 3 commits intolunarphp:0.8from
ryanmitchell:fix/discount-manager-limitations
Jan 30, 2024
Merged

Fix discount product and variants purchasables query#1487
alecritson merged 3 commits intolunarphp:0.8from
ryanmitchell:fix/discount-manager-limitations

Conversation

@ryanmitchell
Copy link
Contributor

Update the discount query check to only consider limitations, which allows exclusions to continue working.
Maybe this needs extended to conditions too, in which case the scope would need changed to accept an array of types.

Closes #1485

@vercel
Copy link

vercel bot commented Jan 22, 2024

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

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 0:46am

@alecritson
Copy link
Collaborator

Thanks for this @ryanmitchell I think if it's the exclusions that are causing the issue then the query could either exclude the exclusions or include limitations and as you say conditions.

@ryanmitchell
Copy link
Contributor Author

Do you want me to update the scopes to accept an array of types?

@alecritson
Copy link
Collaborator

Yeah I think that would be beneficial, appreciate it

@alecritson alecritson merged commit cbf08eb into lunarphp:0.8 Jan 30, 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