Developer forum

Forum » Ecommerce - Standard features » StockLocations in ProductList

StockLocations in ProductList

António Ramos
Reply

Hi guys,

I can't access at the StockLocations Loop in the ProductList but in the product detail it appears.It seems that the loop is not triggered by the template.

DW version: 8.8.0.2

Thanks,

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply

The loop is only available in the product detail for performance reasons.

 
António Ramos
Reply

Hi Nicolai,

Thanks for you answer. 

We want to have in the product list the stock available in all locations so we are using the tag "Ecom:Product.AvailableAmount". But this tag is always returning zero (i think it's the stock in the first location) this shouldn't retrieve all the stock available?

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

It will not look at the locations. It looks at the products overall stock state - reserved amount.

 
António Ramos
Reply

Hi Nicolai,

Thanks for the clarification. So how can i get the stock sum from all locations in the product list?

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

Custom code only. Be aware of performance.

 

You must be logged in to post in the forum