How to Configure Magento 2 Shipping Methods

How to Configure Magento 2 Shipping Methods

Default Magento supports five type of shipping method, and I have tried to tailor a detailed tutorial on how to configure Magento 2 Shipping Method.

The Magento 2 Shipping Methods are:

  1. Free Shipping
  2. Flat Rate
  3. Table Rates
  4. Magento Shipping
  5. Dimensional Weight

One needs to set up the store’s information from Admin Panel in Stores -> Configuration. Navigate to Sales -> Shipping Settings where store’s details have to be updated.

Understanding each Magento 2 shipping methods in detail,

  1. Shipping options play an important role in online business and, free shipping is the best perk for more sales! It keeps the loyal customers happy. It encourages new customers to buy from your store. Magento 2 allows configuring free shipping and here’s how:

    Go to Store -> Configuration -> Sale -> Shipping Methods

    1. Open ‘Free Shipping’ menu
    2. Set ‘Yes’ at ‘Enabled’ box.
    3. Title: Enter the name of the shipping method viewed by your customers
    4. Method name –  the name of the free shipping method
    5. Set minimum order amount to get free shipping
    6. Set Displayed Error Message that will appear when the method is not available.
    7. Choose a suitable value for Ship to Applicable Countries box:  All Allowed Countries – free shipping will be available to the countries specified in your store configuration. Specific Countries – select countries from the list where customers can use free shipping.
    8. Set Sort Order on Shipping Method on the checkout page
    9. Save the configuration

    Once you save the configuration, customers will be able to enjoy free shipping whenever applicable, at your Magento 2 store.

    How to Configure Magento 2 Shipping Methods 1

  2. Flat rate shipping is the standard shipping charge applied without considering the product attributes such as weight, size, etc. Magento 2 allows configuring flat rate shipping from Store -> Configuration -> Sale -> Shipping method -> Flat rate. 

    1. Select ‘YES’ to enable the flat rate shipping.
    2. Input Title for the flat rate shipping method.
    3. Set the ‘Method Name
    4. Choose the type of multiple flat rate shipping you prefer: Per order or Per item.
    5. Input the price your customers will have to pay for shipping.
    6. In ‘Calculate Handling Fee’ you can set a fixed amount or percentage amount of the shipping fee.
    7. Input the customized message to be displayed to your customers when something goes wrong in Displayed Error Message box.
    8. You can apply Flat rate shipping for specific countries or for all allowed countries in ‘Ship to Applicable Countries.’
    9. Click on ‘Save’ button.How to Configure Magento 2 Shipping Methods 2
  3. Table Rate Shipping method includes creating complex rules based on the combination of conditions like weight vs. destination, price vs. destination and many more. In Magento 2 store, automate the process to calculate shipping charges when a customer chooses an option. To do so, go to Store -> Configuration -> Sale -> Shipping method -> Table rate. 

    1. Default Settings
      1. Enable the shipping method.
      2. Enter Title for Table Rate Shipping Method.
      3. Label the calculated rate in the shopping cart in the Method Name
      4. Set the condition to calculate the table rate shipping charge.
      5. Enable the ‘Include Virtual Products in Price Calculation’  to include the virtual product(s) in the calculation.
      6. Calculate Handling Fee: Set to fixed or percentage.
      7. Display Error Message: Enter the customized error message to be displayed in the frontend.
      8. Ship to Applicable Countries: Set table rate shipping method to multiple countries by using this option.
      9. Set the position of table rate shipping options in Sort Order

      Save your Configuration.

      How to Configure Magento 2 Shipping Methods 3

    2. Build Table Rate Data
      1. In the upper-left corner, set Store View to “Main Website,” or to any other website where the configuration applies.
      2. Check the Export and Import options appear in the Table Rates section.
      3. To change any of the current settings, you must first clear the “Use Default” checkbox next to the field.
      4. Tap Export CSV.
      5. Open the file in a spreadsheet and complete the table with the appropriate values for the shipping calculation condition.
      6. Save the tablerates.csv file on your computer.
    3. Import Table Rate Data
      1. Return to the Table Rates section.
      2. Set Store View to the website where the method will be used.
      3. Then return to the Import field and tap Choose File. Select a completed tablerates.csv file, and import the rates.
      4. Save Configuration.How to Configure Magento 2 Shipping Methods 4
    4. Configure the Rates
      It is always advisable to test your configuration to ensure its working properly. Run the payment process several times with a different address each time. It will assure that shipping and handling rates are calculated correctly.
  4. It requires shipping account to use Magento Shipping.
    Go to Store -> Configuration -> Sale -> Shipping Methods

    1. Set ‘YES’ to enable the Magento shipping.
    2. Set the Title of the shipping method
    3. Enabled API Logging: Determines which API events are logged
    4. API Endpoint: Set the API Endpoint from your Magento Shipping account.
    5. Enter the Account ID of your Magento Shipping Account.
    6. Enter the API Token generated by your Magento Shipping Account.
    7. Ship to Applicable Countries: Magento Shipping will be available to the countries according to store’s configuration
    8. Ship to Specific Countries: Select the countries from the list where customers can get Magento Shipping.
    9. Show Method if Not Applicable: Configure to decide if the Magento Shipping option should appear or not during checkout when it is not applicable.
    10. Displayed Error Message: Customize error message for the frontend when Magento Shipping is not available for some reasons.
    11. Enter Sort Order to determine the position of Magento Shipping.
    12. Checkout View Settings: Configure Address Type, Authority to Leave, and Signature Required checkboxes.
    13. Advanced Settings: Configures synchronization with other systems

    Activate Magento Shipping and configure Locations, Carriers, Packaging and Shipping Experiences sections.

    How to Configure Magento 2 Shipping Methods 5

  5. The dimensional weight method includes calculating shipping charges based on the package volume and weight. The amount of space occupied by the package in the carrier determines the shipping rate. Major carriers like DHL, FedEx, UPS, and USPS apply dimensional weight method. However, this method is risky for merchants! Wisely choose the shipping option for your customers to reduce this risk.

    DHL Shipping Method

    1. Enabled for Checkout: Set “YES” to enable DHL shipping method
    2. Gateway URL: Enter the URL given by DHL
    3. Title: Set the title of the DHL shipping method
    4. Access ID: Enter the DHL shipper account access ID
    5. Password: Enter the DHL shipper account password
    6. Account Number: Enter the DHL shipper account number
    7. Calculate Handling Fee: Set the Handling Fee to fixed or percentage
    8. Handling Applied: Set the handling fee to be applied per order or per packageHow to Configure Magento 2 Shipping Methods 6
    9. Handling Fee: Enter the Handling fee value
    10. Divide Order Weight: Enable to allow dividing weights of an order exceeding 70 kg
    11. Weight Unit: Set the unit of weight used in your store
    12. Size: Select the size of the package from the drop down menu
    13. Allowed Methods: Select the shipment methods allowed in your store
    14. Ready Time: Configure the packaging time after the order is placedHow to Configure Magento 2 Shipping Methods 7
    15. Displayed Error Message: Enter the error message to be displayed when DHL shipping method is not available
    16. Free Method: Select the shipping methods from dropdown to use for free shipping
    17. Enable Free Shipping Threshold: Enable when you want to offer DHL shipping method after a specific amount of money is spent on an order
    18. Ship to Applicable Countries: Select all allowed countries specified in store’s configuration for DHL shipping method
    19. Ship to Specific Countries: Select the countries from the list to allow the DHL Shipping method
    20. Show Method if Not Applicable: Set “No” to not display the DHL method at checkout when not applicable
    21. Debug: Set “YES” to create a log file with error information
    22. Sort Order: Enter Sort Order to determine the position of DHL ShippingHow to Configure Magento 2 Shipping Methods 8

Hopefully, you got the detailed idea of Configuring Magento 2 Shipping Methods.

If any doubts about Magento 2 Shipping Methods Configuration, please mention in the comments below. I am here to help 🙂

Rate us generously if the tutorial was helpful!

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 6 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

2 comments On How to Configure Magento 2 Shipping Methods

  • hello,
    I am using magento 2.2.6 and set DHL configuration but DHL option is not showing in checkout page .

    • Hi Ajay,

      There are many possibilities which can prevent DHL option in your checkout page. You will need to debug it properly in order to fix it.

Leave a reply:

Your email address will not be published.