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

Conditions on discount codes are ignored on expand (and even merge) operations #507

Open
patrick-schneider-latori opened this issue May 28, 2024 · 0 comments

Comments

@patrick-schneider-latori
Copy link

patrick-schneider-latori commented May 28, 2024

By using discount codes and excluding specific products but using those products in an expand operation, the condition of the discount code gets fully ignored, and therefore added as discounted line item component to a cart.

See in this screenshot, we have an expanded product which has a deposit as separate product applied and for comparison reasons also as a single standalone deposit product.

You can see that if a 10% discount is active, which is ONLY allowed to be valid for the "Kellerbier", the discount also gets applied to the line item component. To see, that the condition really kicks in, you can compare it with the single deposit product, which is also in the cart:

Bildschirmfoto 2024-05-28 um 16 34 00

I assume, that the discount code gets first applied to the original product BEFORE the expaned operation is applied to, and therefore also the discount code applications are applied to the expanded line item components.

I think, that this is a bug in Shopfiy Functions and therefore it should be investigated and fixed.

@patrick-schneider-latori patrick-schneider-latori changed the title Conditions on discount codes are ignored on merge operations Conditions on discount codes are ignored on expand (and even merge) operations May 29, 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

No branches or pull requests

1 participant