I search everywhere but cannot find a good answer.
In my 1.9 magento rwd theme, I set for single product to display the stock qty after stock status, but when i put some simple products to a grouped product type then in the table of grouped products I can see the correct stock qty and in main window i see and is display for total group stock qty = 0
This is my code:
rwd\default\template\catalog\product\view\addtocart.phtml
<?php if($_product->isSaleable()): ?> <br></br> <?php if ($this->displayProductStockStatus()): ?> <?php if ($_product->isAvailable()): ?> <p class="availability in-stock"><?php echo $this->__('Cantitate disponibila :') ?> <span><!--<?php echo $this->__('In stock') ?>--><?= (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?></span> <?php echo $this->__('buc.') ?></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Cantitate disponibila :') ?> <span><!--<?php echo $this->__('In stock') ?>--><?= (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?></span> <?php echo $this->__('buc.') ?> </p> <?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Out of stock') ?></span></p> <p class="availability out-of-stock"><span></br><?php echo $this->__() ?><span style="color:#0b9817;text-align:center;">Stoc Furnizor</span></br><span style="color:#de4231;text-align:center;">Comanda telefonic 0785.737.227</span></p> <?php endif; ?> <?php endif; ?> <?php echo $this->__('COD PRODUS: ') ?><?php echo $_product->getSku() ?><br/> <?php echo $_product->getAttributeText('transport_01') ?> Can someone help me or to display total stock of asociated products or to hide only the main stock code.???
