Jump to content

Show stock quantity on specific product?


Recommended Posts

  • 3 months later...

Hi,

To make it dynamic in the modules, you can save a list of product id on which you want the quantity to appear in the front office, and then you can use the code sent previously.

If you don't want it to be changed dynamically every time, then only the code is enough, but this must be changed from the code every time:

{if in_array($product.id, array(1,2,5,47)}{$product.stock_quantity}{/if}

 and in the array you write all product IDs for which you want the quantity to appear.

Have a nice day.

Kind regards,
Leo

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