Jump to content

Available stock and article number below each other


Lizenka

Recommended Posts

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

1.jpg

2.jpg

3.jpg

Link to comment
Share on other sites

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

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...