How to configure Table Rates shipping in Magento 2
The shipping Table Rates method uses a data table to calculate shipping rates based on conditions like weight, price, or item count. Here's how to configure it in Magento 2.
1. Configure Table Rates in Magento Admin
Go to Admin → Stores → Settings → Configuration → Sales → Delivery Methods → Table Rates.
Available Settings:
- Enable [Yes / No] → Turn the method on or off.
- Title → Change the default title shown on Checkout.
- Method Name → The name displayed next to the calculated rate.
- Condition → Choose how to calculate rates:
- Weight vs. Destination
- Price vs. Destination
- # of Items vs. Destination
- Calculate Handling Fee → Add an extra charge:
- Fixed
- Percent
- Handling Fee → Define the value based on the method selected.
- Displayed Error Message → Set the error message if Table Rates are unavailable.
- Ship to Applicable Countries → Select all allowed countries or specific ones.
- Ship to Specific Countries → Choose countries if you selected Specific Countries above.
- Show Method if Not Applicable [Yes / No] → Display or hide the method when unavailable.
- Sort Order → Position in the list of shipping methods (e.g., set to 1 to show first).
After configuring, click Save Config, flush the cache, and refresh your site.

2. Prepare the Table Rates Data
Head to Admin → Stores → Settings → Configuration → Sales → Delivery Methods → Scope: Select Website.
- Set Condition → Choose the calculation condition.
- Export CSV → Click Export CSV and save the file
tablerates.csvlocally.

- Open the file in a spreadsheet editor and update values:
- Use
*as a wildcard for all values in a category. - Ensure each row has a valid 3-character country code.
- Sort rows with specific values first, followed by wildcard rows.

- Save the updated file.
3. Import the Table Rates Data
- In the same configuration section, click Browse → Select your updated tablerates.csv → Open.

- Click Save Config and flush the cache.
4. Test the Rates
Finally, test the checkout process with different addresses to ensure shipping and handling fees are applied correctly and the table rate data works as expected.
Updated on: 18/09/2025
Thank you!
