The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

Magento 2 Shipping Methods Configuration: A-Z Guide (2023)

Magento 2 shipping methods refer to the different choices merchants can offer their customers for delivering their purchased products. This is an important part of the e-commerce experience because it affects customer satisfaction and can influence their decisions on what to buy.

Compared to traditional businesses, online businesses require more reliance on shipping services. Configuring shipping methods is considered a part of the shipping policy you offer to customers.

When done correctly, you can create a positive impression in the minds of customers, increasing the likelihood of them returning for more purchases and even referring their friends and family to your store due to the excellent shipping service.

Table of contents

Overview of Magento 2 Shipping Methods

Shipping methods in Magento 2 can be broadly categorized into 2 types: default shipping methods provided by the platform itself and third-party shipping extensions developed by various vendors.

Default Shipping Methods in Magento 2

How to Configure Free Shipping Method Free Shipping Configuration

  • Flat rate shipping method: This applies a fixed shipping rate to all orders, regardless of weight, size, or destination. Various shipping methods, such as ground or express, may have different rates.
  • Table rates shipping method: Allows you to set shipping fees based on factors like order weight, price, and destination, giving you more flexibility and accurate cost calculations.
  • In-store delivery: When it comes to Magento 2 shipping options by default, we often hear about the Free shipping method, Flat Rate shipping method, and Table Rates method. However, in fact, In-store Delivery is also one of the basic delivery methods of Magento 2.

In-store delivery is a method where customers go to a store or location to pick up their orders, instead of having the orders shipped to them. This is different from shipping, so it might be listed separately. Whether a store offers In-store delivery depends on how it works and what it can do.

Magento 2 store front-end displaying in-store delivery options

Third-Party Shipping Extensions

Magento 2 provides default shipping methods, but you can enhance your shipping capabilities through third-party shipping extensions.

These extensions offer advanced shipping options, such as setting up complex shipping rules based on different criteria, generating shipping labels, automatically updating tracking information, and providing various features to streamline delivery processes and improve the customer experience. Some of these extensions may be available for free, while others require a purchase.

What Features Are a Must for Shipping Extensions?

With hundreds or even thousands of shipping extensions available for Magento 2, many online store owners may find it challenging to choose suitable and cost-effective solutions. To avoid wasting time on trial and error, consider the following features before selecting an extension:

  • Flexibility for diverse shipping needs
  • Multiple shipping methods, including free, flat, table rates, and more
  • Customization options based on customer groups, product attributes, and locations
  • Compatibility with your Magento version and third-party extensions
  • Real-time shipping rates based on customer addresses
  • Tracking capabilities and order status notifications for customers
  • Multi-carrier support for a wider range of shipping choices.

Examples of Third-Party Shipping Extensions

  • Shipping Rules for Magento 2: Adjust shipping costs based on weight, value, destination, SKU, box, and more, ensuring suitable shipping for different situations.
  • Magento 2 Multiple Shipping Flat Rates extension: Store owners can create up to 5 different shipping rates based on various countries to provide fair shipping costs.
  • Magento 2 Shipping Restrictions: Customize shipping options based on specific conditions like cart/product attributes, payment methods, and shipping locations
  • Table Rate Shipping: Help you make your own shipping methods and prices based on different conditions and for different groups of products, making your shipping process more flexible

By choosing the right shipping method options, you can improve customers’ experience, as well as optimize stores’ shipping process.

Related Topics

How to Configure Magento 2 Shipping Method

Configure Free Shipping Method in Magento 2

