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

[Bug]: Coupon does not auto apply #35

Open
niyonx opened this issue Jun 1, 2022 · 3 comments
Open

[Bug]: Coupon does not auto apply #35

niyonx opened this issue Jun 1, 2022 · 3 comments

Comments

@niyonx
Copy link

niyonx commented Jun 1, 2022

What happened?

To reproduce:

  • create two locations
  • create an auto-apply coupon for each location
  • when going into the /menus, only the most recently created coupon will be automatically applied
  • the other location will not have the coupon applied automatically

What did you expect to happen?

I think for every coupon, good or not will be added to the session metadata, but all of them have the same key so they override even the valid coupon - file is flame/src/cart/CartCondition.php

Version

3.2.x

What browser are you seeing the problem on?

Chrome

Relevant log output

No response

@sampoyigi
Copy link
Member

Does the coupon get applied when you add an item to your cart at the other location?

@niyonx
Copy link
Author

niyonx commented Jun 7, 2022

If I add the coupon manually it always works.

However, only the location with the coupon created the most recently will get auto-applied. As I add items in the other locations, the coupon does not get applied automatically.

@nawazsharif
Copy link

I'm facing the same issue when adding multiple coupons. For example, one coupon is set to auto-apply only for delivery, and another is set to auto-apply only for collection. However, only the last coupon I created gets automatically applied.

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

3 participants