Jump to content

Available stock on product page


Lizenka

Recommended Posts

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

2.jpg

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...