Jump to content

Need to display "Out of stock" text when product quantity goes to 0


Recommended Posts

I would like to display "Out of stock" text on the product page when product quantity is zero. I have used following script to product.tpl and its working good for single combination products. But unfortunately its not working in the multiple combination products. Please see attached.


{if (isset($groups) AND $quantity == 0) OR (!isset($groups) AND $product->quantity == 0)}<p class="price" style="color: red;">{l s='Out of stock!'}</p>{/if}


Please any one



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