Magento Forum

Products always show “Availability: In stock.”
 
roco
Sr. Member
 
Total Posts:  191
Joined:  2008-03-18
 

This is strange:

In 1.1.3 all of my simple products show “Availability: In stock.” regardless of what I set the “Quantity” and “Minimum Qty for Items’ Status to be In Stock” fields to.  I have tried all logical combination of number here and refreshed Cache.

Any ideas?

Here is the code in Simple.phtml related to the display of this message:

?>
<?php $_product 
$this->getProduct() ?>

<?php 
if($_product->isSaleable()): ?>
    
<class="availability"><?php echo $this->__('Availability: In stock.'?></p>
<?php else: ?>
    
<class="availability"><?php echo $this->__('Availability: Out of stock.'?></p>
<?php endif; ?>

<?php 
echo $this->getPriceHtml($_product?>

hmmm.....

The only way I can get this message to change is by manually setting Stock Availability to Out of Stock.  Shouldn’t this message be tied to the QTY and not to a manual toggle?  Isn’t that the reason for the “Min Qty for Item’s Status to be out of Stock “ field?

I thought I understood inventory in Magento but now I am not so sure...........

 
Magento Community Magento Community
Magento Community
Magento Community
 
hyteckit
Sr. Member
 
Avatar
Total Posts:  166
Joined:  2008-04-01
Los Angeles, CA
 

I have the same issue.  I’ll look into it later.

 
Magento Community Magento Community
Magento Community
Magento Community
 
roco
Sr. Member
 
Total Posts:  191
Joined:  2008-03-18
 

Thanks hyteckit....

I also found some code in “stock.phtml” that should display this message as a link:

Sign up to get notified when this product is back in stock

.........but I have never seen this and am not sure how to trigger it either.

- roco

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top