New Zenner
- Join Date:
- Jul 2007
- Posts:
- 1
- Plugin Contributions:
- 0
Autocomplete function on Credit Card forms
I discovered that when using Firefox, the credit card and CVS information is stored on the user's machine even after logging out, resetting the form, etc. It actually requires the user to clear his/her cache in order to keep from seeing the cc numbers.
So what I did was add 'autocomplete=off' to line 17 of tpl_checkout_payment_default.php in:
includes/template/template_defaults/templates
Changed:
<?php echo zen_draw_form('checkout_payment', zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', ($flagOnSubmit ? 'onsubmit="return check_form();"' : '')); ?>To:
<?php echo zen_draw_form('checkout_payment', zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'autocomplete=off', ($flagOnSubmit ? 'onsubmit="return check_form();"' : '')); ?>This seemed to work pretty good!
Thanks