Lizenka Posted April 17, 2023 Share Posted April 17, 2023 Hello, I am busy to add some details to my website. I want to show the available stock and the article number of each product below each other on the website, see example in the pictures: Also added a picture of the code that I used. Can someone tell me how I can do it? Regards, Harm Naberman Link to comment Share on other sites More sharing options...
Mian Waqas Posted April 17, 2023 Share Posted April 17, 2023 Open themes/your-theme/templates/catalog/_partials/product.tpl search for the following line <span class="product-reference">{if $product.reference}{l s='Reference:'} {$product.reference}{/if}</span> replace it with the following code {if $product.reference}<span class="product-reference">{l s='Reference:'} {$product.reference}</span>{/if} {if $product.available_now > 0}<span class="product-available">{l s='Available stock:'} {$product.available_now}</span>{/if} Link to comment Share on other sites More sharing options...
DARKF3D3 Posted April 17, 2023 Share Posted April 17, 2023 Can't you just add a <br /> tag between the 2 line? Link to comment Share on other sites More sharing options...
Lizenka Posted April 17, 2023 Author Share Posted April 17, 2023 Hello, Adding <br/> worked for me. Thanks. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted April 17, 2023 Share Posted April 17, 2023 Glad it helped. 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