I'm making a website for a pizza delivery shop. I would like to find a way where I can use the customer's address to work out how many miles it is from the shop so that I can offer different shipment methods of varying prices.
Example shipment charges:
Customer address within 2 miles of shop = Free
Customer address between 2 and 3 miles of shop = £1.50
How can I achieve this? Is there something in the standard Virtuemart or do I need a third-party plugin? If so, please can you give me the details.
Any help would be greatly appreciated.
Why is urgent?
if we develop an e-shop, we expect to prepare at least 6 months, that is a lot of time :)
I think you must combine GEO IP funkction with right extensions. You can start with this: https://sm-planet.net/index.php?option=com_content&view=article&id=5&Itemid=120, but Im not sure if this developer continue or stopped all works.
An IP lookup would be useless for a local delivery service! There are a few distance calculating scripts based on Google maps, but I could only find 2 for Joomla:
https://joomlok.com/en/products/kalkulyator-rasstoyanij-dlya-joomla-i-ne-tolko
https://codecanyon.net/category/plugins/virtuemart?tags=distance%20price%20calculation,joomla - this is apparently for use with VirtueMart, but may not be for current versions.
https://www.gjcwebdesign.com/vm-2-radius-shipping-plugin.html
Thank you very much for all the feedback. We've been trying various possible fixes over the last several days. We are now working on implementing the Radius Shipping plugin as we found limitations with the Advanced Virtuemart Shipping Rules plugin. With the Advanced Shipping rules we could NOT specify a specific number of miles, only the first part of the UK postcode, which can cover a fairly wide area. Thanks to everybody for the feedback.