Jump to content

Hide "0 item in stock"


Recommended Posts

When an item is out of stock, I have changed "This product is no longer in stock" to simply "Out of Stock", but I would also like to remove the line saying "0 item in stock" as it seems a bit obvious that there are none in stock!!

Obviously that line is needed for when there ARE items in stock, I just want to know how to edit product.tpl so that when stock is 0, it doesn't show. Presumably I need to edit this bit, but it's not as straight forward as the other if statemtents (not to me anyway!)...


quantity == 0)} style="display:none;"{/if}>
{$product->quantity|intval}
quantity > 1} style="display:none;"{/if} id="quantityAvailableTxt">{l s='item in stock'}
quantity < 2} style="display:none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}

Link to comment
Share on other sites

  • 3 months later...

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