Magento 1.9.2 Problem. I have the code below to show me custom text depending if a product is out of stock. The thing i want to do is to get all products in stock and if the quantity is 0 or below to get my custom text
<?php if ($this->displayProductStockStatus()): ?>
<?php if ($_product->isAvailable()): ?>
<p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('In stock') ?></span></p>
<?php else: ?>
<p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $_product->getData('customstock'); ?></span></p>
<?php endif; ?>
customstock
data in$_product->getData('customstock')
or with product quantity calculation?