GeorgeP Posted June 7, 2020 Share Posted June 7, 2020 (edited) Hello everyone, Please help. I can't find a solution. I want to display the real quantity in the product detail and in the product list. The problem is that the number in the cart is deducted. Example: I have 10 pcs in stock I will add 4 pcs to the cart It will show 4 pcs in the basket and 6 pcs in stock. I would like to see 10 pcs in stock until the customer confirms the goods. At the same time, I want to make sure that the customer cannot buy more pcs than is in stock. I need this: $product.quantity (in file: product-details.tpl) = 'quantity' from TABLE 'ps_stock_available'. I wanted to edit it in the template code, but I don't know where or how. I tried something but it didn't help me. Is it possible to solve it? I have Prestashop 1.7.6.5 In version 1.6 it worked. Sorry for my english 😕 Thank you wery much for my help. Edited June 7, 2020 by GeorgeP (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