how to apply different shipping method for different country in magento

how to apply different shipping method for different country in magento

September 1, 2026 · Illustrated author avatarBy Stefan Bogdanescu
how to apply different shipping method for different country in magento

Applying Different Shipping Methods for Specific Countries in Magento

Magento is a powerful e-commerce platform that offers extensive customization options, including the ability to apply different shipping methods based on the customer’s location. In this guide, we’ll walk you through the process of setting up FedEx for Canadian customers and USPS for U.S. customers.

Step 1: Enable and Configure Shipping Methods

Firstly, ensure that both FedEx and USPS are enabled in your Magento admin panel:

  1. Log in to your Magento backend.
  2. Navigate to Stores > Configuration > Sales > Shipping Methods.
  3. Enable the FedEx and USPS shipping methods by setting their values to “Yes”.

Next, configure each method with the appropriate details:

  • For FedEx: Provide your FedEx account number, meter number, password, etc.
  • For USPS: Enter your API key and other required information.

Step 2: Set Up Country-Specific Rates

To apply different shipping methods based on the country, you’ll need to set up country-specific rates:

  1. Go to Stores > Configuration > Sales > Shipping Methods.
  2. Click on FedEx or USPS, depending on which method you want to configure.

For each method, click on Shipping Rates per Country/State. You’ll see a list of countries and their corresponding shipping rates.

Step 3: Configure FedEx for Canada

To apply the FedEx shipping method only for Canadian customers:

  1. In the FedEx shipping rate configuration:
  2. Select Canada from the country drop-down.
  3. Enter the relevant shipping rates for Canadian provinces.
  4. Ensure that all other countries have their shipping rates set to 0 or a very high value.

Step 4: Configure USPS for the USA

Similarly, for USPS:

  1. In the USPS shipping rate configuration:
  2. Select United States from the country drop-down.
  3. Enter the relevant shipping rates for U.S. states.
  4. Set all other countries’ shipping rates to 0 or a high value.

Step 5: Test Your Setup

To ensure your setup works correctly, create test orders in your Magento backend:

  1. Go to Sales > Orders and click on Add New Order.
  2. Enter a test order for a Canadian customer.
  3. Verify that the FedEx shipping method is available.
  4. Repeat this process with a U.S. address to confirm USPS works as expected.

Conclusion

Magento’s flexibility allows you to apply different shipping methods based on the customer’s country of residence, providing a tailored experience for your customers. By following these steps and properly configuring your shipping rates per country, you can effectively implement FedEx for Canada and USPS for the USA in your Magento store.

Remember to test your setup thoroughly after making any changes. If you need further assistance or have questions about other customizations, feel free to reach out to our expert team at Laravel Company.

Happy coding!

API Admin Configuration Customers

Our network