> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weltpixel.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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.

![Magento Table Rates Settings](https://storage.crisp.chat/users/helpdesk/website/-/b/4/a/7/b4a7aae8dab58800/2d50b921-f3b1-41ae-977d-6c634b_k5r6cu.png)

---

## 2. Prepare the Table Rates Data

Head to **Admin → Stores → Settings → Configuration → Sales → Delivery Methods → Scope: Select Website**.

1. **Set Condition** → Choose the calculation condition.
2. **Export CSV** → Click *Export CSV* and save the file `tablerates.csv` locally.

![Export Table Rates CSV](https://storage.crisp.chat/users/helpdesk/website/-/2/1/6/8/2168bcbe3bab1400/88f3e705-9da6-42df-9cde-dee764_v1tzxe.png)

3. 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.

![Edit Table Rates CSV](https://storage.crisp.chat/users/helpdesk/website/-/c/6/c/a/c6cae7a55de98800/194ebb0b-5008-4f06-b1e6-6e5a98_lqvxj6.png)

4. Save the updated file.

---

## 3. Import the Table Rates Data

1. In the same configuration section, click **Browse → Select your updated tablerates.csv → Open**.

![Import Table Rates CSV](https://storage.crisp.chat/users/helpdesk/website/-/e/7/9/c/e79cced17bb3f000/7b42c0b8-071f-4f0a-8699-6613a4_jkapwq.png)

2. 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.