public function getIdsString() { $categoryIds = $this->getCategoryIds(); if (is_array($categoryIds)) { return implode(',', $categoryIds); } return parent::getIdsString(); }
protected function _getNodeJson($node, $level = 1) { $item = parent::_getNodeJson($node, $level); if (!$this->isVendorEnabled($item['id'])) { $item['disabled'] = true; } return $item; }
/** * Returns array with configuration of current node * * @param Varien_Data_Tree_Node $node * @param int $level How deep is the node in the tree * @return array */ protected function _getNodeJson($node, $level = 1) { $item = parent::_getNodeJson($node, $level); if (!isset($item['expanded']) && isset($item['id'])) { if (in_array($item['id'], $this->_getSelectedCategoriesPathIds())) { $item['expanded'] = true; } } return $item; }
public function __construct() { parent::__construct(); $this->setTemplate('aw_ascurl/catalog/product/edit/ascurl.phtml'); }
/** * Set file template */ public function __construct() { parent::__construct(); $this->setTemplate('inchoo/gsfeed/categories.phtml'); }
protected function _getSelectedNodes() { if (version_compare(Mage::getVersion(), '1.4.0.0', '>=')) { return parent::_getSelectedNodes(); } if ($this->_selectedNodes === null) { $this->_selectedNodes = array(); $root = $this->getRoot(); foreach ($this->getCategoryIds() as $categoryId) { if ($root) { $this->_selectedNodes[] = $this->getRoot()->getTree()->getNodeById($categoryId); } } } return $this->_selectedNodes; }
public function __construct() { parent::__construct(); $this->_withProductCount = false; $this->setTemplate('wholesale/categories.phtml'); }
public function __construct() { parent::__construct(); $this->setTemplate('thememanager/categories.phtml'); }
public function __construct() { parent::__construct(); $this->_withProductCount = false; $this->setTemplate('bannerslider/categories.phtml'); }
public function __construct() { parent::__construct(); $this->setTemplate('catalog/product/edit/categories.phtml'); }
/** * Specify template to use */ public function __construct() { parent::__construct(); $this->setTemplate('mf_flexibleblock/fblock/edit/categories.phtml'); }