babyewok Posted April 9, 2009 Share Posted April 9, 2009 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 More sharing options...
babyewok Posted April 9, 2009 Author Share Posted April 9, 2009 Oh, I see - it was because I had turned off the ability to buy out of stock items. I just deleted: $allow_oosp && Link to comment Share on other sites More sharing options...
vectran Posted July 21, 2009 Share Posted July 21, 2009 Umm... How do I get it to say "0 items in stock in the first place"?I swear it used to, but I can't get it back. Link to comment Share on other sites More sharing options...
babyewok Posted July 21, 2009 Author Share Posted July 21, 2009 Have you recently turned ON the ability to buy out of stock items? The 0 items in stock only started showing when I had turned that OFF. 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