{"id":238952,"date":"2020-03-23T17:10:58","date_gmt":"2020-03-23T17:10:58","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=238952"},"modified":"2026-02-06T10:44:51","modified_gmt":"2026-02-06T10:44:51","slug":"magento-2-distance-based-shipping-calculation","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/","title":{"rendered":"Magento 2 Distance Based Shipping Calculation"},"content":{"rendered":"\n<p><strong><a href=\"https:\/\/store.webkul.com\/magento2-distance-shipping-extension.html\">Magento 2 Distance Shipping<\/a><\/strong> module helps in calculating the shipping prices based on the distance between the store owner and the customer.<\/p>\n\n\n\n<p> This module allows the admin to set his origin address in the configuration section. <strong>Magento 2 Distance Shipping<\/strong> module facilitates the Admin to set distance calculations based on &#8220;Google Map Distance Matrix&#8221; or &#8220;Latitude Longitude&#8221;. <\/p>\n\n\n\n<p>Also, the Admin can enable the Estimate shipping feature, which will show a field on the product view page to check the shipping charge.<\/p>\n\n\n\n<p>Check the plugin workflow &#8211; <br><\/p>\n\n\n\n<div class=\"wp-block-wk-block-youtube-video wp-block-wk-block--yt-video components-placeholder wk-block--yt-video\"><div class=\"wk-block--yt-video-frame\"><div class=\"wk-block--yt-video-frame-request\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"MRDlcNOSJKQ\"><div class=\"components-placeholder__instructions\">MRDlcNOSJKQ<\/div><\/div><\/div><\/div>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Features- Magento 2 Distance Based Shipping Calculation<\/h3>\n<\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Admin can enable\/disable the Distance Rate Shipping method for their Products.<\/li>\n\n\n\n<li>Shipping Origin Address can be set by the Admin, based on which the calculations will be done.<\/li>\n\n\n\n<li>The Shipping Rates per Unit Distance can be set by the Admin.<\/li>\n\n\n\n<li>Admin can set to apply the shipping rate item wise.<\/li>\n\n\n\n<li>The unit distance set by the admin can be in Kilometer or Mile.<\/li>\n\n\n\n<li>Also, the Admin can add a Handling Charge, Minimum Charge.<\/li>\n\n\n\n<li>The Maximum area to cover can be set by the Admin.<\/li>\n\n\n\n<li>Also, the Admin can set Custom Error Message to display if shipping not applicable.<\/li>\n\n\n\n<li>The admin can enable to Display Estimate Shipping Rate on Product pages.<\/li>\n\n\n\n<li>Also, the Admin can set distance calculations based on &#8220;Google Map Distance Matrix&#8221; or &#8220;Latitude Longitude&#8221;.<\/li>\n\n\n\n<li>The extension Supports Graphql API.<\/li>\n\n\n\n<li>The extension is also compatible with the Hyva theme.<\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Install Extension from Webkul Store<\/h3>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">#1 Download Module<\/h2>\n\n\n\n<p>Firstly, you need to log in to Webkul Store, go to&nbsp;<strong>My Account<\/strong>&gt;<strong>My Purchased Products<\/strong>&nbsp;section, verify and then download and extract the contents of this zip folder on the system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 Upload Folder<\/h2>\n\n\n\n<p>Customers will get one zip folder and they have to extract the contents of the zip folder on their system.<\/p>\n\n\n\n<p>Also, the extracted folder will have a&nbsp;<strong>src<\/strong>&nbsp;folder, inside the src folder you have the&nbsp;<strong>app<\/strong>&nbsp;folder.&nbsp;<\/p>\n\n\n\n<p>Then, You need to transfer this&nbsp;<strong>app<\/strong>&nbsp;folder&nbsp;into the Magento2 root directory on the server as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"379\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png\" alt=\"Move-app-folder-2\" class=\"wp-image-238955\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-300x95.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-250x79.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-768x242.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2.png 1302w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>After the successful installation, you have to<strong>&nbsp;run these commands<\/strong>&nbsp;in the&nbsp;<strong>Magento2 root<\/strong>&nbsp;directory:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#3 Run Commands<\/h2>\n\n\n\n<p>After uploading the module folder, you need to run the following commands in the Magento 2 root directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:upgrade<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:di:compile<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:static-content:deploy<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-extension-from-magento-marketplace\">Install Extension from Magento Marketplace<\/h2>\n\n\n\n<p>If you have purchased this extension from the Magento Marketplace then please follow the below process or visit&nbsp;<a href=\"https:\/\/devdocs.magento.com\/extensions\/install\/\" target=\"_blank\" rel=\"noreferrer noopener\">this<\/a>&nbsp;link.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">#1 Get Access Keys<\/h3>\n\n\n\n<p>You need to get access keys, navigate to&nbsp;<strong>My Profile<\/strong>&nbsp;in Magento Marketplace, then choose&nbsp;<strong>Access Keys<\/strong>&nbsp;in the&nbsp;<strong>My Products<\/strong>&nbsp;section.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/07\/my-profile.png\"><img decoding=\"async\" width=\"1109\" height=\"554\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/07\/my-profile.png\" alt=\"my-profile\" class=\"wp-image-295111\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/07\/my-profile.png 1109w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/07\/my-profile-300x150.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/07\/my-profile-250x125.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/07\/my-profile-768x384.png 768w\" sizes=\"(max-width: 1109px) 100vw, 1109px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Go to&nbsp;<strong>Magento 2<\/strong>&nbsp;and then you need to copy both the Access Keys \u2013 Public Key and Private Key. These access keys will be needed in the next steps for authentication.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/copy-keys.png\"><img decoding=\"async\" width=\"1093\" height=\"372\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/copy-keys.png\" alt=\"copy-keys\" class=\"wp-image-295113\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/copy-keys.png 1093w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/copy-keys-300x102.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/copy-keys-250x85.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/copy-keys-768x261.png 768w\" sizes=\"(max-width: 1093px) 100vw, 1093px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>If access keys are not created earlier, click&nbsp;<strong>Create A New Access Key<\/strong>, enter any name and click OK.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/create-key-name.png\"><img decoding=\"async\" width=\"1119\" height=\"538\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/create-key-name.png\" alt=\"create-key-name\" class=\"wp-image-295114\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/create-key-name.png 1119w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/create-key-name-300x144.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/create-key-name-250x120.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/create-key-name-768x369.png 768w\" sizes=\"(max-width: 1119px) 100vw, 1119px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">#2 Update composer.json File<\/h2>\n\n\n\n<p>To know the component name and version number, go to your Magento Marketplace account section,&nbsp;<strong>My Profile&gt;My Purchases<\/strong>, then find this extension to view the details.&nbsp;<strong>Please note \u2013 Below is an example image, every extension will have its unique component name and version.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/know-component-name-version.png\"><img decoding=\"async\" width=\"1163\" height=\"727\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/know-component-name-version.png\" alt=\"know-component-name-version\" class=\"wp-image-295115\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/know-component-name-version.png 1163w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/know-component-name-version-300x188.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/know-component-name-version-250x156.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/03\/know-component-name-version-768x480.png 768w\" sizes=\"(max-width: 1163px) 100vw, 1163px\" loading=\"lazy\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>After that, navigate to your Magento project directory and update your composer.json file in the following format.<\/p>\n\n\n\n<p><strong>composer require &lt;component-name&gt;:&lt;version&gt;<\/strong><\/p>\n\n\n\n<p>For example, to install version 5.0.0 of this extension you need to run the following command:<\/p>\n\n\n\n<p><strong>composer require webkul\/distance-rate-shipping:5.0.0<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#3 Enter Access Keys<\/h2>\n\n\n\n<p>Now you will need to enter the&nbsp;<a href=\"https:\/\/devdocs.magento.com\/guides\/v2.3\/install-gde\/prereq\/connect-auth.html\" target=\"_blank\" rel=\"noreferrer noopener\">Access Keys<\/a>&nbsp;that you obtained as explained in the first step #1 Get Access Keys. Wait for Composer to finish updating your project dependencies and make sure there aren\u2019t any errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#4 Run Command<\/h2>\n\n\n\n<p>You need to run the following commands:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:upgrade<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:di:compile<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento setup:static-content:deploy<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento indexer:reindex<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento cache:clear<\/pre>\n\n\n\n<p>Hence, after running the commands, you have to flush the cache. This is done from the Magento admin panel by navigating through-&gt;<strong>System<\/strong>-&gt;<strong>Cache management<\/strong>&nbsp;as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"848\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/1-cache-flush.webp\" alt=\"magento-cache-flush\" class=\"wp-image-492938\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/1-cache-flush.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/1-cache-flush-300x227.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/1-cache-flush-250x189.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/1-cache-flush-768x581.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Configuration For Multi-lingual Support<\/h2>\n\n\n\n<p>For the&nbsp;<strong>multilingual<\/strong>&nbsp;support, the admin will navigate through <strong>Store-&gt;Configuration-&gt;General -&gt;Locale Options<\/strong><\/p>\n\n\n\n<p>Then, the admin can select the&nbsp;locale&nbsp;as German (the language into which admin wants to translate his store content).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"856\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/2-locale-timezone.webp\" alt=\"locale-and-timezone\" class=\"wp-image-492939\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/2-locale-timezone.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/2-locale-timezone-300x229.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/2-locale-timezone-250x191.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/2-locale-timezone-768x587.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Translation<\/h2>\n\n\n\n<p>If the user wants to translate their module from English to German.<\/p>\n\n\n\n<p>Then, they need to follow the path&nbsp;<strong>app\/code\/Webkul\/DistanceRateShipping\/i18n<\/strong>&nbsp;in their unzipped Magento 2 DistanceRateShipping folder and will get a CSV file with the name \u201cen_US.csv\u201d.<\/p>\n\n\n\n<p>Now they will rename that CSV as \u201cde_DE.csv\u201d and translate all right side content after the comma in the German language.<\/p>\n\n\n\n<p>After editing the CSV, save it and then upload it to the path&nbsp;<strong>app\/code\/Webkul\/DistanceRateShipping\/i18n<\/strong>&nbsp;where they have installed Magento2 on the server.<\/p>\n\n\n\n<p>The module will get translated into the German Language. It supports both&nbsp;<strong>RTL&nbsp;<\/strong>and&nbsp;<strong>LTR&nbsp;<\/strong>languages.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1200\" height=\"367\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/webkul_CRM_for_magento2_installation_second-1200x367-1.png\" alt=\"webkul_CRM_for_magento2_installation_second-1200x367-1\" class=\"wp-image-238790\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/webkul_CRM_for_magento2_installation_second-1200x367-1.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/webkul_CRM_for_magento2_installation_second-1200x367-1-300x92.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/webkul_CRM_for_magento2_installation_second-1200x367-1-250x76.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/webkul_CRM_for_magento2_installation_second-1200x367-1-768x235.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Then, the user can edit the CSV file as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1036\" height=\"664\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/translation.png\" alt=\"translation\" class=\"wp-image-239086\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/translation.png 1036w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/translation-300x192.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/translation-250x160.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/translation-768x492.png 768w\" sizes=\"(max-width: 1036px) 100vw, 1036px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\"><strong>How to Get Google API Key<\/strong><\/h3>\n<\/div><\/div>\n\n\n\n<p>The admin needs to get the Google Maps API key to address auto-complete to work. <\/p>\n\n\n\n<p>For getting the google API key, the admin needs to follow these steps:<\/p>\n\n\n\n<p><strong>Step 1<\/strong>. Go to <a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/console.developers.google.com\/apis\/dashboard?project=my-project-34547rrr&amp;folder=&amp;organizationId=\" target=\"_blank\">console.developers.google.com<\/a> and log in using your Gmail ID. After that, click on select a project.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/07\/create-app-1.png\" alt=\"google shopping feed magento 2\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 2.<\/strong> Click on <strong>New Project<\/strong> Button. After that, you need to enter the name of the project and Browse the location of the organization.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"874\" height=\"421\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-2.png\" alt=\"New Project\" class=\"wp-image-202991\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-2.png 874w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-2.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-2.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-2.png 768w\" sizes=\"(max-width: 874px) 100vw, 874px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 3.<\/strong> After creating the project click on the <strong>Enable API And Services<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"337\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-3.png\" alt=\"Enable API\" class=\"wp-image-202998\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-3.png 1024w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-3.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-3.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-3.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 4. <\/strong>Then click on the <strong>Maps JavaScript API<\/strong> to get the API key.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1237\" height=\"664\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-4.png\" alt=\"Maps Javascript\" class=\"wp-image-203002\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-4.png 1237w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-4.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-4.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-4.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-4.png 1200w\" sizes=\"(max-width: 1237px) 100vw, 1237px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 5. <\/strong>After clicking on the <strong>Maps JavaScript API<\/strong>, you need to click on the <strong>ENABLE<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"958\" height=\"616\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-5.png\" alt=\"Maps JavaSacript API\" class=\"wp-image-203004\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-5.png 958w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-5.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-5.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-5.png 768w\" sizes=\"(max-width: 958px) 100vw, 958px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 6. <\/strong>Once you have enabled the API then you need to navigate through <strong>Credentials&gt; Credentials in APIs &amp; Services.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1208\" height=\"403\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-6.png\" alt=\"CREDENTIALS\" class=\"wp-image-203013\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-6.png 1208w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-6.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-6.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-6.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-6.png 1200w\" sizes=\"(max-width: 1208px) 100vw, 1208px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 7.<\/strong> After that, you need to click on the create credentials and select the API key.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1086\" height=\"454\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-7.png\" alt=\"API key\" class=\"wp-image-203022\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-7.png 1086w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-7.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-7.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-7.png 768w\" sizes=\"(max-width: 1086px) 100vw, 1086px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><strong>Step 8.<\/strong> Now you can copy the generated API key.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1060\" height=\"494\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-8.png\" alt=\"Created\" class=\"wp-image-203024\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-8.png 1060w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-8.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-8.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/10\/Google-API-step-8.png 768w\" sizes=\"(max-width: 1060px) 100vw, 1060px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Configurations<\/h3>\n<\/div><\/div>\n\n\n\n<p>After the successful installation, the admin will navigate through <strong>Stores<\/strong>-&gt; <strong>Configuration<\/strong>-&gt; <strong>Distance Rate Shipping<\/strong> to configure the initial module settings. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/3-admin-configuration.webp\" alt=\"admin-configuration-distance-shipping\" class=\"wp-image-492940\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/3-admin-configuration.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/3-admin-configuration-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/3-admin-configuration-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/3-admin-configuration-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable: <\/strong>The Admin can select Yes to enable the module.<\/li>\n\n\n\n<li><strong>Google Map API Key:<\/strong> Enter the above generated Google Maps API Key here.<\/li>\n\n\n\n<li><strong>The<\/strong> <strong>Admin Location:<\/strong> Here, the Admin can enter the location of the store.<\/li>\n\n\n\n<li><strong>Admin Latitude: <\/strong>The latitude of the admin&#8217;s location will be automatically entered once the location is entered. <\/li>\n\n\n\n<li><strong>Admin Longitude: <\/strong>Also, the longitude will be automatically set according to the entered location.<\/li>\n\n\n\n<li><strong>Show Estimate on Product<\/strong> <strong>Page:<\/strong> If set Yes then this will show the estimate shipping charges on the product page.<\/li>\n\n\n\n<li><strong>Calculate Distance Based On: <\/strong>The Admin can calculate shipping distance by either selecting &#8220;Google Map Distance&#8221; or &#8220;Latitude and Longitude&#8221;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Distance Rate Shipping Configurations<\/h3>\n\n\n\n<p>There are a few of the other configurations as well. The admin can configure further configurations by navigating through <strong>Stores<\/strong>-&gt; <strong>Configuration<\/strong>-&gt; <strong>Sales<\/strong>-&gt; <strong>Delivery Methods<\/strong>-&gt; <strong>Distance Rate Shipping<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/4-delivery-method-configuration.webp\" alt=\"delivery-method-distance-shipping\" class=\"wp-image-492941\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/4-delivery-method-configuration.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/4-delivery-method-configuration-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/4-delivery-method-configuration-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/4-delivery-method-configuration-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enabled for Checkout: <\/strong>If set yes then the Distance Rate Shipping will be visible at checkout.<\/li>\n\n\n\n<li><strong>Title:<\/strong> Enter the Title of the shipping method that will display to the customers on the website front-end.<\/li>\n\n\n\n<li><strong>Method Name: <\/strong>Also, the method name entered will display to the customers on the website front-end.<\/li>\n\n\n\n<li><strong>Rate Per Unit:<\/strong> Enter the shipping charges applied on the basis of per unit, set. For example, if the rate per unit is set 50 and the unit set is kilometers and if any customer orders a product within a 1kilometer range then shipping charges will be 50.<\/li>\n\n\n\n<li><strong>Maximum Area Cover:<\/strong> Here, enter the maximum area to cover for a distance rate shipping. <\/li>\n\n\n\n<li><strong>Item Wise Rate: <\/strong>If set Yes then the shipping charges will be calculated based on per product. The shipping amount will be multiplied by the number of products ordered.<\/li>\n\n\n\n<li><strong>Handling Charges: <\/strong>Enter the handling charges.<\/li>\n\n\n\n<li><strong>Minimum Charge:<\/strong> Set the minimum charge. If shipping charges calculated is less than the minimum charge then minimum charges will be applied.<\/li>\n\n\n\n<li><strong>Unit: <\/strong>Select the unit that will decide the shipping charges. The Admin can either select &#8220;Kilometers&#8221; or &#8220;Miles&#8221;.<\/li>\n\n\n\n<li><strong>Ship to Applicable Countries:<\/strong> Here, select the countries where distance rate shipping will be applicable. The Admin can either select &#8220;All Allowed countries&#8221; or &#8220;Specific Countries&#8221;.<\/li>\n\n\n\n<li><strong>Ship To Specific Countries:<\/strong> Select the specific countries where this shipping will be applicable. Also, This setting will be available if the admin has selected &#8220;specific countries&#8221; on &#8220;Ship to Applicable countries&#8221;.<\/li>\n\n\n\n<li><strong>Show Method If not Applicable: <\/strong>If yes then the method will show at the front if even if the shipping is not applicable to that area.<\/li>\n\n\n\n<li><strong>Display Error Message:<\/strong> The entered error message will show when the distance rate shipping is not applicable.<\/li>\n<\/ul>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Distance Rate Shipping Manager<\/h3>\n<\/div><\/div>\n\n\n\n<p>The admin can manage the shipping by navigating to <strong>Distance Rate Shipping  &gt;  Distance Rate Shipping Manager<\/strong> under the admin panel.  Two Options will be visible as <strong>Shipping Detail <\/strong>and <strong>Add Shipping<\/strong>.<\/p>\n\n\n\n<p>Under the Shipping Details tab, all the range of regions will be visible in the form of a list. The admin can apply filters and take actions like deleting the regions from the list. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/5-shipping-manager-settings.webp\" alt=\"shipping-detail\" class=\"wp-image-492942\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/5-shipping-manager-settings.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/5-shipping-manager-settings-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/5-shipping-manager-settings-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/5-shipping-manager-settings-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>The admin can also <strong>Edit<\/strong> the desired range by double-clicking on the particular grid. Further, the page will appear showing the Shipping Rule Information. There the admin can enter the updated <strong>Distance From, Distance To<\/strong>, and <strong>Rate <\/strong>as shown in the image below: <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/6-shipping-rule-info.webp\" alt=\"shipping-rule-info\" class=\"wp-image-492943\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/6-shipping-rule-info.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/6-shipping-rule-info-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/6-shipping-rule-info-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/6-shipping-rule-info-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Under the <strong>Add Shipping<\/strong> tab, the admin can upload the desired CSY that will help to enter many regions at once.  By clicking on the <strong>Choose File<\/strong> button, the admin will upload the file. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/7-add-shipping-csv.webp\" alt=\"upload-csv-distance-shipping\" class=\"wp-image-492945\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/7-add-shipping-csv.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/7-add-shipping-csv-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/7-add-shipping-csv-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/7-add-shipping-csv-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>The format of the CSV file will be similar to the below image: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"319\" height=\"160\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/07\/Screenshot_64_.png\" alt=\"Screenshot_64_\" class=\"wp-image-259143\" style=\"width:800px;height:undefinedpx\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/07\/Screenshot_64_.png 319w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/07\/Screenshot_64_-300x150.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/07\/Screenshot_64_-250x125.png 250w\" sizes=\"(max-width: 319px) 100vw, 319px\" loading=\"lazy\" \/><\/figure>\n<\/div>\n\n\n<p>Once the admin will click on the <strong>Add Shipping<\/strong> button, the details will get saved and the success message will appear as shown in the image below: <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/8-success-message-csv-shipping-1.webp\" alt=\"success-message-csv-distance-shipping\" class=\"wp-image-492946\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/8-success-message-csv-shipping-1.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/8-success-message-csv-shipping-1-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/8-success-message-csv-shipping-1-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/8-success-message-csv-shipping-1-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>In this way, the shipping details can be added and managed. <\/p>\n\n\n\n<p><strong>Note: <\/strong>In case, if similar ranges are mentioned then the system will always choose the lower rate.<\/p>\n\n\n\n<div class=\"wk-index-wrap\"><div class=\"block-wrap\">\n<h3 class=\"wp-block-heading index-title\">Shipping Charges Magento 2 Distance Shipping &#8211; Customer View<\/h3>\n<\/div><\/div>\n\n\n\n<p>The customer can check the estimated shipping charges on the product page as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/front-end-1.png\" alt=\"front-end-1\" class=\"wp-image-239064\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/front-end-1.png 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/front-end-1-300x236.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/front-end-1-250x196.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/front-end-1-768x603.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Also, the customer will enter the location and click on <strong>calculate<\/strong> to know the estimate shipping charges.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/estimate-cost-1.png\" alt=\"Magento 2 Distance Based Shipping Calculation-estimate-cost-1\" class=\"wp-image-239066\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/estimate-cost-1.png 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/estimate-cost-1-300x236.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/estimate-cost-1-250x196.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/estimate-cost-1-768x603.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>If the entered location is not available within the maximum coverage area then a message  &#8220;Shipping is not available in this location&#8221; will appear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/not-available.png\" alt=\"Distance-based-shipping-not-available\" class=\"wp-image-239244\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/not-available.png 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/not-available-300x236.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/not-available-250x196.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/not-available-768x603.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>After the availability of shipping in the desired location, the customer can Add the product to the Cart and can proceed towards the checkout process.<\/p>\n\n\n\n<p>The customer can also check the estimated shipping charges on the cart page as well.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"783\" height=\"1024\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/cart-page-783x1024.png\" alt=\"Distance-based-shipping-cart\" class=\"wp-image-239248\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/cart-page-783x1024.png 783w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/cart-page-230x300.png 230w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/cart-page-190x249.png 190w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/cart-page-768x1004.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/cart-page.png 1120w\" sizes=\"(max-width: 783px) 100vw, 783px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now the customer can select the Distance Rate shipping and proceed towards the checkout process<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"962\" height=\"1024\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/checkout-2-962x1024.png\" alt=\"checkout-2\" class=\"wp-image-239069\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/checkout-2-962x1024.png 962w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/checkout-2-282x300.png 282w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/checkout-2-234x249.png 234w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/checkout-2-768x817.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/checkout-2.png 1120w\" sizes=\"(max-width: 962px) 100vw, 962px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Now the customer can add the shipping address and can select the Distance Rate Shipping.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/shipping-address-3.png\" alt=\"Magento 2 Distance Based Shipping Calculation-payment\" class=\"wp-image-239076\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/shipping-address-3.png 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/shipping-address-3-300x236.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/shipping-address-3-250x196.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/shipping-address-3-768x603.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>After selecting the shipping address using the Magento 2 Distance Shipping, the customer can select the payment method, click on &#8220;I agree to the terms and conditions&#8221; and can place an order.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1120\" height=\"880\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/orderID.png\" alt=\"Magento 2 Distance Based Shipping Calculation-orderID\" class=\"wp-image-239071\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/orderID.png 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/orderID-300x236.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/orderID-250x196.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/orderID-768x603.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>So, that\u2019s all for&nbsp;<strong>Magento 2 Distance Shipping<\/strong> Calculation extension. For any further, assistance, just raise a ticket<strong>&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">here<\/a><\/strong>&nbsp;and for any doubt contact us at&nbsp;<strong><a href=\"mailto:support@webkul.com\">support@webkul.com<\/a><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 Distance Shipping module helps in calculating the shipping prices based on the distance between the store owner and the customer. This module allows the admin to set his origin address in the configuration section. Magento 2 Distance Shipping module facilitates the Admin to set distance calculations based on &#8220;Google Map Distance Matrix&#8221; or <a href=\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":279,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2383,9121],"tags":[],"class_list":["post-238952","post","type-post","status-publish","format-standard","hentry","category-blog","category-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 Distance Based Shipping Calculation<\/title>\n<meta name=\"description\" content=\"Magento 2 Distance Based Shipping Calculation helps in calculating the shipping charges based on the distance between the store owner and the customers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 Distance Based Shipping Calculation\" \/>\n<meta property=\"og:description\" content=\"Magento 2 Distance Based Shipping Calculation helps in calculating the shipping charges based on the distance between the store owner and the customers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-23T17:10:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-06T10:44:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png\" \/>\n<meta name=\"author\" content=\"Archana Tiwari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Archana Tiwari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\"},\"author\":{\"name\":\"Archana Tiwari\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9246b28e90a24672ff27e272ae7649ad\"},\"headline\":\"Magento 2 Distance Based Shipping Calculation\",\"datePublished\":\"2020-03-23T17:10:58+00:00\",\"dateModified\":\"2026-02-06T10:44:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\"},\"wordCount\":1879,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png\",\"articleSection\":[\"blog\",\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\",\"name\":\"Magento 2 Distance Based Shipping Calculation\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png\",\"datePublished\":\"2020-03-23T17:10:58+00:00\",\"dateModified\":\"2026-02-06T10:44:51+00:00\",\"description\":\"Magento 2 Distance Based Shipping Calculation helps in calculating the shipping charges based on the distance between the store owner and the customers.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2.png\",\"width\":1302,\"height\":411,\"caption\":\"Move-app-folder-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento 2 Distance Based Shipping Calculation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9246b28e90a24672ff27e272ae7649ad\",\"name\":\"Archana Tiwari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b5c7fb9ecbc2fcc0efdc25d1c9869eac2993f5fb25419ceafb833e1164772d4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b5c7fb9ecbc2fcc0efdc25d1c9869eac2993f5fb25419ceafb833e1164772d4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Archana Tiwari\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/archanatiwari-bd310\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 Distance Based Shipping Calculation","description":"Magento 2 Distance Based Shipping Calculation helps in calculating the shipping charges based on the distance between the store owner and the customers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 Distance Based Shipping Calculation","og_description":"Magento 2 Distance Based Shipping Calculation helps in calculating the shipping charges based on the distance between the store owner and the customers.","og_url":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-03-23T17:10:58+00:00","article_modified_time":"2026-02-06T10:44:51+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png","type":"","width":"","height":""}],"author":"Archana Tiwari","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Archana Tiwari","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/"},"author":{"name":"Archana Tiwari","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9246b28e90a24672ff27e272ae7649ad"},"headline":"Magento 2 Distance Based Shipping Calculation","datePublished":"2020-03-23T17:10:58+00:00","dateModified":"2026-02-06T10:44:51+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/"},"wordCount":1879,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png","articleSection":["blog","Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/","url":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/","name":"Magento 2 Distance Based Shipping Calculation","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2-1200x379.png","datePublished":"2020-03-23T17:10:58+00:00","dateModified":"2026-02-06T10:44:51+00:00","description":"Magento 2 Distance Based Shipping Calculation helps in calculating the shipping charges based on the distance between the store owner and the customers.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2020\/03\/Move-app-folder-2.png","width":1302,"height":411,"caption":"Move-app-folder-2"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento-2-distance-based-shipping-calculation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento 2 Distance Based Shipping Calculation"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9246b28e90a24672ff27e272ae7649ad","name":"Archana Tiwari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b5c7fb9ecbc2fcc0efdc25d1c9869eac2993f5fb25419ceafb833e1164772d4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b5c7fb9ecbc2fcc0efdc25d1c9869eac2993f5fb25419ceafb833e1164772d4c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Archana Tiwari"},"url":"https:\/\/webkul.com\/blog\/author\/archanatiwari-bd310\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/238952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=238952"}],"version-history":[{"count":45,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/238952\/revisions"}],"predecessor-version":[{"id":492948,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/238952\/revisions\/492948"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=238952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=238952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=238952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}