vendic / hyva-checkout-google-address-autocomplete Goto Github PK
View Code? Open in Web Editor NEWHyvä checkout compatibility module for vendic/magento2-google-address-autocomplete
License: MIT License
Hyvä checkout compatibility module for vendic/magento2-google-address-autocomplete
License: MIT License
Steps to reproduce:
Expected Result:
Actual Result:
Note: There's also an issue with the "subpremise" field that is sometimes used as the house number.
When you search for a house number with appartment number suffix, for example: 61-19. The apartment number (19) doesn't get filled in the street address, because it isn't in the response of the Google Address API.
Currently, only address field types that are present in Google's response are dispatched for updating, leaving existing values.
This requires the user to find their match on the first try or to get lucky that all currently populated values' fields are present for the new address too.
City stays populated despite the 2nd address not having a City.
City should be cleared.
Remove the if statement and set the value to the value if present, otherwise an empty string, causing the input to be cleared.
component.set(identifier, value ?? "");
Currently, the module is build for only 2 address lines. Let's also test the behaviour for 3 and 4 address lines, since this is possible by default in Magento.
I don't want to support a single address line at this point, so let's make that clear in the docs and disable the entire feature if address lines is set to 1.
We had a quota set to 10 request per user per minute and we've now set that to 100 requests per user per minute (Google Places), yet after typing in about half of the address we'd start getting errors in the console
You have exceeded your rate-limit for this API. For more information on usage limits and the Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/usage
Can you confirm you are using the Google Places and how many requests per address lookup are you actually performing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.