Ejemplo n.º 1
0
 /**
  * Prepare before to html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getCustomWishlist() && $this->getItemCount() || $this->hasWishlistItems()) {
         return parent::_toHtml();
     }
     return '';
 }
Ejemplo n.º 2
0
 /**
  * Retrieve block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->isEnabled()) {
         return parent::_toHtml();
     }
     return '';
 }
 /**
  * Prepare before to html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->getItemCount()) {
         return parent::_toHtml();
     }
     return '';
 }
 /**
  * Build block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if (Mage::helper('enterprise_wishlist')->isMultipleEnabled() && $this->isWishlistDeleteable()) {
         return parent::_toHtml();
     }
     return '';
 }
 /**
  * Prepare before to html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->_getHelper()->hasItems()) {
         return parent::_toHtml();
     }
     return '';
 }
Ejemplo n.º 6
0
 /**
  * Retrieve block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     if ($this->isEnabled()) {
         if (!$this->getLayout()) {
             return '';
         }
         foreach ($this->getLayout()->getChildBlocks($this->getNameInLayout()) as $child) {
             if ($child) {
                 $child->setItem($this->getItem());
             }
         }
         return parent::_toHtml();
     }
     return '';
 }
Ejemplo n.º 7
0
 /**
  * Render block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     $this->setOptionList($this->getConfiguredOptions());
     return parent::_toHtml();
 }
Ejemplo n.º 8
0
 /**
  * Render block html
  *
  * @return string
  */
 protected function _toHtml()
 {
     $cfg = $this->getOptionsRenderCfg($this->getItem()->getProduct()->getTypeId());
     if (!$cfg) {
         return '';
     }
     $helper = Mage::helper($cfg['helper']);
     if (!$helper instanceof Mage_Catalog_Helper_Product_Configuration_Interface) {
         Mage::throwException($this->__("Helper for wishlist options rendering doesn't implement required interface."));
     }
     if ($cfg['template']) {
         $template = $cfg['template'];
     } else {
         $cfgDefault = $this->getOptionsRenderCfg('default');
         if (!$cfgDefault) {
             return '';
         }
         $template = $cfgDefault['template'];
     }
     $this->setTemplate($template)->setOptionList($helper->getOptions($this->getItem()));
     return parent::_toHtml();
 }