[Skip to main content](#vessel-content)

#   USPS International Shipping not matching

##

- **[Llarian](/forum/user/33731-llarian "View Llarian's Profile")**
- [![Llarian's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33731-llarian "View Llarian's Profile") Topic Author
- [ Offline](/forum/user/33731-llarian)

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 8 months ago -  10 years 8 months ago [\#232904](#232904) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  *[USPS International Shipping not matching](/forum/28-shipping-methods/882980-usps-international-shipping-not-matching#232904 "-- url of the page with the problem -- :   www.weareecs.com/shop  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.16  I'm trying to get International USPS shipping to work, and I'm running into an odd problem.  I have a &quot;Non-US&quot; Zone configured which contains all countries not in the US (obviously).  US shipping works as expected.  Non US shipping gives me the error &quot;No shipping methods available for your location&quot;  I've looked through the plugins/hikashopshipping/usps/usps.php and found that it is failing in this conditional (line 162):  From looking at the adjacent code, I'm not sure how non-US shipping can work with this plugin at all, as it appears to pass all checks prior to this one, then fail here.  If I comment out that entire conditional statement, is appears to work just fine (all 4 available International shipping methods show in the frontend), but I'm worried that I'm missing what this section is supposed to be doing so I don't want to leave it commented out without some better understanding.  Am I missing something obvious here?")* was created by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")*

-- url of the page with the problem -- : [ www.weareecs.com/shop](https://www.weareecs.com/shop)
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.16

I'm trying to get International USPS shipping to work, and I'm running into an odd problem.

I have a "Non-US" Zone configured which contains all countries not in the US (obviously).

US shipping works as expected.

Non US shipping gives me the error "No shipping methods available for your location"

I've looked through the plugins/hikashopshipping/usps/usps.php and found that it is failing in this conditional (line 162):
Code:

if($zone-&gt;zone_code_3 != 'USA') { $messages['no_shipping_to_your_zone'] = JText::_('NO_SHIPPING_TO_YOUR_ZONE'); continue; }

From looking at the adjacent code, I'm not sure how non-US shipping can work with this plugin at all, as it appears to pass all checks prior to this one, then fail here.

If I comment out that entire conditional statement, is appears to work just fine (all 4 available International shipping methods show in the frontend), but I'm worried that I'm missing what this section is supposed to be doing so I don't want to leave it commented out without some better understanding.

Am I missing something obvious here?

Last edit: 10 years 8 months ago by [Llarian](/forum/user/33731-llarian "View Llarian's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgyOTgwLXVzcHMtaW50ZXJuYXRpb25hbC1zaGlwcGluZy1ub3QtbWF0Y2hpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

10 years 8 months ago [\#232916](#232916) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[USPS International Shipping not matching](/forum/28-shipping-methods/882980-usps-international-shipping-not-matching#232916 "-- url of the page with the problem -- :   www.weareecs.com/shop  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.16  I'm trying to get International USPS shipping to work, and I'm running into an odd problem.  I have a &quot;Non-US&quot; Zone configured which contains all countries not in the US (obviously).  US shipping works as expected.  Non US shipping gives me the error &quot;No shipping methods available for your location&quot;  I've looked through the plugins/hikashopshipping/usps/usps.php and found that it is failing in this conditional (line 162):  From looking at the adjacent code, I'm not sure how non-US shipping can work with this plugin at all, as it appears to pass all checks prior to this one, then fail here.  If I comment out that entire conditional statement, is appears to work just fine (all 4 available International shipping methods show in the frontend), but I'm worried that I'm missing what this section is supposed to be doing so I don't want to leave it commented out without some better understanding.  Am I missing something obvious here?")*

Hi,

Actually, this check is only done if you've configured a zone restriction in your USPS shipping method. If you want to shipping everywhere, you should leave that zone restriction setting empty in your USPS shipping method and in that case, the check won't be done.
But yes, that check on the USA shouldn't be done as far as I can see.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgyOTgwLXVzcHMtaW50ZXJuYXRpb25hbC1zaGlwcGluZy1ub3QtbWF0Y2hpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Llarian](/forum/user/33731-llarian "View Llarian's Profile")**
- [![Llarian's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33731-llarian "View Llarian's Profile") Topic Author
- [ Offline](/forum/user/33731-llarian)

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 8 months ago [\#232953](#232953) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  Replied by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")* on topic *[USPS International Shipping not matching](/forum/28-shipping-methods/882980-usps-international-shipping-not-matching#232953 "-- url of the page with the problem -- :   www.weareecs.com/shop  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.16  I'm trying to get International USPS shipping to work, and I'm running into an odd problem.  I have a &quot;Non-US&quot; Zone configured which contains all countries not in the US (obviously).  US shipping works as expected.  Non US shipping gives me the error &quot;No shipping methods available for your location&quot;  I've looked through the plugins/hikashopshipping/usps/usps.php and found that it is failing in this conditional (line 162):  From looking at the adjacent code, I'm not sure how non-US shipping can work with this plugin at all, as it appears to pass all checks prior to this one, then fail here.  If I comment out that entire conditional statement, is appears to work just fine (all 4 available International shipping methods show in the frontend), but I'm worried that I'm missing what this section is supposed to be doing so I don't want to leave it commented out without some better understanding.  Am I missing something obvious here?")*

> nicolas wrote: Hi,
>
> Actually, this check is only done if you've configured a zone restriction in your USPS shipping method. If you want to shipping everywhere, you should leave that zone restriction setting empty in your USPS shipping method and in that case, the check won't be done.
> But yes, that check on the USA shouldn't be done as far as I can see.

I used to have International unrestricted, but it was actually causing problems for US orders in 2.6.0 and 2.6.1.

I'll try commenting it out and run some tests to see if causes any other problems.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgyOTgwLXVzcHMtaW50ZXJuYXRpb25hbC1zaGlwcGluZy1ub3QtbWF0Y2hpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Llarian](/forum/user/33731-llarian "View Llarian's Profile")**
- [![Llarian's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33731-llarian "View Llarian's Profile") Topic Author
- [ Offline](/forum/user/33731-llarian)

Less More

- Posts: 48
- Thank you received: 1
-
-

10 years 8 months ago [\#232957](#232957) by [Llarian](/forum/user/33731-llarian "View Llarian's Profile")  Replied by *[Llarian](/forum/user/33731-llarian "View Llarian's Profile")* on topic *[USPS International Shipping not matching](/forum/28-shipping-methods/882980-usps-international-shipping-not-matching#232957 "-- url of the page with the problem -- :   www.weareecs.com/shop  -- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.16  I'm trying to get International USPS shipping to work, and I'm running into an odd problem.  I have a &quot;Non-US&quot; Zone configured which contains all countries not in the US (obviously).  US shipping works as expected.  Non US shipping gives me the error &quot;No shipping methods available for your location&quot;  I've looked through the plugins/hikashopshipping/usps/usps.php and found that it is failing in this conditional (line 162):  From looking at the adjacent code, I'm not sure how non-US shipping can work with this plugin at all, as it appears to pass all checks prior to this one, then fail here.  If I comment out that entire conditional statement, is appears to work just fine (all 4 available International shipping methods show in the frontend), but I'm worried that I'm missing what this section is supposed to be doing so I don't want to leave it commented out without some better understanding.  Am I missing something obvious here?")*

FWIW, commenting out that conditional does not appear to have had any effect on my US shipping methods, and did fix International.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgyOTgwLXVzcHMtaW50ZXJuYXRpb25hbC1zaGlwcGluZy1ub3QtbWF0Y2hpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
