fetchify-dev / magento2

Fetchify Magento 2 Integration
https://fetchify.com
3 stars 6 forks source link

Browser Auto Fill Conflict #33

Open kestraly opened 7 months ago

kestraly commented 7 months ago

If a customer decides to not use the postcode lookup service, the browser no longer sees street address line 1 as line 1.

It will attempt to autofill street address line 1 with street address line 2 data.

I've seen that PCA predict changes the autocomplete values for these inputs to prevent this from happening. It would be good to see something similar.

The issue is, adding the additional input above street address line 1 means chrome detects this as the first street option

kestraly commented 7 months ago

As a quick solution, I've overridden cc_default_checkout.js

At line 10 I've added

jQuery('[name="street[0]"]').attr({
        autocomplete: "address-line1"
    });

This fixes the autocomplete problems