Chromium autocomplete behavior causes Hikashop alerts that confuse users

  • Posts: 9
  • Thank you received: 1
  • Hikaserial Standard Hikashop Business
4 years 4 weeks ago #325082

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.4.11
-- Browser(s) name and version -- : Edge 86.0.622.51
-- Error-message(debug-mod must be tuned on) -- : The confirmation email differs from the email your entered. Please enter it again.

Our users are receiving error messages from Hikashop forms as soon as the checkout loads.

When users enter our checkout process they are presented with a Hikashop Guest user form. The first two inputs on this form are "email" and "email confirmation" with the second field having validation that is fired onchange. Both of these fields have autocomplete=off set.

As I'm sure you are aware, Chromium based browsers don't reliably respect the autocomplete=off tag on inputs ( Stack Overflow discussion ) especially for inputs where type=email.

What this means, is that when new users attempt to checkout on our site and click 'Checkout', they are immediately hit with an alert saying "The confirmation email differs from the email your entered. Please enter it again." In some cases, users have reported that they have to click 'ok' on two or three successive of these pop-ups.

Searching these forums show that this issue has been reported as far back as 5 years ago. The solutions from back then do not work today. ( forum post )

We are getting an increasing number of complaints from new users to our shop about this behavior, and we have no doubt that it is causing more carts to be abandoned.

A simple fix would be for Hikashop to conduct validation of inputs using onsubmit rather than onchange. Is this something the dev team would consider?

Alternatively, would the dev team consider reviewing the forms and inputs in Hikashop to make sure they align with the spec ? This way the email and email confirmation fields would be correctly populated by autocomplete and would not cause the alert to fire on page load.

Thank you for your help.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 4 weeks ago #325092

Hi,

The fix explained by iedwards ( www.hikashop.com/forum/checkout/877720-e...too-soon.html#207581 ) should still work, however, you have to add it to the sub_block_login_registration.php view file for the new checkout while resgistration_bootstrap.php he mentions on his message is only for the registration page, which you probably aren't using and only with the "use bootstrap v2 mode" activated, which is disabled by default.

Regarding our inputs and forms respecting the specs, as far as I can read on your link, our form and inputs do respect the spec.
It is totally valid to add autocomplete="off" to the email confirmation input field, and not to add anything to the email input field.
From what I can read, the problem is with the browser filling the email confirmation input field when it should not and with a wrong value on top of that.

Using onsubmit rather than onchange would make it less of a problem, but still a problem since now the customer would have the error when clicking on the submit button.
Also, when the browser works properly, it's normal that it warns you of the problem when you finish typing in the email confirmation field, and not when you click on the submit button. So doing that change makes the form less intuitive for everyone else.
Note that you can easily do that change on your own website in the file sub_block_login_registration.php via the menu Display>Views.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum