Developer forum

Forum » Development » Getting the stock value?

Getting the stock value?


Reply
Hi im trying to get the value that is in the dropdown Standardværdier->Lagerstatus on each product.

I tried product.StockStatus.Definition product.StockStatus.ID product.StockGroup.ID.

How do I access that value?

best regards

Sune Fengel

Replies

 
Reply
Hi Sune

If you need the name of the StockGroup it looks like you need to call

string myStockGroupName = new StockGroup(myProduct.StockGroupID).Name;

I understand your confusion as you would expect it to be

string myStockGroupName = myProduct.StockGroup.Name;

I have reported this and it may be fixed in a later update.

 - Lasse

 
Reply
thanx that did the trick.

- Sune

 

You must be logged in to post in the forum