1. Home
  2. Distance Rate Shipping fo...
  3. Plugin functionality
  4. Working example

Working example

All set now lets see how it works

Distance Rate Shipping (Distance Condition)
Let’s assume we have below created Shipping Rules

 

Shipping Working Example

 Image 1 : Shows the distance rule with maximum cost.

Shipping Working Example

 

Image 2 : Shows the duration rule with maximum cost.

Shipping Working Example

Image 3 : Shows the fixed cost* distance with maximum cost

  1. The system will calculate the distance between the user’s location and the WooCommerce store, choose the appropriate shipping rule based on that distance, and display the relevant shipping rates.

Origin Address (WooCommerce Store Address) – Florida, United States – 33556

Destination Address – Florida, United States – 33558

Distance between Origin and Destination has been calculated by Google Map  Distance Matrix API as below

Shipping Working Example
Based on the information provided by the Google Matrix API, the system will apply the all matching Shipping Rate to the order and display it during the checkout process.

Shipping Working Example

Image 3 : Rules applied on the checkout page.

 

The program will calculate the Distance Condition using the same distance calculation and display the result.

How can we help?