getSharedWebsiteIds(); $isShared = count($sharedWebsiteIds) > 1; foreach ($sharedWebsiteIds as $websiteId) { $blockName = 'customer_cart_' . $websiteId; $block = $this->getLayout()->createBlock('adminhtml/customer_edit_tab_cart', $blockName, array('website_id' => $websiteId)); if ($isShared) { $block->setCartHeader($this->__('Shopping Cart from %s', Mage::app()->getWebsite($websiteId)->getName())); } $this->setChild($blockName, $block); } return parent::_prepareLayout(); } /** * Just get child blocks html * * @return string */ protected function _toHtml() { Mage::dispatchEvent('adminhtml_block_html_before', array('block' => $this)); return $this->getChildHtml(); } }