Skip Navigation

[Resolved] Toolset view not showing results in secondary language

This support ticket is created 3 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 22 replies, has 2 voices.

Last updated by jelle-jacobd 3 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#2173751

Thanks for the update and explanation. WooThumbs is for the custom image gallery and thumbnails on the single product page.

I made the template for the product pages with the content template builder from Impreza, my theme and also works with WP Bakery. See Impreza, content templates > product detail pagina (EN).

Good to know that it's the sorting, I would never have found that out myself. The field 'order' is a standard field as far as I know? I thought this would take over the sorting that is available for attributes in WooCommerce? I do use a plugin called SCP Order, but I haven't applied the settings to attributes, only for some categories.

In any case, it's clear to me what the issue is. The sorting is not inherited for the Icons attribute. Would it help if I select "custom fields" copy in WPML translation settings for this field?

hidden link

Shouldn't this be set by default, since "sort" is a core WC field(s)?

#2173753

After scrolling down, I found this. Could this be the issue? order_pa_icons is set to copy, but the others are not?

hidden link

#2173763

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2021-09-20 at 11.11.53.png

Actually, I was just doing some more checking on my own vanilla test site to abstract from what is specific to your site and see that these fields such as order are part of WC itself.

I'm not entirely sure which field "order" refers to, because for each product attribute there is a more specific order field, and in your case when I switched to order the View by the term field order_pa_icons then that worked, without the need to change any settings.

Can you check the same on your site, I think choosing the correct field to order by should fix it.

#2173799
Schermafbeelding 2021-09-20 om 12.53.08.png

Oke, thanks! I changed the translate settings to default for the icons attribute, which is: do not translate. So that part should be good to go now.

I'm sot sure as well for the order field, but I changed the order field for the icons view to Term Field - order_pa_icons as you suggested. This work partially. The main language now shows 4 icons instead of (19). Not sure what is going on here.

Secondary language, which before didn't show any, now shows all the correct icons (19) but not in the correct order. So order settings are not translated or transferred to the secondary language. I guess I should choose copy for this field in WPML settings?

So it seems like where getting somewhere:)

#2174113

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've reverted to ordering the View by the 'order' term meta field, as checking in the database directly it's not clear what the order_pa_icons field is for, the only values are all zero, and re-ordering the icon terms does not affect that field, it affects the more generic order field.

So I went to WPML > Settings and changed the "Custom Term Meta Translation" settings just for the order field, which I switched to Copy from Don't Translate.

That appears to have done the trick (I made the changes to your staging site), if you could please verify.

#2174157

Thank you very much Nigel. Both languages ​​now show the correct icons per product. Very happy with it.

Strange that these extra pa_ fields exist per attribute. This is indeed confusing. Are these generated by WC by default or is it a bug in my setup or maybe a legacy from previous WC versions?

In any case, good to know that copy for the default field finally solved it. Should this copy option be enabled by default for this field?

#2174321

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Those fields are generated by WC itself when you add product attributes, though it is not obvious why, as they don't seem to be in use.

I'm not sure if such fields should automatically have a copy setting in WPML; I think if you believe they should then that's something you should share with WPML support so that they can send it up the chain as required.

#2174323

Thanks for explaining. I will contact WPML about copying the order field. Maybe WC can clear soms up regarding the extra field.

My issue is resolved now. Thank you!