Example #1
0
 public function getIdsString()
 {
     $categoryIds = $this->getCategoryIds();
     if (is_array($categoryIds)) {
         return implode(',', $categoryIds);
     }
     return parent::getIdsString();
 }
Example #2
0
 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;
 }
Example #4
0
 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;
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->_withProductCount = false;
     $this->setTemplate('wholesale/categories.phtml');
 }
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('thememanager/categories.phtml');
 }
Example #9
0
 public function __construct()
 {
     parent::__construct();
     $this->_withProductCount = false;
     $this->setTemplate('bannerslider/categories.phtml');
 }
Example #10
0
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('catalog/product/edit/categories.phtml');
 }
Example #11
0
 /**
  * Specify template to use
  */
 public function __construct()
 {
     parent::__construct();
     $this->setTemplate('mf_flexibleblock/fblock/edit/categories.phtml');
 }