Jump to content

get list of product categories


Recommended Posts

if you mean something like that:

aJKGr6X.png

 

the definition of this field looks like:

				array(
					'type' => 'categories',
					'label' => $this->l('Parent category:'),
					'name' => 'id_parent',
					'values' => array(
						'trads' => array(
							 'Root' => $root_category,
							 'selected' => $this->l('Selected'),
							 'Collapse All' => $this->l('Collapse All'),
							 'Expand All' => $this->l('Expand All')
						),
						'selected_cat' => $selected_cat,
						'input_name' => 'id_parent',
						'use_radio' => true,
						'use_search' => false,
						'disabled_categories' => array(4),
						'top_category' => Category::getTopCategory(),
						'use_context' => true,
					)
				),
Link to comment
Share on other sites

Hi vekia, 

 

           Your abosoulutly correct, how I'll display this in my tpl file. I have posted in my php file and display with help of assign and it's through an error. check with below,  

 

Notice: Array to string conversion in G:\xampp\htdocs\project\classes\Dispatcher.php on line 637

Fatal error: Call to undefined method marketPlaceAddProductModuleFrontController::l() in G:\xampp\htdocs\project\modules\marketplace\controllers\front\addProduct.php on line 211

Link to comment
Share on other sites

×
×
  • Create New...