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
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by Nicolas V. 1 year, 7 months ago.

Assisted by: Nicolas V..

Author Posts
November 8, 2023 at 7:12 pm #14760673

henrikA-12
Site owner

Hi there,
I am running a multilingual site at hidden link
I often got issues with my mobile view.
This item works as it should on labtop for all 9 languages:
hidden link
Please note the variable product is not in stock but you are able to select size.
On mobile phone it works as it should for the danish and english language - but for the last seven languages the size selector is not shown and an default "not in stock" message is given.
See this example:
hidden link

Sometimes it helps opening the edit product up in the failing language and just safe it again. But not this time.
I have also cleared the website cache and my browser cache. Nothing helps.

Kind regards
Henrik

November 9, 2023 at 6:54 pm #14770601

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum. Let's start by meeting WPML's minimum requirements. I've noticed your website has a low PHP memory allocation (40M). The minimum requirement for WPML is 128M but we recommend 256M:

Access your server via FTP and open wp-config.php (in your WordPress root directory).

Insert those lines just before /* That's all, stop editing! Happy blogging. */

/* Memory Limit */
define( 'WP_MEMORY_LIMIT', '256M' );

More info: https://wpml.org/home/minimum-requirements/

---

Now, regarding your issue. I didn't have to go to the mobile version to reproduce it. On Chrome I was able to see that the FR version doesn't have the selector. I also noticed that the SKU was not there. So I think the issue is related to some synchronization issues between variations in translated languages.

The increased in memory should help, but next let's try to run some troubleshooting tools.
1. First make a full back up of your database
2. Check a banner message from WooCommerce saying that it requires to update the database (if so, please run that first)
3. Go to "WooCommerce > WooCommerce Multilingual > Status" and click the link "Troubleshooting at the bottom right
4. On the next page execute the following options:
- Update products count
- Sync products variations
- Sync product stock quantity and status
- Fix translated variations relationships
- Sync removed product meta from original products to translations

November 9, 2023 at 9:10 pm #14771191

henrikA-12
Site owner

Hi Nicolas,
Thanks for reply. I have now tried all the above mentioned.
Before that disabled caching.
The issue still persists on this product. The quantity selector is not shown on the mobile view.
hidden link

It is there on the same product in other languages.

November 9, 2023 at 9:42 pm #14771277

henrikA-12
Site owner

I just noticed that the above mentioned product does not work on Chrome when I am logged out. But it works when I am logged in.
It could still be some caching I think.

I also noticed that all my product filters are gone when I am logged in. But they are shown when I am logged out.

November 10, 2023 at 9:17 am #14773975

henrikA-12
Site owner

I just managed to get it to work by disabling all plugins and enabling them again.
There is definately a bug somewhere.

November 10, 2023 at 9:41 am #14774521

henrikA-12
Site owner

Disabling the plugins one by one on our staging site shows it is the WooCommerce Wholesale Prices Premium that causes the error.

November 10, 2023 at 1:27 pm #14776959

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

I just noticed that the above mentioned product does not work on Chrome when I am logged out. But it works when I am logged in.

If the issue is visible when logged out but not when logged in, it's probably related to cache issues. Logged-in Admins don't see cached versions usually.

I just managed to get it to work by disabling all plugins and enabling them again.

Did it fix the issue for good? Or did the issue reappear after a while (when cache is rebuilt for example)

WooCommerce Wholesale Prices Premium that causes the error

That's good that you find the culprit. But is it a conflict with your cache plugins or with WPML? Does it affects only secondary languages or were you able to reproduce the issue in the primary language?

WooCommerce Wholesale Prices Premium should be compatible with WPML, but last time we tested it was a couple of years ago. Maybe the issue was introduced in a newer version.

I searched the forum and only find one ticket from 2022 (closed without a solution): https://wpml.org/forums/topic/translated-products-stays-out-of-stock/

If the issue is really a compatibility issue between WooCommerce Wholesale Prices Premium and WPML, I'd like to escalate it to our compatibility team. I have created this clean sandbox setup on our servers here:
hidden link (one click login)

- I would need you to set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install WooCommerce Wholesale Prices Premium and try to recreate the issue.

Please don't install any other plugins that are not necessary to reproduce the issue.

- If the issue is reproduced on that clean setup, then I can forward this to our 2nd tier support team.

November 12, 2023 at 4:42 pm #14784391

henrikA-12
Site owner

The issue reappear when the cache is rebuild.
Setting up WPML and Wholesale suite on your sandbox inviroment will take alot of time, which I do not have at the moment.

November 13, 2023 at 11:50 am #14787963

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

WPML, String Translation WooCommerce and WCML are already installed and configured. It would be only Wholesale suite, and if you identified the issue is related to cache, we will need the cache plugin too.

The topic ‘[Closed] Issue with Woocommerce products on mobile view.’ is closed to new replies.