protected function _toHtml()
 {
     $this->setType('wishlist/customer_wishlist');
     $html = parent::_toHtml();
     if (Mage::getVersion() > '1.4.2.0') {
         $html = Mage::helper('aitunits/event')->addAfterToHtml($html, $this);
     }
     return $html;
 }
 public function getWishlistItems()
 {
     if (!Mage::helper('multiplewishlist')->isEnabled()) {
         return parent::getWishlistItems();
     }
     $tab_id = func_get_arg(0);
     if (!isset($this->_collection[$tab_id]) || is_null($this->_collection[$tab_id])) {
         $this->_collection[$tab_id] = Mage::getSingleton('multiplewishlist/tab')->getCollectionForTab($tab_id);
     }
     return $this->_collection[$tab_id];
 }
Example #3
0
 /**
  * Prepare block layout, override wishlist block with different template
  *
  * @return Enterprise_GiftRegistry_Block_Wishlist_View
  */
 protected function _prepareLayout()
 {
     $outputEnabled = Mage::helper('core')->isModuleOutputEnabled($this->getModuleName());
     if ($outputEnabled) {
         $block = $this->getLayout()->getBlock('my.account.wrapper');
         if ($block) {
             $block->unsetChild('customer.wishlist');
             $block->append($this, 'customer.wishlist');
         }
     }
     return parent::_prepareLayout();
 }
Example #4
0
 /**
  * @param string $html
  * @param Mage_Wishlist_Block_Customer_Wishlist $block
  * @return string
  */
 private function _processWishList($html, $block)
 {
     $helper = $this->_getHelper();
     /** @var $processor Mageplace_Callforprice_Model_Htmlprocessor_Interface */
     $processor = Mage::getModel('mageplace_callforprice/htmlprocessor_factory')->createProcessor();
     $processor->load($html);
     if ($helper->isGlobalEnabled()) {
         $processor->replace($helper->getCssSelector('wishlist_product_price'), $helper->prepareReplacement());
         $processor->remove($helper->getCssSelector('wishlist_product_addtocart'));
         $processor->remove($helper->getCssSelector('wishlist_product_all_addtocart'));
         return $processor->getHtml();
     }
     $processor->process('wishlist', array('products' => $block->getWishlistItems()));
     return $processor->getHtml();
 }