Lizenka Posted April 14, 2023 Share Posted April 14, 2023 Hallo, I am busy to add some details to my website. I want to show the available stock of each product on the product page, see example in the picture: Can someone tell me how I can do it? Regards, Harm Naberman Link to comment Share on other sites More sharing options...
WebDesk Solution Posted April 14, 2023 Share Posted April 14, 2023 Hello @Lizenka To display the available stock for each product on the product page, please follow the steps below: Please go to this path: {{your_root_directory}}/themes/{{your_theme}}/templates/catalog/_partial/product-add-to-cart.tpl Please insert the following code at line number #70: Quantity: {$product.quantity} Please see these screenshots: https://prnt.sc/oPzVIYgMHRbz and https://prnt.sc/PPPAx_77V5PG just for the reference. Hope this solution works for you..!! Thanks Link to comment Share on other sites More sharing options...
Lizenka Posted April 14, 2023 Author Share Posted April 14, 2023 Thanks for your reply. Can you please tell me how to get there (see picture). Link to comment Share on other sites More sharing options...
Lizenka Posted April 14, 2023 Author Share Posted April 14, 2023 Hello, I got the place to edit the code. Thanks for you help. Link to comment Share on other sites More sharing options...
WebDesk Solution Posted April 14, 2023 Share Posted April 14, 2023 Hi @lizenka Glad to hear that you found the place to edit the code. I assumed the solution that we gave works as per your requirements. Link to comment Share on other sites More sharing options...
Lizenka Posted April 14, 2023 Author Share Posted April 14, 2023 Yes it do: Link to comment Share on other sites More sharing options...
Lizenka Posted April 14, 2023 Author Share Posted April 14, 2023 Do you maybe know how to add product ID? Link to comment Share on other sites More sharing options...
WebDesk Solution Posted April 17, 2023 Share Posted April 17, 2023 Hello @Lizenka Please follow the steps below to display the product id for each product on the product page: Go to this path: {{your_root_directory}}/themes/{{your_theme}}/templates/catalog/_partial/product.tpl Please insert the following code at line number #78: Artikel nr: {$product.id} 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