Quote Originally Posted by lolwaut View Post
A customer has reported a bug:

When credit card information is entered on the OPC page then a coupon is subsequently applied to the order, OPC clears the payment information (CC# etc) from the payment section. The customer has to then re-enter the payment information.

A workaround to this would be to put the DISCOUNT COUPON section before the payment section. This would eliminate most instances of this happening since the customer would TYPICALLY apply the coupon before entering their payment info, if the coupon section preceded the payment section.

But, the better fix would be to not have it happen at all.

Can I report this as a bug?
You can make a template-override version of /includes/templates/template_default/templates/tpl_checkout_one_default.php to re-arrange the various elements of that page and move the coupon/gift-voucher element before the payment information.

Since the credit-card information is sensitive, it's not passed back-and-forth between the data-entry page (checkout_one) and its associated confirmation page (checkout_one_confirmation) and the confirmation page is where the coupon/gv handling determines whether/not the information entered is valid.