distance calculator

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
joecanti's picture

Rules distance calculator for Drupal Commerce

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
Subscribe with RSS Syndicate content