<div class="stock"> <?php if($_product->isSaleable()): ?> <p class="prodstock"><?php echo $this->__('In stock') ?></p> <?php else: ?> <p class="prodstock"><?php echo $this->__('Out of stock') ?></p> <?php endif; ?> </div>
I have this piece of code right here currently displaying in stock or out of stock on my store. I want to add a 3rd else to display a custom stock status. How can i do that? Can anyone show me?
This would be my third option:
or at least hide the stock status when a custom status exists.