PREGUNTAS SIMILARES
#2
Publicado 29 abril 2014 - 23:53
Prueba con lo siguiente:
<?php foreach(Mage::getSingleton('checkout/session')->getQuote()->getAllItems() as $_item): ?> <?php if($_item->getParentItemId()) { $parentQuote = Mage::getModel("sales/quote_item")->load($_item->getParentItemId()); $qty = $parentQuote->getQty(); } else { $qty = $_item->getQty(); } ?> <?php endforeach ?>
#3
Publicado 30 abril 2014 - 00:00
Esta es un poco mas resumida pero sirve por igual:
<?php foreach(Mage::getSingleton('checkout/session')->getQuote()->getAllItems() as $_item): ?> <?php if ($item->getHasChildren()){ $qty = $_item->getQty(); } ?> <?php endforeach ?>