coupons icon indicating copy to clipboard operation
coupons copied to clipboard

Coupon redemption limit = 0 doesn't work

Open phthhieu opened this issue 9 years ago • 4 comments

  1. I create a coupon with Redemption Limit = 0 (so the number of time usage should be ∞)
  2. Then I use this coupon by this code: Coupons.redeem(coupon, amount: total_amount_dollars)
  3. From now, if I check coupon with: Coupons.apply(coupon, amount: total_amount_dollars)

Real result: The discount amount will be returned 0 in step 3 Expectation: it shouldn't be 0, because Redemption Limit = 0

Could you guys help on this? Thanks so much

phthhieu avatar Jan 13 '16 08:01 phthhieu

This is working for me, as you've described it here. I have had it running in production for some time now, and – AFAIK – there hasn't been updates over the past couple months, so I suspect it might be related to how you've set up the coupon.

Could you post a screenshot of your Edit page, so we can see how you've set up the coupon?

cabgfx avatar Jan 13 '16 13:01 cabgfx

Yes. Limit when set to 0 is not taking it as infinity. I've tried it.

kranthi1027 avatar Apr 01 '16 20:04 kranthi1027

Actually, I misunderstood this in my first reply.

0 for redemption limit does not work for unlimited redemptions. In fact, it only allows 1 redemption.

Any pointers on this, @fnando ?

cabgfx avatar May 19 '16 11:05 cabgfx

Is this still open? :/

facundofarias avatar Sep 02 '17 11:09 facundofarias