Free order has an issue with uc_coupon:

1. Order $50 product
2. Go to checkout, put coupon code in textfield
3. Do NOT hit "apply coupon", but hit "Submit" (leaving a payment method other than Free selected)

Free order doesn't add the $0.00 payment, so no payment hooks are fired.

So, this patch modifies the order at load time to change it to a free order if the payment method is enabled and the price is $0.

CommentFileSizeAuthor
#1 1295066-free-order-and-coupons.patch564 bytesdjdevin

Comments

djdevin’s picture

StatusFileSize
new564 bytes

Patch attached.

mrogers’s picture

This patch was a lifesaver -- thanks!

FYI, to get it to work I needed to change the order of the Payment Methods (/admin/store/settings/payment/edit/methods) so that the "Free Order" method was first in the list.