Showing Configurable Product Stock in Magento

1

Good afternoon!

I'm picking up here to resolve this issue. In my store, the configurable products even appear stock, but the first item appears as "null." See the image below:

Myworkingversionis1.9.1.0.

Thisisthesectionofmyfilewherethemodificationwasdone:app/code/core/Mage/Catalog/

$simpleproduct=Mage::getModel('catalog/product')->load($productsIndex);$qty=(int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($simpleproduct)->getQty();$info['options'][]=array('id'=>$value['value_index'],'label'=>$value['label'],'price'=>$configurablePrice,'oldPrice'=>$this->_prepareOldPrice($value['pricing_value'],$value['is_percent']),'products'=>$productsIndex,'qty'=>$qty,//wearesendingstockparametersowecanuseitlatterindropdownfield);

Anysuggestions?IalreadyresearchedalotinGoogle,Ididseveraltests,butwithoutsuccess!

Thankyouall!

Toshowinventoryasinimage,Ifollowedthisresponse: link

    
asked by anonymous 28.01.2016 / 18:34

0 answers