Arj1 Posted August 29, 2010 Share Posted August 29, 2010 HelloIs there a way to display "X items in stock" on the product-list page? thanks in advance--thank you rocky! Link to comment Share on other sites More sharing options...
rocky Posted August 30, 2010 Share Posted August 30, 2010 Add the following to your product-list.tpl where you want the text to appear: {$product.quantity} {if $product.quantity == 1}{l s='item in stock'}{else}{l s='items in stock'}{/if} Link to comment Share on other sites More sharing options...
James R Posted September 7, 2010 Share Posted September 7, 2010 I'm having issues with similar code, seems to be displaying a stock quantity of 1 even tho the combinations are all sold out - very frustrating!Any ideas? 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