Hello lindapowers,
You confirmed the first order too quickly. This is specifically for paypal. You would have to put both orders in the "pending" stage, cant have one in a cart session. With paypal, it is a matter of clicking the confirm button and being forwarded to paypal before paying for anything. I produced it easily yesterday when testing.
But that hole will be plugged with Valérie's "in use" concept. This might work well for Virtuemart's 1 time gift coupons since they are so simple, but would be a nightmare for AwoCoupon, way more complicated coupons.
Hi Valerie, for this:
case 3:
create order=> coupon in use
client does not pay
order is pending the coupon stays in use
NOT OK
Not really any thing you can do as there is no more human interaction triggers. The only thing I can think of is to run a cron, and after a certain amount of time has passed, free up the coupon.
Any chance the core could be reworked to only use one order id through a full cart session not matter the errors? Or this is just the reality?
Thanks for looking into it.