Step 1: Complete Free Shipping Method settings

  • On the Admin Panel, Stores > Settings > Configuration.
  • On the left panel, under Sales, select the Shipping Methods tab.
  • Open the Free Shipping section,
    • Enable the shipping method by choosing Yes for that.
    • Set the Title for the free shipping on the checkout page.
    • Create a description about the shipping method in the Method Name field.
    • Offer the Minimum Order Amount for the shipping.
    • Enter an error message in the Displayed Error Message box that will appear if Free Shipping is not available.
    • Set Ship to Applicable Countries to one of two options:
      • All Allowed Countries : Free Shipping is supported for every country.
      • Specific Countries: Free Shipping is only supported for selected countries.
    • Set Show Method if Not Applicable to Yes if you want to show Free Shipping all time.
    • Set the Sort Order on the Shipping Method on the checkout page.
  • Save Config to finish.

Step 2: Display Free Shipping in the Carrier Configuration

  • From the Shipping Methods configuration, open the UPS section.
  • Set Free Method to “Ground.”
  • Enable the Free Shipping with Minimum Order Amount and set a minimum number of orders applying free shipping in the Minimum Order Amount for Free Shipping field.
  • Save Config to finish.

Configure Table Rates Shipping Method in Magento 2

Applying Table Rates Shipping means calculating the shipping fee based on different conditions such as Weight vs. Destination, Price vs. Destination, and Number of Items vs. Destination. These conditions are listed in a table rate file that you can export and import in Magento 2 settings.

When a customer asks for a shipping quote, the results appear in the shipping estimate section of the shopping cart. Not only does it save time for both parties, but it also leaves them an impression of a professional business, and ensures that all the necessary shipping information is provided.

If you need to charge different shipping rates in your store, you can do it with Free Shipping Method and Flat Rate Shipping Method. And now, we will learn how to configure the table rate shipping method in Magento 2.

How to Configure Table Rates Shipping Method Table Rate Shipping Method Configuration

Step 1: Configure the Table Rate Shipping Method

  • On the Admin Panel, Stores > Settings > Configuration.
  • On the left panel, under Sales, select Shipping Methods.
  • Open the Table Rates section,
    • Enable the shipping method by choosing Yes for that.
    • Set the Title for the table rate shipping on the checkout page. You can use the default value - “Best Way” for the table rate title.
    • Choose Conditions by the calculating methods: Weight v. Destination, Price v. Destination, or # of Items v. Destination.
    • If the order includes virtual products for the price calculation, choose Yes in the ` Include Virtual Products in Price Calculation` field.
    • If you ask to charge an additional handling fee, set Calculate Handling Fee to fixed or percent, and then enter the number you want to set in the Handling Fee field.
    • Set Ship to Applicable Countries to one of two options:
      • All Allowed Countries : Free Shipping is supported for every country.
      • Specific Countries: Table Rate Shipping is only supported for selected countries.
    • Set the Sort Order on the Shipping Method on the checkout page.
  • Save Config to complete.

How Virtual Products Affect Shipping Methods?

Virtual products are items that are intangible and have no weight, such as digital downloads or services . For shipping calculations based on the Weight vs. Destination condition, virtual products do not have any impact as they do not contribute to the overall weight.

However, the virtual products can change the result of a calculation that is based on either the Price vs. Destination or Number of Items vs Destination condition.

In these cases, even though virtual products have no weight, they still play a role in determining the shipping cost based on the price or quantity of the non-virtual products in the cart. This ensures that the shipping charges are accurately calculated when both virtual and non-virtual products are present in the customer’s order.

Step 2: Preview the Table Rate Data

  • In the upper-left corner, select the Store View where the configuration is active, you can choose “Main Website” or any website you need.

There is the new appearance of the Import and Export option and the Use as Default checkbox that is next to each field in the Table Rate Shipping section.

  • The “Use as Default” checkbox has been remarked, so if you want to change any settings, clear it.
  • Click on the Export CSV button and save the file (tablerate.csv) in your computer.

How to Configure Table Rates Shipping Method Table Rate Shipping Method Data

  • Complete the CSV file in a spreadsheet
    • Use an asterisk (*) as a wildcard to represent all possible values in any category.
    • The “Country” column must contain a valid three-character code for each row.
  • Save the file on your computer after finishing it.*

