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 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 3 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 7 months ago.

Assisted by: Osama Mersal.

Author Posts
October 13, 2023 at 1:03 pm #14573241

gabrielV-18

I have two language page and English is default. I have a lot of products on my webpage what have imported to there and all are in English. Webpage showing not translated products on second language with english and that is nice, but on product filtering with attributes is not working. Attributes itself have translations but on second language front-end attribute filtering is not working on products what have not translated. Can i somehow make it so that everything work same on second language and all information what do not have translate yet will be shown in English (default)?
I did attach two image from same page English (with attribute filtering visible) and second language.

Screenshot 2023-10-13 at 16.02.03.png
Screenshot 2023-10-13 at 16.01.22.png
October 15, 2023 at 8:12 am #14578715

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. If the attributes are translated and the products are not, this is the expected behavior because the translated attributes are empty.

If these filters are added as widgets, please go to Appearance-> Widgets, edit the filter widgets, and unselect the "Hide Empty" option.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

October 18, 2023 at 5:59 am #14599255

gabrielV-18

Hi

Yes you are right that translated attribute product count show 0 items in it. To unselect the "Hide Empty" option on Widget is not a good option as then it will be show that option even when that don’t needed to be there... also that show wrong product count then in there on front-page
So even tough attribute is translated, but products in it not yet then yes product count show 0. But i tested that i did translate one product in there then that attribute filtering became available on frontend... now when i do choose some option from it then it actually still are able to filter out all products even when they are not yet translated.... So if attribute actually work like it should then why it don’t be visible when products in it is not yet translated. Also as i understand.... translating product is not a new products... just translation from orignial.... then why it don’t understand that on attribute filtering.

Maybe my explanations is not clear so for better example you can check that webpage T-shirt category:
English versioon:
hidden link
Now as you see under Gender filter is „Female (12)“.

Now same page on Estonian:
hidden link

I have translated one Female t-shirt.... and that filter now only show „Naised (1)“.... like there is only one product.... but if you click that filter it still understand and show all 12 items. So if it actually like know that there is those 12 products but acting like in somehow don’t know.

October 18, 2023 at 6:55 am #14599421

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

This is the expected behavior when you have translated terms without translated products.

The solutions for this issue might be the following:

1) Translate all of your products or duplicate them until you translate them. Kindly check this guide about duplicating content. (https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content)

2) Delete the translated attributes.

3) In the widget, hide product count and disable the hide empty terms option.

❌ Please backup your database before performing the above solutions ❌

Best regards,
Osama

The topic ‘[Closed] WooCommerce products attributes’ is closed to new replies.