RSI-SHOP Posted July 25, 2022 Share Posted July 25, 2022 Hello for all, I need some help. My question is: How can I display all quantities on product page when product has attributes? Thank you. <div class="p-reference"> {block name='product_quantities'} {if $product.show_quantities} <div class="product-quantities"> <label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label> <span>{$product.quantity} {$product.quantity_label}</span> </div> {/if} {/block} </div> Link to comment Share on other sites More sharing options...
Prestachamps Posted July 25, 2022 Share Posted July 25, 2022 Hello, You can try the following method, and complete it with a sum of the combination stocks. https://www.prestashop.com/forums/topic/888364-prestashop-17-how-to-get-stock-quantities-for-all-the-different-combinations-of-a-product/ I hope that I could help. Have a nice day, Leo. 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