VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: trevorellis on July 02, 2020, 11:00:09 AM

Title: Detect Customer's Location For Different Shipment Method Options? URGENT!!!
Post by: trevorellis on July 02, 2020, 11:00:09 AM
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.
Title: Re: Detect Customer's Location For Different Shipment Method Options? URGENT!!!
Post by: pinochico on July 02, 2020, 12:49:09 PM
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.

Title: Re: Detect Customer's Location For Different Shipment Method Options? URGENT!!!
Post by: jenkinhill on July 02, 2020, 13:47:15 PM
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.
Title: Re: Detect Customer's Location For Different Shipment Method Options? URGENT!!!
Post by: GJC Web Design on July 03, 2020, 09:47:33 AM
https://www.gjcwebdesign.com/vm-2-radius-shipping-plugin.html
Title: Re: Detect Customer's Location For Different Shipment Method Options? URGENT!!!
Post by: trevorellis on July 09, 2020, 12:04:56 PM
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.