Developer forum

Forum » Development » LanguageID is null

LanguageID is null

Per Ljung
Reply

Hi!

I'm trying to set the language of a product, but this value is for some reason null:

Dynamicweb.eCommerce.Common.Context.LanguageID;

Any ideas why it's like this?
 

/Per


Replies

 
Morten Snedker
Reply
This post has been marked as an answer
 Hi Per,

It all depends on the context in which you have your code.

Using Dynamicweb.eCommerce.Common.Context tells you that you're in session scope. That means you're asking for the LanguageID from the frontend. So the question is: do you have a frontend upon asking?

You could provide your entire class to make further help easier.


Regards /Snedker
Votes for this answer: 0

 

You must be logged in to post in the forum