1 / 10

Magento 2 Distance Based Shipping

Magento 2 Distance Based Shipping offers the admin to create a custom shipping method in which the shipping rate is calculated based on the unit distance between the storeu2019s warehouse and the customeru2019s shipping location.<br><br>Maintaining profitability and at the same time to decide the shipping charges becomes extremely difficult for merchants. To solve this, Meetanshi has developed Magento 2 Distance Based Shipping extension.

Meetanshi
Download Presentation

Magento 2 Distance Based Shipping

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Distance Based Shipping for Magento 2 User Guide Table of Content 1.Extension Installation Guide 2.Configuration 3.Warehouse Manager 4.Distance Based Shipping in Frontend 5.Distance Based Shipping in Backend Distance Based Shipping for Magento 2 © Meetanshi

  2. 1.Extension Installation •Create a folder structure in Magento root as app/code/Meetanshi/DistanceBasedShipping •Download and extract the zip folder and upload our extension files to the app/code/Meetanshi/DistanceBasedShipping via FTP. •Login to your SSH and run below commands step by step: ophp bin/magento setup:upgrade oFor Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy oFor Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f ophp bin/magento cache:flush 2.Configuration For configuring the extension, login to Magento 2, move to Sales → Distance Based Shipping – Meetanshi where you can find various settings to enable the extension. •Enabled: Set “YES” to enable Distance Based Shipping extension. •Title: Enter title for the shipping method. •Method Name: Enter the method name for the shipping method. •Displayed Error Message: Enter the error message to show for shipping unavailability. •Google Map API Key: Enter the Google map API key to auto calculate distance from the warehouse to the shipping destination for the distance-based shipping amount calculation. oGo to the Google Cloud Platform Console.Click on “Create New Project”, add a project name and click save. → Shipping Methods → → Distance Based Shipping for Magento 2 © Meetanshi

  3. oGo to APIs & Services > Library. oClick “View All” under Maps category and enable 4 APIs: Distance Matrix APIs, Geolocation API, Maps JavaScript API, Places API Distance Based Shipping for Magento 2 © Meetanshi

  4. oClick the menu button and select APIs & Services > Credentials. On the Credentials page, click Create credentials > API key Or edit an API if already created. You can copy the Google Map API Key from here. •Distance Unit: Select one of the distance units to calculate distance. oKilometres oMeters oMiles Yards •Shipping Cost: Set shipping cost based on the calculated distance. oFrom (Distance Unit): Set minimum distance. oTo (Distance Unit): Set maximum distance. oCost: Set shipping cost. oType: Select one the shipping cost calculation types. ▪Fixed: Fixed amount as in Cost. ▪Per Unit: Distance Calculated x Amount in the Cost. •Minimum Order Amount: Set minimum order amount to allow using this shipping method. •Maximum Order Amount: Set maximum order amount to allow using this shipping method. •Maximum Distance for Shipping: Enter maximum distance to allow shipment. •Ship to applicable countries: Select all allowed countries to enable Distance Based Shipping for. •Ship to specific countries: Select countries to enable Distance Based Shipping for. •Show Method if Not Applicable:Select YES to show the shipping method even if it’s not applicable. •Sort Order: Add sort order of the shipping method. Distance Based Shipping for Magento 2 © Meetanshi

  5. Distance Based Shipping for Magento 2 © Meetanshi

  6. 3.Warehouse Manager The extension facilitates to manage warehouses through a separate backend grid. Go to Distance Based Shipping > Warehouse Manager. All the already created and saved warehouses seen enlisted here. •Click “Add New Warehouse” to add a new warehouse. oStatus: Enable warehouse from here. oStreet: Enter street address for the warehouse. oCity: Enter name of the city in which the warehouse is located. oCountry: Select country in which the warehouse is located. oState: Select state in which the warehouse is located. oZip Code: Enter zip code of the location of the warehouse. Distance Based Shipping for Magento 2 © Meetanshi

  7. 4.Distance Based Shipping in Frontend Once you have set distance-based shipping costs, you can see distance-based shipping rates extension enabled in the frontend. After adding products to cart, the customer selects the warehouse, adds the shipping destination and Google Maps API calculates the distance between these two and shows the shipping cost. Once it’s selected, the respective shipping rate will be applied on the order. Distance Based Shipping for Magento 2 © Meetanshi

  8. •Distance Based Shipping on Checkout Page Distance Based Shipping for Magento 2 © Meetanshi

  9. •Distance Based Shipping in “My Account” Section Once the order is placed using Distance Based Shipping method, under the “My Orders” tab, shipping details are seen. Distance Based Shipping for Magento 2 © Meetanshi

  10. 5.Distance Based Shipping in Backend Apart from the frontend, the Distance Based Shipping method details can also be seen from the backend under Sales → → Orders. The below image shows the order view where Distance Based Shipping details are visible. Distance Based Shipping for Magento 2 © Meetanshi

More Related