Esempio n. 1
0
 /**
  * @param string $html
  * @param Mage_Wishlist_Block_Customer_Sidebar $block
  * @return string
  */
 private function _processWishListSidebar($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('my_wishlist_product_price'), $helper->prepareReplacement());
         $processor->remove($helper->getCssSelector('my_wishlist_product_addtocart'));
         return $processor->getHtml();
     }
     $processor->process('mywishlist', array('products' => $block->getWishlistItems()));
     return $processor->getHtml();
 }