Brands as file tree in backend

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 5 months ago #344821

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2.
-- PHP version -- : 8.02

Hi

Would it be possible to have the file tree function in the BRANDS option, like I have in CATEGORIES?



I have several Brands with the same name and I can't tell the different now:



Regards
Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 83338
  • Thank you received: 13476
  • MODERATOR
2 years 5 months ago #344840

Hi,

Try changing the code:

'brand' => array(
			'class' => 'class.category',
			'name' => 'category_name',
			'mode' => 'list',
			'params' => array(
				'category_type' => 'manufacturer',
				'filters' => array(
					'c.category_depth > 1'
				),
				'key' => 'category_id',
			),
			'url' => 'category&task=findList&category_type=manufacturer',
			'options' => array(
				'tree_url' => 'category&task=getTree&category_type=manufacturer&category_id={ID}',
				'tree_key' => '{ID}',
			),
		),
to:
'brand' => array(
			'class' => 'class.category',
			'name' => 'category_name',
			'mode' => 'tree',
			'params' => array(
				'category_type' => 'manufacturer',
				'filters' => array(
					'c.category_depth > 1'
				),
				'key' => 'category_id',
			),
			'url' => 'category&task=getTree&category_type=manufacturer',
			'options' => array(
				'tree_url' => 'category&task=getTree&category_type=manufacturer&category_id={ID}',
				'tree_key' => '{ID}',
			),
		),
in the file administrator/components/com_hikashop/types/namebox.php
That should help. Please let us know how it goes.

Please Log in or Create an account to join the conversation.

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 5 months ago #344841

Perfect, thank you so much! :-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum