Shadowscan Posted September 4, 2012 Share Posted September 4, 2012 Hi, hope someone can help me. I searched the forum but didn't find the solution In the product-list.php i added this line to show how many items there are in stock: {$product.quantity}{l s=' items in stock'} Is there a way to show the stock levels when there is stock and when it goes to "0" (and bellow zero) pieces there shows a message like (Out of Stock - in backorder). Link to comment Share on other sites More sharing options...
CartExpert.net Posted September 5, 2012 Share Posted September 5, 2012 Hi. You can add another IF statement to check if quantity is 0 (or below 0, although logically that's impossible) and display the 'Out of stock' message in the 'then' branch. Regards. Robin. The CartExpert Team Link to comment Share on other sites More sharing options...
Mr S Posted November 30, 2012 Share Posted November 30, 2012 if the product has combinations than $product.quantity is the value of your default combination. If its out but you have other sizes its set to zero (0) 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