I wonder why shops still visible to customer location even out of delivery range. Only when the customer placed order, there is error message as shown in screenshot. It says the shop is not operational on selected location.
We use Geodistance formula to calculate the distance between the customer and all the stores to list the stores on the Homepage. (We donot use Paid 3rd party service like Google Distance Matrix API as the cost of that will be huge)
This Geodistance formula is not very accurate according to the roads, as it takes the straight line distance only.
Example For your case, the distance formula might be be giving the distance as 10km for a certain store (let’s assume) and if the radius is set to 8km, then it will be listed on the homepage.
But as you have Google Distance Matrix API enabled, on the cart page we make an api call to calculate the operational distance if Google says the distance is 12km, user will get the message that the store is “not operatianal”
===
The best way is to use Delivery Area Pro to overcome this.
@Saurabh Oh...I see. Thanks.