Instead of stating that an item is out of stock, I like to have it available for order with the exception of a warning that states the availability of product for shipment. I created an attribute and assigned a date input type.
Below is my attempt to get this working with no luck so far. Appreciate some help. Thanks.
<?php $empty="" ?>
<?php $_product = $this->getProduct() ?>
<?php if($_product->isSaleable() && $empty==$_product->getProductAvailableDate()): // getProductAvailableDate is an date attribute ?>
<p><?php echo $this->__('Availability: In stock.') ?></p>
<?php else($_product->isSaleable() && $empty!=$_product->getProductAvailableDate()): ?>
<p><?php echo $this->__('Availability: Temporarily Out of stock.<br/>Due to high demand for this product, it is not available until ') ?>
<?php echo $_product->getProductAvailableDate() ?></p>
<?php endif; ?>