The Omnyfy Distance Rates Shipping Method allows the Marketplace Owner and Vendors to set rates for shipping based on the distance between the Vendor and Customer locations, and the weight of the product. Vendors can only update their own rates, and Marketplace Owners can manage the default marketplace rates and Vendor's rates.

How to enable the Omnyfy Distance Rates Shipping Method

The first step is to configure the shipping method to be available on the Marketplace. To enable this shipping method, follow the steps below:

  1. Go to Stores > Settings > Configuration

2. On the menu, go to Sales > Shipping Methods

3. Open the Omnyfy Shipping Distance Rate tab

The basic configuration to enable the method can be seen above. But the information can be changed according to the Marketplace:

  • Enabled: Choose Yes to enable the shipping method. Choose No to disable it

  • User Vendor Price: Choose Yes to enable Vendors to update their own rates. Choose No to always use the Marketplace Owner rates

  • Title: The method title that will appear on front-end

  • Method Name: The method name that will appear on front-end

  • Condition: The only one currently available is Weight vs. Destination

  • Calculate Handling Fee: If you're charging a handling fee, choose between Fixed or Percent to determine how to apply the Handling Fee

  • Handling Fee: If you're charging a handling fee, enter the fee amount. How this applies this depends on the previous field

  • Displayed Error Message: Enter the custom message to appear on front-end if the method is not available

  • Ship to Applicable Countries: Choose between All Allowed Countries or Specific Countries, according to your need

  • Ship to Specific Countries: If you choose Specific Countries in the previous field, define the countries in this list

  • Show Method if Not Applicable: Choose No to not show the method on front-end if it is not available

  • Sort Order: Order that the method should appear on front-end with the other shipping methods

Distance Rates Shipping Method - Spreadsheet

Vendors and Marketplace Owners create, update and delete rates by using a spreadsheet to import the values. The columns of this spreadsheet and which columns should be used in each case are explained in the table below (Click here to expand the image):

Distance Rates Shipping Method - Calculations and application

The Distance Rates Shipping Method uses the Vendor and Customer locations and calculates the distance based on Google metrics. The algorithm will then return the price for shipping according to the distance, Vendor and package weight.

To create the shipping prices, the Marketplace Owner and Vendors will need to establish ranges of distance (distance_from - distance_to) and ranges of weight (condition_value). Weight ranges are created by comparing the value of condition_value of different rates with the same distance range.

Please check the example below to understand how to create the ranges:

  1. The first condition states that for Customers that are between 0 and 25 km from the Vendor location, with packages that are 0 kg or more, the price of shipping will be $6. Because the next rate has the same distance range, but a higher value for condition_value (5), this rate applies to all packages under 5kg.

  2. The second condition states that for Customers that are between 0 and 25 km from the Vendor location, with packages that are 5 kg or more, the shipping price will be $11. Because there aren't any more rates with the same distance range, this rate applies to all packages that are 5kg or more. 

  3. The third condition states that for Customers that are over 25 km and up to 50 km from the Vendor location, with packages that are 0 kg or more, the shipping price will be $16. Because the next rate has the same distance range, but a higher value for condition_value (5), this rate applies to all packages under 5kg. 

  4. The fourth condition states that for Customers that are over 25 km and up to 50 km from the Vendor location, with packages that are 5 kg or more, the shipping price will be $21. Because there aren't any more rates with the same distance range, this rate applies to all packages that are 5kg or more.

Examples and rules application:

  1. Customer is 2 km from Vendor and package is 4kg: Rule 1 -> $6

  2. Customer is 2 km from Vendor and package is 5kg: Rule 2 -> $11

  3. Customer is 25 km from Vendor and package is 10kg: Rule 2 -> $11

  4. Customer is 25.1 km from Vendor and package is 4kg: Rule 3 -> $16

  5. Customer is 45 km from Vendor and package is 30kg: Rule 4 -> $21

  6. Customer is 300 km from Vendor and package is 4kg: No shipping price available using this method

Creating new Shipping Rates

To create new shipping rates, please follow the guide available on: Create new Shipping Rates

Updating Shipping Rates

To update existing shipping rates, please follow the guide available on: Update Shipping Rates

Deleting Shipping Rates

To delete existing shipping rates, please follow the guide available on: Delete Shipping Rates

Did this answer your question?