Home›Support›English Support›[Resolved] Missing Weight selection, Add to Cart and Buy Now Button On Arabic Version for Variable products
[Resolved] Missing Weight selection, Add to Cart and Buy Now Button On Arabic Version for Variable products
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was facing an issue where the Arabic version of a product page did not display the 'Choose Weight and Cart' and 'Buy Now' button, showing 'Out of Stock' instead, unlike the English version. This problem affected multiple items. Solution: We recommended the following steps: 1. Go to WPML -> Support -> Troubleshooting. 2. Click on 'Synchronize posts taxonomies' for both products and variations. 3. Clear the cache in WPML. 4. Remove ghost entries from the translation tables. 5. Fix element_type collation. 6. Set language information. 7. Synchronize local job IDs. 8. Fix Terms count. 9. Fix post assignment for translations. After performing these steps, the client should check if the options to select weight and cart appear on the translated product page.
If the issue persists or if this solution becomes outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket at WPML support forum for further assistance.
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.
Background of the issue:
I am trying to resolve an issue on my website where the Arabic version of a product page does not display the 'Choose Weight and Cart' and 'Buy Now' button, unlike the English version. The Arabic version shows 'Out of Stock'. This issue is affecting 5-6 items. Here are the links: Arabic version - hidden link, English version - hidden link.
Symptoms:
The Arabic version of the product page shows 'Out of Stock' instead of 'Choose Weight and Cart' and 'Buy Now' button, which are visible on the English version.
Questions:
Why does the Arabic version show 'Out of Stock' instead of the 'Choose Weight and Cart' and 'Buy Now' button?
How can I resolve this issue to ensure the Arabic version displays correctly?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly. Please be sure to make a full backup of your site and database.
Then, go to WPML -> Support -> Troubleshooting.
Look for 'Clean up' and click the following:
- Synchronize posts taxonomies (run for both for products and variations)
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Synchronize local job IDs
- Fix Terms count
- Fix post assignment for translations
After this, please let us know if you see the options to select weight and cart on the translated product.
I checked the Arabic product: hidden link.
I can see that the stock is synced now. Please see the attached screenshot. This might be the result of the troubleshooting proceedure. However, I see the problem with missing Weight options (attributes) and the missing Add to Cart button.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please back up the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I've checked those issues on your staging site, but can't see them. I checked this product: hidden link.
And this category page: hidden link.
On the product page, I can select attributes and click the Buy Now button. And on the category page, I see 14 products. Please see a video I recorded while checking things on your staging site: hidden link.
Have I missed something, or have you already solved this problem?
Can you check the link as non-logged in user. Check the screenshot attached.
hidden link
If you are logged in you can see the weight selection and all the buttons. But if you go to this link as a non logged in user you will see the problem. Try to go to the above link in a different browser.
Even when I'm logged in, I can see it alright. Please see the attached screenshot. According to your description of the problem, this might be a caching issue. Please ensure that your caching settings are correct.
I have checked the video and performed the same action, but the issue persists.
I have also checked with disabling the cache plugin, but the results are the same.
This is not related to Elementor, I believe, as we have added single products, and those are working fine in both versions. You can check the single product here - hidden link
I have opened the Arabic version at the backend and saved it. After this action, I can see it's working fine. However, two other products are facing the same issue.