Step 3: Import the Table Rate Data

  • Go back to the Table Rate Shipping section.
  • In the upper-left corner, select the Store View which allows using the method.
  • Import the “tablerate.csv” file by tapping the Choose File button and then upload the file from your computer.

How to Configure Table Rates Shipping Method Import CSV file

  • Save Config to complete.

Step 4: Check the Rates

To check the Rates for the assurance, try conducting the payment process with different shipping addresses in the checkout. Thus, you can ensure that the calculation for the shipping as well as handling rates are absolutely accurate.

Configure Flat Rate Shipping Method in Magento 2

Flat Rate Shipping Method is the simple solution to configure the shipping method at your store. It charges a fixed shipping fee for any order with different sizes or weights or any shipping addresses. Because it is easy to configure and apply, the flat rate shipping is popular with many carriers. Also, it is a great solution if stores want to control the shipping costs and increase profits.

If you need to charge different shipping rates on your store, you can do it with the Free Shipping Method and Table Rate Shipping Method. And now, we will learn together how to configure the flat rate shipping method in Magento 2.

How to Configure Flat Rate Shipping Method Flat Rate Shipping Configuration

Configure Flat Rate Shipping Method

  • On the Admin Panel, Stores > Settings > Configuration.
  • On the left panel, under Sales, select the Shipping Methods tab.
  • Open the Flat Rate section,
    • Enable the shipping method by choosing Yes for that.

    At that time, Flat Rate is available in the Estimate Shipping and Tax section of the shopping cart, and also in the Shipping section during checkout.

    • Set the Title for the flat rate shipping on the checkout page.
    • Describe the method in the Method Name field that displays with the calculated shipping rate in the shopping cart. The method name is “Fixed” by default or something suitable for your method.
    • To clarify the terms for applying Flat Rate Shipping Method, set the Type to one of the following:
      • None: The shipping rate for this type is zero, that is similar to free shipping method.
      • Per Order: Set the flat rate shipping for an entire order
      • Per Item: Set the flat rate shipping for each item. The rate is multiplied by the number of items in the cart, regardless of whether there are multiple quantities of the same, or of different items.
    • Offer the Price that you want to charge for flat rate shipping.
    • If you ask to charge an additional handling fee, set Calculate Handling Fee to fixed or percent, and then enter the number you want to set in the Handling Fee field.
    • Type the short text for Displayed Error Message if the flat rate shipping is unavailable.
    • Set Ship to Applicable Countries to one of two options:
      • All Allowed Countries : Free Shipping is supported for every country.
      • Specific Countries: Flat Rate Shipping is only supported for selected countries.
    • Set the Sort Order on the Shipping Method on the checkout page.
  • Save Config to complete.

Learn more: Magento 2 Multiple flat rate shipping

How to Sort The Shipping Methods Order?

To sort shipping methods in Magento 2, follow these steps:

  1. Go to Stores > Settings > Configuration in the Admin Panel. In the left-hand sidebar, expand the Sales section and click on Shipping Methods.
  2. On the Shipping Methods configuration page, you will see a list of available shipping methods. Select the shipping method you want to sort.
  3. Once you have selected a shipping method, look for the Sort Order text box to specify the order of the shipping method in relation to others. Lower values mean higher priority. For example, if you set the sort order as 0, the method will appear first in the list.
  4. After setting the sort order, click on the Save Config button to apply the changes.

To ensure that the changes take effect, you may need to reindex and clear the cache. Go to System > Tools > Index Management. Then, mark the checkboxes for Shipping Methods and click on the Submit button to reindex.

After that, navigate to System > Cache Management and select Flush Cache Storage, then click on the Flush Magento Cache button.

Advanced: Get Active Shipping Methods List in Magento 2

All the enabled shipping methods will be shown on the website, and your customers will be able to choose their preferred method during checkout.

