Protected Member Functions | |
_prepareLayout () | |
_toHtml () |
Definition at line 31 of file Carts.php.
_prepareLayout | ( | ) | [protected] |
Add shopping cart grid of each website
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 38 of file Carts.php.
00039 { 00040 $sharedWebsiteIds = Mage::registry('current_customer')->getSharedWebsiteIds(); 00041 $isShared = count($sharedWebsiteIds) > 1; 00042 foreach ($sharedWebsiteIds as $websiteId) { 00043 $blockName = 'customer_cart_' . $websiteId; 00044 $block = $this->getLayout()->createBlock('adminhtml/customer_edit_tab_cart', $blockName, array('website_id' => $websiteId)); 00045 if ($isShared) { 00046 $block->setWebsiteId($websiteId) 00047 ->setCartHeader($this->__('Shopping Cart from %s', Mage::app()->getWebsite($websiteId)->getName())) 00048 ; 00049 } 00050 00051 $this->setChild($blockName, $block); 00052 } 00053 00054 return parent::_prepareLayout(); 00055 }
_toHtml | ( | ) | [protected] |
Just get child blocks html
Reimplemented from Mage_Core_Block_Template.
Definition at line 62 of file Carts.php.
00063 { 00064 return $this->getChildHtml(); 00065 }