shipperhq / module-address-autocomplete

ShipperHQ Address Autocomplete for Magento 2
Open Software License 3.0
15 stars 20 forks source link

When loading first time the autosuggestion not working #18

Closed parth-synoptek closed 4 years ago

parth-synoptek commented 5 years ago

When I load my checkout page for the first time after login the google autocomplete doesn't work. I have to refresh my page and than this works. Please Help!!

LoganSHQ commented 5 years ago

Hey there! That's certainly strange behavior. Can you please test to see if this issue occurs on multiple browsers? Please shoot us an email at support@shipperhq.com with the results to ensure we get back to you as soon as possible. Thanks!

parth-synoptek commented 5 years ago

I have tested this in Firefox as well as chrome. In Firefox it is working fine but in chrome I have to refresh my page again.

wsajason commented 5 years ago

Hi. From your description the most likely cause is that the browser is caching the page. Chrome has very heavy caching, which can cause discrepancies such as these. Commonly, cache is more evident during testing, compared with an organic experience. Please also ensure that you are using the most recent version (currently 20.3.0) as 20.2.1 accounts for Chrome's auto-fill option. You can verify whether caching has an effect there by enabling the developer toolbar via View > Developer > Developer Tools, navigating to "Network" and enabling the "Disable cache" option.

parth-synoptek commented 5 years ago

Hi I have tried the solution and when I saw my console I was getting the following error, and after refreshing the page it works fine: image

wsajason commented 5 years ago

Thank you for the details This is commonly caused by an incorrect quantity of address lines, as seen here: #16 Please ensure that the default quantity of address lines are used.

wsajason commented 5 years ago

Any changes to the core Magento checkout are not supported, I'm afraid. I would recommend discussing with your developer to identify any changes and whether there are options to bypass the browser's cache.