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.
Tagged: Exception
This topic contains 6 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 10 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
August 1, 2023 at 7:47 pm #14137465 | |
abdullahO-8 |
I am writing to seek assistance with a problem I am experiencing after installing the WPML plugin for translating my WordPress and WooCommerce site into multiple languages. The issue at hand is that when I switch to the secondary language, the product categories and attributes are not showing up as expected. Despite having translated all the product categories and attributes into the secondary language, they remain empty on the frontend. Additionally, I would like to bring to your attention that the product categories are displaying correctly in the English version of the website. However, when I switch to the Arabic language (the secondary language), the product categories appear empty with the message "No products were found matching your selection. |
August 2, 2023 at 11:32 am #14141719 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hello Abdullah, Thank you for contacting the support. Apparently looks like you've translated the categories and this should work fine though. However, at this point I'm not sure about the actual cause but have a suspect about the theme in use. This isn't on our compatibility list (https://wpml.org/theme/). So before moving forward, I'll request to try the followings please: IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised. - Switch to a standard WP theme like 2021 or 2023 and check for the issue. Please let me know about it. Regards. |
August 2, 2023 at 11:25 pm #14145127 | |
abdullahO-8 |
While purchasing the theme i found that the theme support WMPL kindly check theme features here: |
August 3, 2023 at 8:46 am #14147207 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the reference, I understand that theme and plugins may refer to that feature. I was only checking on my end that if they are officially compatible with WPML. Anyways, by checking your site's shop by category at hidden link and hidden link I can see categories listed and translated. Although there might be difference in number of products and attributes (or variations) due to: - number of translated products, make sure all products are translated. Here's the WCML guide about dealing with all the relevant stuff: https://wpml.org/documentation/related-projects/woocommerce-multilingual/. Can you please explain in detail with some screenshots or a screen recording? So I can understand what exactly is the problem. On the other hand, have you tried the suggestions I mentioned in my previous message? That is to identify if the problem is really with WPML or if there's a conflict. So I can help you accordingly. |
August 3, 2023 at 8:56 am #14147243 | |
abdullahO-8 |
Please be informed that during my testing of the scenario, I discovered that the product categories started to display the products correctly. To achieve this, I manually duplicated the translation for multiple products to ensure their appearance in the secondary language category. However, I am concerned about the necessity of duplicating all the products manually. Ideally, the setup should allow for an automated process where translations of products can be synchronized or duplicated across languages to avoid such laborious manual duplication. Moreover, I have configured the plugin settings to display the default language when there is no translation available for the secondary language. Since the content between the default language and the secondary language is mostly similar, it is expected that the plugin would handle this situation smoothly and display the default language content when translations are missing. |
August 3, 2023 at 9:12 am #14147287 | |
abdullahO-8 |
Additionally, is there a way to translate product strings from English to Arabic automatically? I have multiple product names in English that contain the same word. I desire this word to be automatically translated to Arabic without the need to manually translate each product. Therefore, when the word exists, it should be automatically translated to the Arabic word I specified beforehand. |
August 3, 2023 at 1:26 pm #14149933 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates. Duplicating the content is little bit different than translating automatic or manual, please see https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content for understanding. Editing the duplicated version is possible, but any changes will be overwritten when you update the default content. To translate strings automatically, please see this thread https://wpml.org/forums/topic/how-to-automatic-translate-strings-such-as-theme-using-machine-translation/#post-13075791 for details. |