Question

I'll get straight to the point. What is going on here, is I have a webstore, that has an inventory system sync'ed up with it. The issue at hand, is that we get backordered a lot, or have preorders. In the system, it will go to zero or negative numbers all the time, but we still want them to be able to order them.. just not necessarily see that we are -100 of such and such an item.

I currently have;

<?php if ($_product->isAvailable()): ?>
<p class="availability in-stock"><?php echo $this->__('Availability:') ?> <?= (int)  Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?> <span><?php echo $this->__('in stock') ?></span></p>
<?php else: ?>
<p class="availability out-of-stock"><?php echo $this->__('Availability: ') ?> <span><?    php echo $this->__('Call for Availability') ?></span></p>
<?php endif; ?>

This currently will show the inventory at whatever number it is, be it plus, minus, or at zero, which makes sense since there is no conversion to send it to out of stock if the number is =< 0. I am just not sure how I would go about mocking that up. So I come to you geniuses! Thanks for any and all help!

Was it helpful?

Solution

Configuration => Catalog => Inventory:
Display Out of Stock Products => Yes
Manage Stock => No

This should allow to sell products without managing remained products in stocks

Otherwise just replace with

<?php if ($_product->isAvailable()): ?>
<p class="availability in-stock"><?php echo $this->__('Availability:') ?> 
    <span>
    <?php 
    $qty = (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
    if ($qty<=0){echo $this->__('Call for Availability');}
    else {echo $qty;} ?>
    </span>
</p>
<?php else: ?>
<p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?    php echo $this->__('Call for Availability') ?></span></p>
<?php endif; ?>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top