Never mind I figured out what all that means BUT there is a bug with this code..
The issue I found is that the member has to first choose the correct subscription and then apply the code. If you apply the code then choose your subscription then the discount is not applied, this does not seem correct. Can you fix this so that when the coupon is applies before or after the subscription is choosen the coupon discount is applied to the correct subscription id.
Example I have 3 subscriptions as follows
Monthly (id=1)
Quarterly(id=2)
Yearly(id=3)
If I create a coupon code for example id=1 then when a members enters the coupon prior to choosing the monthly subscription then the coupon should already be applied to id=1 after the coupon is applied, the way it works now this does not work in this manner as the subscription had to be chosen first then after the coupon gets applied the discount applies.
|