Developer forum

Forum » Ecommerce - Standard features » Translated facet values for product category fields of type list box

Translated facet values for product category fields of type list box

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

(I feel this has been discussed before so please point me to an existing discussion if one already exists)

I have an Ecommere catalog in multiple languages. I also have product category fields of type ListBox with a number of key/value pairs that have been localized. So for example, I have a Color field of type ListBox with these options:

Red (EN)            1
Blue (EN            2

And then translated them:

Rood (NL)            1
Blauw (NL)          2

In the backend and PIM this works fine; looking at a translated product shows me the correct translation of the color field.

However, when I build a facet for this, I always see Red (EN) as the label in the frontend and not the translated version, even though NL is set as the language for the site.

It does work OK for normal product fields.

I can across this thread: https://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/facet-name-and-label but that hasn't helped me figure it out yet.

Are options not translated when retrieved from the index? The data is there, so I would like to pull it out from there, rather than run it through @Translate). We're using the Product Catalog module with the option to publish an index.

Thanks!


Replies

 
Nicolai Pedersen
Reply

The index indexes the value. 1+2 and uses a value mapper to look up the labels. The value mapper uses default language - not sure if that is the solution to load the mapper using the context language. It would potentially give other issues if the field has not been translated.

Send to a dev for clarification.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> The index indexes the value. 1+2 and uses a value mapper to look up the labels

Yep, that's what I expected. I just assumed the mapping would already take the language into account. Thanks for sending it on; eager to see what the solutions could be.

Thanks!

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Has there been any news from development? It would be great to know if the product can support this (some day) or that we need to build it ourselves. 

Thanks!

Imar

 
Nicolai Pedersen
Reply

Yes, TFS#90111, coming tomorrow.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Excellent. thanks! It seems it will come out in 9.10, right? Are there plans to merge it down to 9.9.x?

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Did this make it into 9.10? I tried it on the latest and I think I have set up everything as I should but I don't see the facets being translated....

 

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Bump... Can someone comfirm this is in 9.10 or not? Tried everything I can think of but it's not translating...

 
Nicolai Pedersen
Reply
This post has been marked as an answer

TFS#90111 is in Dynamicweb.Ecommerce 1.10.3: https://www.nuget.org/packages/Dynamicweb.Ecommerce/1.10.3

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks! That made it work!

 

You must be logged in to post in the forum