Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 4 replies, has 2 voices.

Last updated by Prosenjit Barman 9 months, 2 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
September 18, 2024 at 6:51 pm #16195161

janoR

Background of the issue:
I translated the entire eshop using autotranslate. The problem is that if I open the shop page, the products are only shown in the default Slovak language. In other languages, it will not display products or categories in the widget. But the products are translated, if I open the product and switch to another language, it works, and it also displays the product archive in other languages ​​when I go through the URL of the product category. It only doesn't work for the Shop section.

Symptoms:
In translated pages, the store does not display products or categories in the widget. No products were found matching your selection.

Questions:
Why are products and categories not displaying in the widget on the shop page in translated languages?
How can I ensure that the shop section displays products in all translated languages?

September 19, 2024 at 5:25 am #16195955

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're facing. If you're displaying products on the store page using a widget, it's possible that the widget hasn't been set up for other languages yet. Please check the guide below and ensure that separate widgets have been created for each language.

- https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages

If you've already created a widget for each language, ensure that the query to display products in the respective language is configured correctly.

If you're still facing issues despite configuring the widget correctly, could you temporarily disable the "Coming Soon" mode on your site? I'll take a closer look and suggest the next steps to resolve the problem.

Looking forward to your response and I'm always here to help.

Best regards,
Prosenjit

September 19, 2024 at 10:23 am #16197844

janoR

The problem persists, can I write you a private message somewhere with login details?

September 20, 2024 at 3:59 am #16201104

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for the update.

Since the issue persists despite following the suggestion, you can share access to your site so I can investigate further. It would be ideal if you could replicate the issue on a testing site, as this would make it easier to troubleshoot.

You will find the needed fields to share the access information below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

September 24, 2024 at 6:14 am #16212431

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the access information.

I have investigated and found that the issue only occurs when the "Ecolive Child" theme is active on the site. Upon switching to the "Ecolive Parent" theme, the products in each language are displayed correctly. Please check the attached screenshot.

It appears that customizations made in the child theme are causing the products to not display correctly in each language. Could you please review the customizations on the Shop page and ensure that the queries are properly configured? To display content correctly in all languages, make sure that the query passes correctly through the `wpml_object_id` hook.

Please note that issues arising from custom coding are outside the scope of our support. However, we can offer suggestions within the limits of our support guidelines. If you need help reviewing the code, I recommend reaching out to the theme’s support team, as they may be able to identify the adjustments needed to display products and categories correctly on the Shop page. Alternatively, you can hire a developer from WPML's certified contractor list for custom coding support.

Rest assured, the issue doesn’t appear to be related to the WPML plugin itself. Instead, it seems the queries to display products and categories are not configured correctly.

I hope you can understand. Feel free to let me know if you have any other questions. I'll be happy to help.

Best regards,
Prosenjit

Screenshot 2024-09-24 120006.png

The topic ‘[Closed] In translated pages, the store does not display products or categories in the widget. No products we…’ is closed to new replies.