Developer forum

Forum » Ecommerce - Standard features » Ecom:Product:Stock.ID return different values depending on the language you are in.

Ecom:Product:Stock.ID return different values depending on the language you are in.

Morten Christensen
Morten Christensen
Reply

Ecom:Product:Stock.ID returns different values depending on the language you are in.

The documentation states that the value is generated automatically, but how do I get the same value printed across language layers?

Skærmbillede_2021-12-09_kl._11.36.18.png Skærmbillede_2021-12-09_kl._11.36.28.png

Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Mulle,

Try this...

Go to Settings > Ecommerce > Advanced configuration > Fields
Do you have "Across all languages" enabled for "Stock group"? If so, then you probably have different stock groups configured on each language version of the product.
Edit the product and switch between languages. Are the values for "Stock state" the same?

Sorry about the confusing labels. "Stock state" / "Stock group" refers to the same thing here.

Which version is this?
The problem you are experiencing might be related to some issues we previously had with language versions of stock states. Those issues have been fixed in 9.12

 
Morten Christensen
Morten Christensen
Reply

The stock group setting are set as you suggest, but depending on which language you are in it change e.g. => 0 to stock id to LANGUAGEVALUE4 for SV, LANGUAGEVALUE6 for NO etc.
It is a Dw 9.9.5.

You can see the test solution here: 
http://dk.dw9dev.juc.dk/
http://de.dw9dev.juc.dk/
http://no.dw9dev.juc.dk/
http://se.dw9dev.juc.dk/

Skærmbillede_2021-12-14_kl._14.13.55.png
 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Yes, I can see the issue and it's a bug which was fixed in 9.12.
So I guess you'll have to upgrade. Sorry about that.

 

You must be logged in to post in the forum