Developer forum

Forum » CMS - Standard features » Ecom - in productlisting, is there a TAG that shows the stock number?

Ecom - in productlisting, is there a TAG that shows the stock number?

Hans Ravnsfjall
Reply

I want to show how many products are in stock in productlisting, but I cant find a tag for this in the product loop using @TemplateTags()

Does anyone know how I can do this and/or if there is a tag, and what it is?

 


Replies

 
Nicolai Høeg Pedersen
Reply

Ecom:Product.Stock.

Be aware that stock levels is many things in some solutions. You could have stock locations, master products with variants where stock is different for each of them, stock levels from providers from live integration, configurations where stock is on the items etc.

But the above tag should be the number on the product.

 
Hans Ravnsfjall
Reply

Ok, thank you

 

but you only use a flat product tree, with no depth in products such as variants, this should not be a problem?

 

 
Nicolai Høeg Pedersen
Reply

Exactly!

 

You must be logged in to post in the forum