Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're using WooCommerce Conditional Shipping and Payments with WPML and some of your conditions are not working in all languages, particularly the shipping rules are ignored in non-default languages.
Solution:
First, we recommend replicating the issue on a fresh WordPress installation to isolate the problem. You can use a test site provided by our team to install the necessary plugins and configure them similarly to your live site. Ensure you're using the latest versions of the plugins.

If the problem persists, here's a temporary workaround:
1. Navigate to User > Profile and under WPML language settings, enable "Set admin language as editing language."
2. Go to WooCommerce > Restrictions > Shipping Methods and use the top language switcher to select 'All Languages'.
3. Edit the global rule to ensure shipping methods are added for both languages.
4. Save your changes.

Additionally, we recommend contacting the plugin author to report the issue and request them to join our GoGlobal program for a permanent fix. We will also attempt to contact them from our side.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend 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 3 voices.

Last updated by Dražen 2 years, 8 months ago.

Assisted by: Dražen.

Author Posts
November 3, 2022 at 3:12 pm #12371485

kimB-19

i am using woocommerce Conditional Shipping and Payments, but some of my conditions are not working in all languages. i tried this Woocommerce Conditional Shipping and Payments.

https://wpml.org/forums/topic/conditional-shipping-and-payments-does-not-seem-to-be-compatible-with-wpml/page/2/

it works for my payment rule but not for my shipping rule

November 3, 2022 at 3:46 pm #12372071

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

As I mentioned in the chat, we need to replicate this issue on a fresh WordPress installation. Then I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:

hidden link

With this link, you'll be directly logged in.

Could you please install the Conditional Shipping and Payments plugin and see if the issue is replicable on a clean WordPress installation?

Please configures WPML and WooCommerce as set on your site (just the basic configurations needed to replicate the issue are enough).

Please also make sure that you install the plugin's latest version.

When everything is finished and you can replicate the problem, please let us know.

Regards,
Itamar.

November 3, 2022 at 10:44 pm #12375127

kimB-19

Hi Itamar,

Thanks. I replicated the issue.

I added a shipping class to a test product and a conditional rule for this shipping class (hidden link).

When you add the product to the cart (hidden link), and you check the checkout in all languages, you get different shipping methods.

English (default) is matching the conditional rule: hidden link (rule in this test is NO local pickup when shipping class is matched)
In NL language checkout the condition is ignored: hidden link

Do you have enough information to check?

Thanks,
Kim

November 7, 2022 at 9:59 am #12397279

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back and taking the time to reproduce the issue.

I have checked and managed to find a workaround you can use for now, for a further permanent fix please contact the plugin author and report this issue and ask them to join our GoGlobal program so we can together fix this and implement a permanent solution. As always our team would be glad to help and collaborate.

Link to GoGlobal form:
- https://wpml.org/documentation/support/go-global-program/

We will also try to contact them from our side.

Workaround:

- Go to User > Profile > under WPML language settings and enable "Set admin language as editing language."
- Go to WooCommerce > Restrictions > Shipping Methods and in the top language switcher select All Languages
- Edit the global rule and make sure to add shipping methods for both languages
- Save

Please check the images.

I hope I was helpful. Don't hesitate to ask if you find any problem along the way, I'll gladly help you.

Regards,
Drazen

Screenshot_3.jpg
Screenshot_2.jpg