Zen Cart Logo
Forums / General Questions / Values on Checkout_Payment are not retained after error

Values on Checkout_Payment are not retained after error

Views: 835

Results 1 to 3 of 3
6 Aug 2015, 10:06 PM
#1
osulywan avatar

osulywan

New Zenner

Join Date:
May 2012
Location:
Dallas, Texas
Posts:
11
Plugin Contributions:
0

Values on Checkout_Payment are not retained after error

My store is here: https://www.mellew.com/reg/
ZenCart 1.5.1
CC Gateway Authorize.net AIM

I have a quirky annoyance that is probably something simple, I can't find it so I hope it is a problem someone out there has already solved.

On the last page of checkout, if there is an error, no values are retained. If one mis-types one's CC number, the CC number field is wiped out along with expiration date, CVV etal. I would like to keep all the data keyed into the form. Still show the error but allow the customer to review and fix.

When products are added to the cart, this does not occur. All products have required attributes. Error processing is fine there. If a required attribute is omitted, an "OOPS ..." message is displayed and all values entered are retained.

At checkout, I required acceptance of Terms and Conditions. And a valid CC. If they enter their CC correctly and forget to Accept Terms, an Error is invoked and they must enter everything again including CC.

Another observation: The OOPS messages on the product attributes are yellow background and the errors on the checkout_payment page are red.

https://www.mellew.com/reg/

10 Aug 2015, 4:07 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Values on Checkout_Payment are not retained after error

The act of "remembering and re-displaying" the shopper's credit card data is a forbidden practice when it comes to PCI compliance (which is required when collecting credit cards directly on your site). That's why the card data is not re-displayed. It's understandably inconvenient, but that's the "why" behind that behaviour.

In addition to upgrading to the latest version, there are 2 things you could do to customize your own checkout flow to improve customer experience somewhat:

  1. Alter the checkout_payment template to move the T&C checkbox so that it's below the payment choices and just above the continue/submit button. That way it's more visible to the customer and they're more likely to not "miss" it.

  2. Optionally you could write some javascript code which disables the continue/submit button so that it can't be clicked until the T&C box is checked, and present some sort of message to the visitor to alert them to what they still need to do in order to proceed.

10 Aug 2015, 5:04 PM
#3
osulywan avatar

osulywan

New Zenner

Join Date:
May 2012
Location:
Dallas, Texas
Posts:
11
Plugin Contributions:
0

Re: Values on Checkout_Payment are not retained after error

Thanks for the response. I like the Javacript idea. I think that will be incorporated as part of the upgrade to ZC 1.5.4.