Skip to main content

Select with vendor categories ??

More
3 years 4 months ago #351576 by gerryna09
-- 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

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

More
3 years 4 months ago #351577 by Jerome
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.

More
3 years 4 months ago #351586 by gerryna09
echo JHTML::_('select.genericlist', $vendocategories...

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

More
3 years 4 months ago #351612 by Jerome
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.

More
3 years 4 months ago #351613 by gerryna09
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.

More
3 years 4 months ago #351617 by Jerome
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
Code:
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.204 seconds
Powered by Kunena Forum