is there a more user friendly way to pick categories for products?

  • Posts: 99
  • Thank you received: 6
  • Hikashop Business
7 years 5 days ago #282699

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.0.25
-- Browser(s) name and version -- : Chrome

The product entry field for choosing categories is very small and has a limited view. See screen shot: http://take.ms/iZGgXhttp://take.ms/iZGgX

I presume others have found this to be challenging as well so I'm wondering if there's a solution that already exists to make it easier to see and physically pick from, e.g. a modal, or a list that shows all at one time, or ability to multi-select, etc.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 5 days ago #282705

Hello,

1 - You can write some text in the "namebox" to perform a search.
2 - When clicking on a category for selection, if you press the "ctrl" button, you will select the item and not close the namebox
3 - You can still use some CSS in order to make the zone bigger.
4 - Using a view override you can add the parameter "depth" in order to pre-load more levels of categories.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 99
  • Thank you received: 6
  • Hikashop Business
7 years 4 days ago #282738

Thank you Jerome. I added some CSS and made use of the cmd key (it was the cmd key on a mac, might be the ctrl key on windows). That was helpful.

Is there a way to have it default so that all folders are already expanded? Meaning the user doesn't have to click on the + box to show the child folders. See take.ms/dok1K
Perhaps that is what you were referring to about the parameter "depth" but I am not clear on that. What does it mean to pre-load more levels of categories?
Would the product / selectcategory.php file be the correct file to override?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 3 days ago #282771

Hi,

Yes, the depth parameter Jerome was talking about is what you need for that.
It's a parameter you can add to the list of parameters used when loading the selector:

hikashopNameboxType::NAMEBOX_MULTIPLE,
			'category',
			array(
				'delete' => true,
				'sort' => true,
				'default_text' => '<em>'.JText::_('HIKA_NONE').'</em>',
				'tooltip' => true,
			)
		);
You can find that code in the file "form" of the view "product" via the menu Display>Views.
To easily know which view file to edit, you have the "display view file" setting of the HikaShop configuration. I invite you to try it.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum