I’m setting up a store that deals with collectible gaming pieces, where order multiples is a common practice, and as such rather than simply displaying whether the product is in stock or not, I would like to display the available stock.
For instance on the Product Description Page:
Availability: In/Out of Stock -> changed to # available
QTY: [ ] ADD TO CART
Now I see where the change needs to be made: app/design/fronend/default/default/template/catalog/product/view/typ/simple.phtml
<?php if($_product->isSaleable()): ?>
<p><small><?php echo $this->__('Availability: In stock.') ?></small></p>
<?php else: ?>
<p><small><?php echo $this->__('Availability: Out of stock.') ?></small></p>
<?php endif; ?>
But I need some sort of $_product->getAvailableStock() stock function, which I cannot find.
Does such a function exist? How might I find it? Thanks!