Zen Follower
- Join Date:
- May 2006
- Location:
- UK
- Posts:
- 101
- Plugin Contributions:
- 0
Adding Product Qty to a page
Hi folks can some on please tell me how i can manually add the prouct quantity to a page.
I have changed the layout of how my wishlist is displayed and i want to be able to show on this if a product is in or out of stock but for the life of me i just cant get the right coding to allow this to happen.
For give my poor programming but i was thinking along the lines of this:
<?php if($products_quantity < 0) { echo 'In Stock'; } else { echo 'Out Off Stock';} ?>its as if the page does not know the current value of $products_quanity as it always displays 'out off stock'
Can some kind sole please help me solve this small issue :)