This thread is resolved. Here is a description of the problem and solution.
Problem:
When using WooCommerce with the PluginHive 'Multi-Carrier Shipping Method for WooCommerce' plugin and WPML, USPS international shipping methods are not offered for customers with international shipping addresses selecting the Spanish language. This issue arises because the translation of the country name includes accents, such as g 'Canada' to 'Canadá', leading to an invalid country name error (error code -2147218046) from USPS.
Solution:
The issue primarily stems from the PluginHive plugin rather than WPML, as similar issues would occur in a Spanish WooCommerce setup without WPML. The PluginHive developers are aware and plan to address this in their next release. If immediate resolution is necessary, consider implementing custom code using the
wpml_switch_language
hook to ensure the correct country name is used in API requests.
If this solution does not resolve your issue or seems outdated, please check for related known issues at https://wpml.org/known-issues/, verify you have the latest versions of your themes and plugins, and consider opening a new support ticket for further assistance at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 3 replies, has 2 voices.
Last updated by 7 months, 2 weeks ago.
Assisted by: Dražen.