/**
  * Render single action as link html
  *
  * @param array $action
  * @param Varien_Object $row
  * @return string
  */
 protected function _toLinkHtml($action, Varien_Object $row)
 {
     if ($row->isEnterpriseProcess()) {
         return ' ';
     }
     return parent::_toLinkHtml($action, $row);
 }
예제 #2
0
 /**
  * Render single action as link html
  *
  * @param  array $action
  * @param  Varien_Object $row
  * @return string
  */
 protected function _toLinkHtml($action, Varien_Object $row)
 {
     $product = $row->getProduct();
     if (isset($action['process']) && $action['process'] == 'configurable') {
         if ($product->canConfigure()) {
             $style = '';
             $onClick = sprintf('onclick="return %s.configureItem(%s)"', $action['control_object'], $row->getId());
         } else {
             $style = 'style="color: #CCC;"';
             $onClick = '';
         }
         return sprintf('<a href="%s" %s %s>%s</a>', $action['url'], $style, $onClick, $action['caption']);
     } else {
         return parent::_toLinkHtml($action, $row);
     }
 }