Pickup point modal doesn't utilize geoCoordinates without a Google Maps key
ID: 1041462
Backlog
Published on 5/29/2024
•
Last update on 7/3/2024
Summary
Inserting a postal code into the pickup point selector modal triggers a request to obtain available SLAs for that location. If the account doesn't have a Google Maps API key defined in its Checkout settings, this request will not include geoCoordinates information. This may result in pickup points within a valid range not being shown, such as ones whose freight tables are based on polygons.
Simulation
- Use a store that doesn't have a Google Maps API key defined.
- Set up a pickup point, and bind it to a carrier whose freight table is based on polygons.
- Add a product to your cart.
- In the shipping preview, select the pickup option, and input a postal code that has availability for the pickup point you've created.
- Inspect the shippingData request generated by this action. It will not contain geoCoordinates.
Workaround
Set a Google Maps API key on the store's Checkout settings.