*/ class Mage_Checkout_Block_Multishipping_Billing_Items extends Mage_Sales_Block_Items_Abstract { /** * Get multishipping checkout model * * @return Mage_Checkout_Model_Type_Multishipping */ public function getCheckout() { return Mage::getSingleton('checkout/type_multishipping'); } /** * Retrieve quote model object * * @return Mage_Sales_Model_Quote */ public function getQuote() { return Mage::getSingleton('checkout/session')->getQuote(); } /** * Retrieve virtual product edit url * * @return string */ public function getVirtualProductEditUrl() { return $this->getUrl('*/cart'); } /** * Retrieve virtual product collection array * * @return array */ public function getVirtualQuoteItems() { $items = array(); foreach ($this->getQuote()->getItemsCollection() as $_item) { if ($_item->getProduct()->getIsVirtual() && !$_item->getParentItemId()) { $items[] = $_item; } } return $items; } }