0

I was wondering if someone could help with this issue? I have 3 sites all running Magento C.E. 1.9.0 and the issue appears on all.

For my Bundled Products the Availability shows as "In Stock", however, it says "Only 0 left"

Here is a link to a product with the issue: http://airwavewirelessnetworks.com/access-points/ap110.html

I appreciate any insight on how to solve this problem.

Thanks!

  • What's the code that prints Only 0 left? – Marius Aug 7 '14 at 14:01
  • That likely comes from cataloginventory/stockqty/default.phtml or cataloginventory/stockqty/composite.phtml. – Colin O'Dell Aug 7 '14 at 15:50
1

So this message should only be shown when the function Mage_CatalogInventory_Block_Stockqty_Abstract::isMsgVisible returns true.

The default function checks the following

  1. That the stock quantity is greater than 0
  2. That the stock quantity is less than or equal to the threshold quantity for displaying the message.

The function looks as follows.

public function isMsgVisible()
{
    return ($this->getStockQty() > 0 && $this->getStockQty() <= $this->getThresholdQty());
}

I would suggest that you can look into this function and see what is happening with your product. My thinking is either this function is rewritten for bundle products or the threshold quantity is set wrong.

| improve this answer | |
0

You may find the code in the bundle/avaliablity.phtml file or simply hide the content by using the following css

css

.availability-only { display: none; }

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.