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.
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.
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.