However, in some cases, Magento 2 store owners may want to display the list of available shipping carriers. Doing so builds trust with customers, as they can see the available shipping options and choose the one that best suits their preferences and needs. This transparency in providing shipping carrier options helps customers feel more confident in the store’s shipping process and enhances their trust in the business.

To retrieve the list of active shipping methods to use in your Magento 2 store, you need to set up and configure the shipping options in the backend first. Then, do the following steps:

  1. Create a custom block file named ‘Shippingmethods.php’ at the location: app\code\Mageplaza\Extension\Block\Shippingmethods.php.
  2. In the block file, use the code provided below to fetch the list of active shipping methods and their titles:
<?php 
namespace Mageplaza\Extension\Block; 
use Magento\Framework\App\Config\ScopeConfigInterface; 
use Magento\Shipping\Model\Config; 
class Shippingmethods extends \Magento\Framework\View\Element\Template 
{ 
protected $scopeConfig; 
protected $shippingmodelconfig; 


public function __construct(
   Template\Context $context,
   Config $shippingmodelconfig,
   ScopeConfigInterface $scopeConfig,
   array $data = []
) {
   $this->shippingmodelconfig = $shippingmodelconfig;
   $this->scopeConfig              = $scopeConfig;
   parent::__construct($context, $data);
}




    public function getActiveShippingMethod()
  {
     $shippings = $this->shippingmodelconfig->getActiveCarriers();
     $methods = array();
     foreach($shippings as $shippingCode => $shippingModel)
     {
        if($carrierMethods = $shippingModel->getAllowedMethods())
                  {
                       foreach ($carrierMethods as $methodCode => $method)
                       {
                    $code = $shippingCode.'_'.$methodCode;
                    $carrierTitle = $this->scopeConfig->getValue('carriers/'. $shippingCode.'/title');
                    $methods[] = array('value'=>$code,'label'=>$carrierTitle);
                   }
                  }
        }
        return $methods;
    }
}
  1. Next, call the getActiveShippingMethod() function in your phtml file where you want to display the list of available shipping methods. This function will return an array of active shipping methods, which you can then display on your website.

Configure shipping carriers in Magento 2

Magento 2 includes several default shipping carriers that you can choose from:

  • Free Shipping
  • Flat Rate
  • Table Rate
  • UPS (United Parcel Service)
  • USPS (United States Postal Service)
  • FedEx (Federal Express)
  • DHL (Dalsey, Hillblom, and Lynn)

Configuring shipping carriers comes after configuring shipping methods in Magento 2 because shipping methods rely on shipping carriers to actually deliver the products to customers.

When setting up Magento 2 shipping methods, you specify how you want to charge for shipping, such as flat rate or free shipping. Then, you need to link each shipping method to a specific shipping carrier, such as UPS or FedEx, which will handle the physical delivery of the orders.

By configuring shipping carriers after setting up shipping methods, you ensure that the correct carriers are available for the chosen options, allowing customers to select their preferred shipping options during checkout. This way, the shipping process is streamlined and accurate for your online store.

Related Topics

FAQs

How do I choose the best Magento 2 shipping method for my business?

Determining the optimal Magento 2 shipping method for your business involves a thoughtful assessment of your specific needs and those of your customers. When choosing between flat rate and flat rate shipping options, it’s essential to tailor your decision to the unique characteristics of your business.

Flat-rate shipping stands out for its simplicity and is especially suitable for smaller businesses. On the other hand, table shipping offers greater flexibility and suits the requirements of larger businesses.

When configuring shipping options in Magento 2, it is important to take handling and shipping fees into account. Processing fees are designed to cover costs associated with packaging materials and labor, ensuring a comprehensive understanding of the total costs involved. Shipping rates are determined by major carriers such as FedEx, UPS, and USPS, further enhancing your decision-making process.

By carefully considering these factors, you can make an informed choice that not only meets the unique needs of your business but also fits your Magento 2 shipping method.

