Home›Support›English Support›[Resolved] 2 issues pertaining to product reviews and cart product quantity
[Resolved] 2 issues pertaining to product reviews and cart product quantity
This thread is resolved. Here is a description of the problem and solution.
Problem: 1. A customer's review written in Arabic is only visible when the site is in English, not in Arabic. Additionally, the word for 'review' is incorrectly translated. 2. The WooCommerce Min/Max Quantities plugin limit is not enforced on the Arabic version of the site, allowing customers to add more than the set limit of 3 items to their cart. Solution: 1. The issue with the review visibility is related to the child theme. We recommend checking the child theme's settings and any custom code to identify the cause. Reviews appear correctly when using the WordPress default theme or the Xstore parent theme. 2. For the translation of the word 'review' to 'تقييمات', you can update this via the String Translation interface in WPML. 3. Regarding the Min/Max Quantities plugin issue, since it works correctly in English but not in Arabic, we suggest reaching out to us for further assistance as it may require a closer look into the theme or plugin settings in conjunction with WPML.
I hope this message finds you well .. I am running into a couple of issues that I was hoping you could help me resolve:
1. One of my customers wrote a review on a product in Arabic .. The review is only visible when the site is in English and it's not visible when the site language is Arabic .. This is the link to the reviewed product so you can see what I mean: hidden link
When I change the language from English to Arabic, the review stars are being shown on the product page, but it says (لا توجد اي مراجعات) .. Furthermore, the correct translation for the word review that I would like to use on my site is (تقييمات) and not (مراجعات) ..
2. I have recently installed a new plugin called (WooCommerce Min/Max Quantities) in an effort to limit the quantity that my customers can be per product .. The limit I set is 3 pieces per product .. The plugin is working as intended in the English version .. When I go to the cart page in English, it does not let me increase the quantity above 3 .. However, when I change the language to Arabic and visit the cart page, for some reason I can bypass the limit and increase the quantity above 3 .. Please feel free to test that on your end to confirm the issue ..
After contacting the developers of the plugin, they recommended I discuss this with the WPML developers, as the issue seems to be happening only when the website is in Arabic ..
Can you please look into this and help me figure out how we can enforce the 3-quantity policy?
Finally, if you need to split this ticket into 2 tickets, please feel free to do so .. I look forward to your reply!
Best,
Muhamed
ninalaskincare.com
New threads created by Osama Mersal and linked to this one are listed below:
Thanks for contacting WPML forums support. I'll be glad to help you today.
1) First of all, sorry for the late reply; it was due to a higher workload. Please go to WooCommerece Multilingual-> Settings tab and check the review settings.
2) We try to keep one issue per ticket in our forum. Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.
Therefore, I've split the other issue and created a new ticket with this issue. (https://wpml.org/forums/topic/woocommerce-min-max-quantities/)
I checked the settings tabs for Woocommerce Multilingual and I see that the "By default, show reviews in all languages" option is active .. I also checked the reviewed product again, it does indicated 1 review on the Arabic page (١ تقييم), however, the reply itself is not being displayed .. Same product page shows the review when the language is English .. Please see the attached screenshots ...
Could you please check if the issue persists in a minimal environment by following these steps?
1- Deactivate all the plugins except WPML CMS, String Translation, WooCommerce, and WooCommerce Multilingual.
2- Switch for a moment to a WordPress default theme like Twenty Twenty-one.
If the issue is gone, activate them one by one to see which one is causing an interaction issue.
❌ Please backup your database before performing the above test ❌
I backed up the website, deactivated all plugins, except the ones you mentioned and switched to the default wordpress theme and still wasn't able to see the review when switching the language to Arabic ..
Any thoughts on what might be causing this?
The issue happens because of your child theme. I tested with the WordPress default theme and Xstore parent theme, and the reviews appear correctly in both languages. (Kindly check the attached screenshots)
Please check your child theme's settings and custom code to know what caused the issue.
Kindly check this product to see the reviews. (hidden link)