tastyigniter / ti-ext-coupons

A TastyIgniter extension that allows you to offer coupon codes and discounts to your customers
MIT License
4 stars 7 forks source link

[Bug]: Coupon does not auto apply #35

Open niyonx opened 2 years ago

niyonx commented 2 years ago

What happened?

To reproduce:

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 commented 2 years ago

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

niyonx commented 2 years ago

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 commented 2 months ago

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.