Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

This topic contains 8 replies, has 2 voices.

Last updated by Bobby 1 year, 3 months ago.

Assisted by: Bobby.

Author Posts
October 25, 2023 at 5:39 pm #14663883

andreasA-46

Translations of simple products work fine.

But when I try to translate a variable product, the translation shows "This product is currently out of stock and unavailable."

If I am logged in as admin it works and the translation is shown.

October 25, 2023 at 6:20 pm #14664101

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please share with me a URL to a variable product that is showing this issue, also verify that the translation is 100% finished and published.

Then go to WooCommerce->WooCommerce Multilingual->Settings->Troubleshooting(link at bottom right) -> select:

Sync Product Variations
Sync Product stock quantity....
Fix translated variations relationships

Click Start

https://wpml.org/documentation/support/wpml-troubleshooting-options/#troubleshooting-woocommerce-multilingual-multicurrency

Let me know your results, please.

October 25, 2023 at 7:17 pm #14664355

andreasA-46

Unfortunately, that didn't help

hidden link

October 26, 2023 at 1:03 am #14665729

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

October 26, 2023 at 5:58 pm #14673533

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

After doing some tests I can verify that the issue is caused by a third party plugin.

The problem, however, is that due to the site's caching it has been hard to know exactly which plugin is causing this behavior.

At the moment I believe it is the plugin Code Snippets , but i would invite you to do the following.

1. Deeactivate all caching plugins and any drop in caching/server side caching

2. Deeactivate third party plugins (leave WPML and it's add ons activated along with WooCommerce)
test the variable product it will display as expected now in the translation

3. Enable the plugins in batches of 5 and test each time if the issue back.

once the is back test which one of the 5 plugins in the batch causes it.

At the moment the variable product shows OK when logged out, but it shows a broken layout now. When logged in the layout is OK.

I believe this is related to caching.

October 27, 2023 at 1:46 pm #14679731

andreasA-46

Yes, it's a conflict between WPML and WP Rocket. Works fine when WP Rocket is deactivated. Shouldn't WPML be able to work with WP Rocket?

October 27, 2023 at 5:46 pm #14681635

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

We are compatible with WP Rocket, however, there is a known issue that might be related in this case.

Please review and try the workaround mentioned here:
https://wpml.org/errata/wp-rocket-causes-incorrect-category-assignment-for-translated-posts-with-display-as-translated-option/

Let me know your results, please.

October 29, 2023 at 9:08 pm #14687415

andreasA-46

Still have the problem. Now it seems to be the WooCommerce Wholesale Prices Premium plugin that WPML conflicts with.

October 30, 2023 at 6:59 pm #14694609

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

If possible, please deactivate all caching including wp rocket (you have drop-in caching enabled as well possibly from the server)

once that is done, I recommend re-doing this test as this behavior is pointing to a caching issue which is why each time there is a different plugin that seems to be causing this.

Let me know your results, please as we no longer have access to the backend.

The topic ‘[Closed] New variable products show "Out of stock"’ is closed to new replies.