cast Posted August 28, 2011 Share Posted August 28, 2011 Does anybody know how to count the total stock quantity of a product with attributes in product-list.tpl ? for now the code written like below : {if $product.allow_oosp OR $product.quantity > 0 } And I want to change how PS count the TOTAL QUANTITY from ALL ATTRIBUTES, because "$product.quantity" just count the quantity of DEFAULT ATTRIBUTE, or maybe counting each of attributes. I tried $product.stock_quantity but it's not working Link to comment Share on other sites More sharing options...
cast Posted August 29, 2011 Author Share Posted August 29, 2011 Anybody can help me solve this? Link to comment Share on other sites More sharing options...
cast Posted August 29, 2011 Author Share Posted August 29, 2011 okay, after months of looking for solutions, now the problem's solved. The main problem is, I used PS 1.4.0.17... and it should be used in 1.4.1.0+ please refer to this thread : http://www.prestashop.com/forums/topic/108937-solved-out-of-stock-even-if-i-have-product-in-stock-in-an-attribute/ btw, does anybody know how to put [sOLVED] in thread title ? Link to comment Share on other sites More sharing options...
lipo999 Posted November 24, 2018 Share Posted November 24, 2018 Hello, should be: {$product.quantity_all_versions} Anyway, do you know someone, how to count stock of all products? To show somewhere in shop, that we have in total this quantity in our warehouse? Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now