In most online stores, the delivery methods and prices are zone-based (usually by country, county or postcode). This client however, wanted a ‘local delivery’ option, based on the distance between their depot and the delivery address – ‘as the crow flies’ . This was quite an unusual request, because for charging purposes calculations are normally based on the actual driving distance by road. However, their local delivery zone (a 15-mile radius of their depot) was to be represented on their website by a circle drawn onto a Google map. Anyone with a delivery address within the circle would qualify for the local delivery rate – hence the request for “as the crow flies”.
At Chadwick Design we wrote custom script to incorporate into the Prestashop Ecommerce system which would allow for the calculation of delivery rates based on distance in a radius of 15 miles from the depot. Delivery in that area is free. Customers outside that area can still place an order for national delivery, with delivery rates reflected in the pricing.