Select with vendor categories ??

  • Posts: 152
  • Thank you received: 11
11 months 2 weeks ago #351576

-- url of the page with the problem -- : hikashop.cloudaccess.host
-- HikaShop version -- : 4.7.2
-- HikaMarket version -- : 4.1.1
-- Joomla version -- : 4.3.1
-- PHP version -- : 8.0.28
-- Browser(s) name and version -- : Chrome

On the Products page I would like to have a select with the categories the vendor can access

A little help? Thanks

Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 months 2 weeks ago #351577

Hello,

You need to configure the HikaMarket "category" settings to restrict the vendor to a specific category.
www.hikashop.com/support/documentation/1...nfig_market_category

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: 152
  • Thank you received: 11
11 months 2 weeks ago #351586

echo JHTML::_('select.genericlist', $vendocategories...

Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 months 2 weeks ago #351612

Hello,

You can use the setting "use category explorer" in order to remove that element.
www.hikashop.com/support/documentation/1...tml#config_main_main

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: 152
  • Thank you received: 11
11 months 2 weeks ago #351613

Unfortunately my English is not good :(

I would like to have a drop down menu for categories

Using echo JHTML::_('select.genericlist', $results, 'categories','onchange="document.location.href = this.value"..

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 months 2 weeks ago #351617

Hello,

Okay.

So you want to keep the "explorer" but you need to override the "productmarket / listing" view to comment the display of the explorer and place your own code instead.
You'll find the display of the category tree (explorer) via that line

echo $this->shopCategoryType->displayTree(...

For more details regarding how to customize the views :
www.hikashop.com/support/documentation/1...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.078 seconds
Powered by Kunena Forum