How to enable table rates in Magento 2 with CSV file example?

Say, your warehouse is located in Los Angeles, California. It’s cheaper for you to ship an order to San Francisco, California, than to New York City. So you can use table rate to determine shipping costs basing on the following combinations:

  • Weight v. Destination
  • Price v. Destination
  • Number of Items v. Destination

In this article, we will consider how to configure table rates as a shipping method, import CSV, and show you an example of a table. Let’s start.

Helpful tip: Do you want to use more complex dependencies between address, cart weight, and volume, order subtotal, and price? Take a look at the Amasty Shipping Table Rates extension. It allows you to create an unlimited number of custom shipping methods and rate combinations, define special fees for extra-large or fragile products, show shipping method comments and labels on the frontend.

Table rates settings

To start using table rates, do the following steps:

  1. Go to Stores > Settings > Configuration, then open the Sales tab and click on the Shipping Methods.
  2. Go to the Table Rates section and choose Yes in the Enabled field.
  3. Enter the Title and Method Name that you want to display on the frontend.
  4. Choose the calculation method in the Condition filed.
  5. Select Yes in the Include Virtual Products in Price Calculation field if you want to add virtual products to the calculation.
  6. Set up a handling fee in the Calculate Handling Fee and Handling Fee fields, if needed.
  7. Enter the message that you want to display in case the method is unavailable in the Displayed Error Message field.
  8. Choose countries for what the shipping method will be available in the Ship to Applicable Countries field.
  9. Enter the Sort Order of the shipping method and save the changes.
  10. Then you need to configure the CSV file. For this, you should choose the needed Store View, and click on the Export CSV button.
  11. Download the shipping table rates file on your computer, open it, and fill in the table with the needed values. Check how to complete the table in the official guide.
  12. When you are ready, save the file, and return to the Table Rates section.
  13. Double-check the Store View setting in the left corner. Next, find the Import field and click on the Choose File button.
  14. Import the needed file from your computer, and save the configurations.
  15. Go to the frontend and test the result.

What are the Magento 2 shipping rates? 

Magento 2 shipping rates are the amount of money you charge customers for shipping items. Say, your shipping rate depends on the cart subtotal and state where you are shipping. For states where you have warehouses, you have preferential rates. In this case, you will use the Price v. Destination condition.

In the table below, you can see how the shipping fee changes according to cart subtotal for all the orders with shipping region California (CA) and Utah (UT):


The shipping price is lower for these states than for the rest of the country and varies from $5 to $15. The symbol * represents all values i.e. if we put * in the Zip Code column, that means we want to use this rule for all the addresses of this region.

What is flat rate shipping in Magento?

Fixed rate shipping Magento means that the shipping price is not related to the weight, shape, or size of the item being shipped. With flat-rate shipping, you can charge a flat rate for sending all orders to specific geographic areas, regardless of the number of items ordered.

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.

© 2009-2022 Amasty. All Rights Reserved.