Ramon99 Posted September 7, 2021 Share Posted September 7, 2021 (edited) Hello, I would like to add quantities in Product list for PrestaShop 1.7. Thank!! Edited September 13, 2021 by Ramon99 (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted September 7, 2021 Share Posted September 7, 2021 I have no idea what you want. Link to comment Share on other sites More sharing options...
Ramon99 Posted September 8, 2021 Author Share Posted September 8, 2021 I want to add in the category page the stock in each product Link to comment Share on other sites More sharing options...
musicmaster Posted September 8, 2021 Share Posted September 8, 2021 (edited) You should look which fields the product object has in the template. If it includes the quantity it will be easy to change the template. If not you will need to change the queries that feed the template with data. Edited September 8, 2021 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 10, 2021 Share Posted September 10, 2021 You can add below line of code: <h2 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.quantity} uds. en stock</a></h2> in the below-mentioned file: themes/{your_theme_name}/templates/catalog/_partials/miniatures/product.tpl Screenshot: https://nimb.ws/1YEDoN Link to comment Share on other sites More sharing options...
Ramon99 Posted September 10, 2021 Author Share Posted September 10, 2021 (edited) Thanks for your answer, I have added the line but it still does not work The prestashop version is 1.7.7.7 and the theme is wharehouse Edited September 10, 2021 by Ramon99 (see edit history) 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