Developer forum

Forum » Development » Stock Unit and Stock

Stock Unit and Stock

Per Ljung
Reply
Hi!

What is the relation between product.stock and the product.unit.stockquantity? Do I have to assign values to  both? When I added a stockunit to my product, the value in the tag Ecom:Product.Stock came from the value in the stockunit.quantity and not product.stock.

How are these related and which one should you use?

Best regards,
Per

Replies

 
Andrey Pospelov
Reply

Looks like you have Product with stock units where the default unit is set.
If the product has stock units and you want to see "product.stock" on "Ecom:Product.Stock". Set Default to none. See pic.

stockunits.png
 
Per Ljung
Reply

Hi again!

But I want to have a default unit so I should use stockunit instead?

Best regards,
P

 

You must be logged in to post in the forum