Habilitar Autocompletar del navegador en OnePage Formulario de comprobación
-
16-10-2019 - |
Pregunta
Cómo habilitar autocompletar para la forma de pago? Actualmente mi navegador (Chrome) no almacena ningún valores de entrada ...
Solución
Hicimos lo siguiente en Magento 1.8.1
-
cambiado como se describe por Inchoo en billing.phtml. Don; t se olvide de cambiar ambos en la plantilla / Pedido / plantilla y / persistente
form id="co-billing-form" method="post" autocomplete="on" action=""
-
opcheckout.js Actualizado
elements[i].setAttribute('autocomplete','on');
Esto funciona bien ahora.
Una cosa que ver sin embargo. Si tiene alguna buena puesta a punto CSS que añadir las marcas de verificación o de otro tipo a los campos validados es que la función de autocompletar sobrescribe esto con el fondo amarillo infame
Otros consejos
Nuestros amigos Inchoo tienen un buen artículo sobre esto junto con un solución . Básicamente, sólo tiene que añadir un método a la forma, ya sea POST o GET.
En template/persistent/checkout/onepage/billing.phtml
method="post"
complemento en la línea 28:
<form id="co-billing-form" method="post" action="">
<fieldset>
<ul class="form-list">
Magento disables the automatic filling of some forms.
This is done by calls like elements[i].setAttribute('autocomplete','off');
in opcheckout.js
.
But even uncommenting this call did not make it work.
If you search the code for a RegEx autocomplete.*off
there are many places where autocomplete is disabled.
There are browser plugins to override this - but I guess you want to make the shopping experience better for all customers, without the need to install a plugin ;-)
So there would be some debugging needed - please share your results!