Which shipping method for Magento 2 is cheapest?

In reality, there is no Magento 2 shipping option that can be considered the “cheapest”. Each method will have varying levels of cost-effectiveness for different merchants depending on the shipping destination, package weight, and shipping carrier rates.

Furthermore, some customers may have a preference for a specific shipping method. For instance, more shoppers may be inclined to make a purchase if they see a free shipping option. This is an important factor for sellers to consider when selecting the most Magento 2 cost-effective shipping method.

However, you can refer to some of the analyses below to choose the most suitable shipping methods for your store’s needs and target customers:

  • Flat Rate Shipping: Charges a fixed shipping cost regardless of weight or destination. Economical for regional shipping.
  • Table Rate Shipping: Set up shipping rates based on specific conditions like destination, weight, and order total. Create custom rates for cost savings.
  • Free Shipping: Attracts more customers and encourages larger orders. May not be the cheapest option for stores, but attractive to customers.
  • Negotiated Rates: Some carriers offer better rates based on shipping volume. Negotiate rates for more affordable shipping costs.
  • Local Pickup (In-store delivery): Eliminates shipping costs for customers who can collect their orders in-store. Available for stores with a physical location.

What is the shipping method code in Magento 2, and why should we pay attention to it?

In Magento 2, the shipping method code is a unique identifier for different shipping options available in the system. Each method has its code, which is used for configuration, enabling, disabling, and customization.

The shipping method code ensures the correct application of shipping rates, rules, and conditions based on the chosen option, which ensures accurate charges for customers.

Developers and administrators use the code for customizations, extensions, and configurations to provide a smooth and accurate shipping experience on the website.

To get the shipping method from an order in Magento, use the following code:

php
$_order->getShippingMethod();

This code will fetch the shipping method from the order object.

Which shipping method is better for international shipping?

Similar to the answer to the previous question about the cheapest shipping method, it’s challenging to determine the best method as it depends on various factors. However, when it comes to international shipping, DHL is a popular choice due to its extensive global network, fast delivery times, and reliable tracking system.

FedEx is also a viable option as it offers a range of international shipping options with different delivery speeds and services, making it suitable for various shipping needs.

Can I offer free shipping for specific products?

Yes, in Magento 2, you can offer free shipping for specific products. To set free shipping for specific products by following these steps:

  1. Go to the product for which you want to offer free shipping.
  2. In the product edit page, scroll down to the Shipping > Free Shipping option. Set it to Yes for this specific product.
  3. Once you save the product, it will be eligible for free shipping.

Remember that you need to have the free shipping method enabled and properly configured in the Shipping Methods section for this to work. Additionally, ensure that the product’s weight and dimensions are properly set up, as these factors can influence shipping calculations.

The bottom line

As online businesses grow, shipping policies should be optimized for cost and efficiency. For example, during the initial stage with low order volumes, a simple shipping strategy may suffice.

However, during the growth stage with high daily order volumes, upgrading shipping management becomes crucial. This may involve adding In-store delivery or international shipping and collaborating with multiple carriers to meet diverse customer needs.

Having the best delivery options can increase sales and save costs. Marketing campaigns can also be supported by shipping options. Through this tutorial, I hope you have learned how to configure Magento 2 shipping methods. To minimize all the work but get the best outcome, you can discover our shipping modules.

Explore Shipping Modules!

Image Description
Hello, I'm the Chief Technology Officer of Mageplaza, and I am thrilled to share my story with you. My deep love and passion for technology have fueled my journey as a professional coder and an ultra-marathon runner. Over the past decade, I have accumulated extensive experience and honed my expertise in PHP development.

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service
x

    Explore Our Products:

    People also searched for

    Subscribe

    Stay in the know

    Get special offers on the latest news from Mageplaza.

    Earn $10 in reward now!

    Earn $10 in reward now!

    comment
    iphone
    go up