change display of category root in dashboard

  • Posts: 48
  • Thank you received: 0
9 years 6 months ago #202434

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1

Hi,

I want to change the display of the categories in the front end editing a product. Is it possible to change this from MultipleDisplay to radiobutton or better to a dropdown? It will be perfect if i can do this for each maincategory. So that I have a maincategory with a dropdown with the subcategories.

Thanks

Attachments:

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

  • Posts: 26162
  • Thank you received: 4029
  • MODERATOR
9 years 6 months ago #202445

Hi,

The view is "productmarket | form".
You will find in that view the code which display the "namebox" for the selection of the product categories.

	$categories = null;
	if(!empty($this->product->categories))
		$categories = array_keys($this->product->categories);
	echo $this->nameboxType->display(
		'data[product][categories]',
		$categories,
		hikamarketNameboxType::NAMEBOX_MULTIPLE,
		'category',
		array(
			'delete' => true,
			'sort' => true,
			'root' => $this->rootCategory,
			'default_text' => '<em>'.JText::_('HIKA_NONE').'</em>',
		)
	);
You're free to override that view if you want to change the display of the product edition.

More about customization : www.hikashop.com/support/support/documen...ize-the-display.html

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.

Moderators: Obsidev
Time to create page: 0.065 seconds
Powered by Kunena Forum