Developer forum

Forum » Development » Is it possible to show products in different languages on the same page?

Is it possible to show products in different languages on the same page?


Reply
On a page that will be behind an extranet login, we will would like to show the product detail page in different languages, dependant of what language the user that is logged in has.

The users language is available on his profile and can be accesed. The question is how we can get the product detail page to react to this, for example. by putting the languagecode in the URL?

E.g.. /NL/Products/Product.aspx?ProductID=24732

/Christina
NoZebra

Replies

 
Nicolai Høeg Pedersen
Reply
At any given URL you can add &LanguageID=XXX to the URL to change to language context. XXX is the ID of the new language.

Currency can be set the same way using the parameter "&CurrencyCode=EUR"
 
Mikkel Toustrup Olsen
Reply

Hello Nicolai,

As I am about to implement more or less the same functionality. I guess it is possible to filter on the shop's products based on their language. By that while being on e.g. the UK context, I would be able to select products with the german description etc. then? :)

Best regards,

MikkelTO

 
Nicolai Høeg Pedersen
Reply

Not sure I understand?

Using LanguageID= will change the language of the products being showed. If you are showing a group of 10 products in english, and you change to german, the german translations of the 10 products will be shown. If only 8 is translated 8 will be shown in German - the last 2 will either be shown in your default language or not shown depending on your settings.

Nicolai

 
Mikkel Toustrup Olsen
Reply

Yeah, that's exactly what I will accomplish. When e.g. being on the UK website - I will implement a dropdown with x amount of countries. By hitting e.g. Germany the products in german translations of the products will be shown - though still being in the UK website context that is. :)

MikkelTO

 
Torben Bak Jensen
Reply

Hi Nicolai

I have tried to implement the same functionality more or less. I set Great Britain as default language, which has the idLANG2 and have Denmark(LANG1) and Germany(LANG3) setup as well.

I am able to see the Danish products onthe following url: http://www.eurowater.info/references-1.aspx?LanguageID=LANG1

however when trying to parse LANG2 and LANG3 it crashes..

user: novitest, pw: novitest if u need to login :)

/MikkelTO

 
Nicolai Høeg Pedersen
Reply

Seems like you did not translate your filters...

Of course it should not crash. Will bug it.!

 
Mikkel Toustrup Olsen
Reply

Hi Nicolai,

By translating the filters, what do you mean specifically? - I've set up the different languages / countries in the backend, and given each product a different description in each language. Is there more to it?

/MikkelTO

 
Nicolai Høeg Pedersen
Reply

In management center, ecommerce, product catalog, search filter, go into the group you created. In the top you can choose different languages. Make sure to translate the filters to all languages.

Nicolai

 
Mikkel Toustrup Olsen
Reply

Hi Nicolai,

It seems I dont have the option to choose country, see image 1. 

And I can see, that all my custom made fields for each product are gone. This is quite unfortunate as well see image 2 - the fields did of course (earlier) come in list below the red box marked on the image.

 

 

 

 

 

Skærmbillede_2014-07-04_kl._13.51.29.png Skærmbillede_2014-07-04_kl._13.52.53.png
 
Nicolai Høeg Pedersen
Reply

Hi Mikkel

Ok - you only have LANG2 and LANG4.

I opened and saved all your filters, and now it seems to work.

Nicolai

 
Mikkel Toustrup Olsen
Reply

It works in a way, not completely though. I know that Denmark has LanguageID=4, though it does not output the 1 product I've translated and saved as Danish in the ecommerce module.

/MikkelTO

 
Nicolai Høeg Pedersen
Reply

What groups have you published on that page? Is the product part of any of the groups on that page, and is the group translated as well?

Nicolai

 

You must be logged in to post in the forum