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.
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. */
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
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.
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.
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.
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.
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.