Developer forum

Forum » Ecommerce - Standard features » Adding products to catalog - different languages.

Adding products to catalog - different languages.

Mikkel Toustrup Olsen
Reply

Hello all,

I am trying to extend the CatalogPublishing option in the eCommerce module.

I have a product list, which contains x-amount of products. These product do have multiple versions (one with English description(default), one with Danish etc.).

Now, I know they share productid as they are the same unique product but with different descriptions.  However, I am stuck on the following scenario.

Ecommerce user gets a default list of products (english). And the ability to add the respective product to the catalog. When I preview the list, it renders the amount added nicely.

Though, when I change the language (from a dropdown setting LanguageID=IDOfDanishLang) I get the list of products with Danish descriptions - and again the ability to add to catalog. When I add to catalog (and ensuring it isnt the same productID as the previous English one added) -> it only shows me the 1 product just added from the Danish context.

My question is. Isn't possible to add products with different languages to the same catalog? The relation, in my scenrario, would be 1-1 - as I only want 1 product in 1 languague, and another in a second languague.. The user should be able to customize a list containing x amount of products (all unique) but in different languagues..

If there isn't any build in functionality, could someone then lead me in the way of how / where to extend the ecommerce API (if possible) to archieve this.

Hope it made a bit sense

Regards,

MikkelTO


Replies

 
Adrian Ursu
Reply

Hi Mikkel,

 

Do you have different productID's for each language?

If they share the same productID, it's enough to localize the product from oane language to the other.

In ManagementCenter/Ecommerce/Advanced/Fields you can set the fields that can be edited for a language version of the product.

If you, say, define a product in english, then switch to Danish, you will see the English product greyed out but still clickable. If you open it (and make sure you are in Danish language) and save it, you gonna have a Danish version of that product with the same ProductID and ProductNumber.

In the database there will be 2 records (one for each language) with a different ProductLanguageID

 

 

You must be logged in to post in the forum