Пример #1
0
 /**
  * Retrieve block template
  *
  * @return string
  */
 public function getTemplate()
 {
     $template = parent::getTemplate();
     if ($template) {
         return $template;
     }
     $item = $this->getItem();
     // If $item is it not instance of Mage_Wishlist_Block_Customer_Wishlist_Item_Options
     if ($item) {
         $data = $this->getOptionsRenderCfg($item->getProduct()->getTypeId());
         if (empty($data['template'])) {
             $data = $this->getOptionsRenderCfg('default');
         }
     } else {
         $data = $this->getOptionsRenderCfg('default');
     }
     return empty($data['template']) ? '' : $data['template'];
 }
Пример #2
0
 /**
  * Retrieve block template
  *
  * @return string
  */
 public function getTemplate()
 {
     $template = parent::getTemplate();
     if ($template) {
         return $template;
     }
     $item = $this->getItem();
     $data = $this->getOptionsRenderCfg($item->getProduct()->getTypeId());
     if (empty($data['template'])) {
         $data = $this->getOptionsRenderCfg('default');
     }
     return empty($data['template']) ? '' : $data['template'];
 }