WP Manifestindependent plugin directory
manifest / ecommerce / wordpress-shipping-distance-calculator

Wordpress Shipping Distance Calculator

Calculate shipping costs based on zip code

★ 3stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/plethoralabs/wordpress-shipping-distance-calculator/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

What is it?

It is a Woocommerce plugin that let you calculate shipping costs based on a users zip code, and display them next to the product price

Prerequisites

You'll need an API key for the Geolocation/Distance Matrix APIs. Get it here.

References

Google Geocoding

Google Distance Matrix

Google Distance Matrix - Introduction

Adding Extra Info with Price in Woocommerce

How to Geocode an Address in Google Maps Javascript

Google Distance Matrix JSON shortest path (PHP)

Get driving distance between two points using Google Maps API