Commerce Catalog Fallback Language

Vote:
 

Hey,

We have added languages to our catalog. 

If I have a coat and the description is:

"Look the ball of the party with this lovely blue coat"

and then I create a German version of the variant but I do not specify the description.  When I display the variant on the site, I would like it to fallback to the English version. We are going to test  adding it into the variation viewmodel and see if that works without breaking the admin.  We will also then have to two db calls to get the description which isn't ideal.

Has anyone overcome this with a nice clean solution as it isn't build into commerce. 

#179304
Jun 07, 2017 18:50
Vote:
 

Hi Adam,

When loading a property or a catalog content version, it will fallback to the master language version when and only when the property is not multi-language. I assume that the master language of your catalog is english. In this case, if you want the description of German version fallback to the English version, you should change the Description property to not support multiple languages. But be aware of that, it will affect to the description of all catalog contents in other languages.

/Bien Nguyen

#179404
Jun 12, 2017 8:08
Vote:
 

Hey Bien,

Thanks but how will that work.  If I make the Description not support multiple languages, then how will I show some products descriptions in German.  I think your suggesting not fallback but making the description not translatable which isn't really what I am after.

#179552
Jun 15, 2017 9:19
Vote:
 

Hi,

Sorry for the late response, I just wanted to explain how the current system work with property fallback behavior and I also mentioned about "be aware of that, it will affect to the description of all catalog contents in other languages". So correct me if I'm wrong, here are what you have and what you want?

  • English is master language
  • The Description is multi-language
  • If a German version of a variant specifies the description => should display the German description. If not then should display the English (master) description
#179651
Jun 19, 2017 11:04
Vote:
 

Thats what I am after.  I believe the CMS also works along these lines.

#179662
Jun 19, 2017 13:19
Vote:
 

Hi,

Yes, the fallback language is something usually asked for Commerce content, which does not support that feature right now. No promises, but we will look into it after Commerce 11.

Regards,

/Q

#179663
Jun 19, 2017 13:38
Vote:
 

Hey,

Thanks Quan, we ended up writing a wrapper around the variant and wrote our fallback logic in there.  It just means we have to use our wrapper and not the GameVariant all the time.

#179799
Jun 22, 2017 10:12
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.