Rules distance calculator for Drupal Commerce
Posted by joecanti on September 1, 2013 at 5:50pm
Hi,
So for Drupal Commerce, Rules is used for calculating shipping.
In my case, I want to calculate shipping based on distance...EG:
0 - 25 miles FREE
25 - 50 miles £10
50 - 100 miles £25
This would require that rules takes the customer postcode, and compares it to my postcode using Google Maps to find out the distance, and then spits out the price.
The problem is I have no idea how to do this in Rules! So any help would be very much appreciated.
Magento Cart have something similar as a plugin, but I've seen nothing for any other ecommerce systems.
Many thanks, Joe
Read more