[Resolved] add to cart and in stock not translated on product page
This thread is resolved. Here is a description of the problem and solution.
Problem: The client activated WPML plugins on their staging website and encountered issues with translating the 'add to cart' button and 'In stock' text on the product page using Flatsome theme. Despite using WPML > String Translation with the 'Exact match' option, the translations did not apply unless 'Auto Register Strings for translation' was enabled. Solution: 1. We recommended checking if the string was being overwritten by the theme or another plugin by using WPML > String Translation and searching for the string with the 'Exact match' option. All results should be translated. 2. The client should delete the currently translated string and register it again. We advised enabling 'Auto Register Strings for translation' as per the guide: Enable Auto-Register Strings 3. We identified that some settings from WooCommerce Multilingual & Multi-Currency were overwritten. The client needs to check WPML configuration files added by other plugins or manual settings in the Multilingual Content Setup section. 4. It was necessary to set 'Variations (product_variation)' to 'Translatable - only show translated items' in WPML > Settings > Post Type Translation. 5. The client was also advised to translate their Shop page and products to ensure full functionality in other languages. 6. For custom product layouts using UX Builder, the client needs to translate the layout in UX Blocks.
If these steps do not resolve the issue or if the solution seems outdated or irrelevant, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.
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.
Hi I activated WPML plugins on my staging website (copy of productive website) and translation works except (add to cart button and In stock on product page),
I added string translation on woocommerce forms but it doesn't translate, I'm using flatsome as the theme
WPML > String Translation to use the text search and search for the string while marking the option "Exact match" --> this was already done but without suscces
If I activate Auto Register Strings for translation the problem is fixed(add to cart and stock) without do nothing, but as soon as I deactivate Auto Register Strings for translation the problem is still present
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.
You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.
IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I went to WooCommerce > WooCommerce Multilingual & Multi-Currency > Status:
1) Some settings from the WooCommerce Multilingual & Multicurrency wpml-config.xml file have been overwritten.
You should check WPML configuration files added by other plugins or manual settings on the Multilingual Content Setup section.
Custom type product_variation configuration from wpml-config.xml file was altered!
You need to go to WPML > Settings > Post Type Translation and set Variations (product_variation) to "Translatable - only show translated items".
2) WooCommerce store pages do not exist for these languages:
Arabic Arabic
Italian Italian
English English
Please complete the translation jobs for your Shop page, as they are not completed to 100%.
3) Not any of your products are yet translated. You have set WPML > Settings > Post Type Translation > Products to "Translatable use translation if available or fallback to default language" which means that the products displayed in other languages are the original products. This setting is blocked by default and we do not recommend changing it. You need to translate your products.
I created a test product in Arabic and the translation works: hidden link
4) Your product uses a custom product layout from UX Builder. You need to go to UX Blocks and translate the layout. I also did this for Arabic.
there is a way to cancel completelly WPML for all languages ?, may if I try to reinstall from stretch i can avoid to translate all products , on the first stage I would like to have translated all buttons and label and after translate also product and pages.
I can also deletevia sql all tables of WPML manually if you provide to me the list
thanks