[Skip to main content](#vessel-content)

#   Categorize Vendors for frontend display?

##

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 1 month ago [\#250133](#250133) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#250133 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")* was created by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")*

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.1
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6
-- Error-message(debug-mod must be tuned on) -- : No error

Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?

eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all "Clothing Vendors". A Vendor's listing would then link to their vendor landing page and products.

Possible?

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 1 month ago [\#250176](#250176) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#250176 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")*

Hi,

In HikaMarket you can create "vendor categories".
By default, all vendor categories will be created under the same parent category :
[ www.hikashop.com/support/documentation/1...nfig\_market\_category](https://www.hikashop.com/support/documentation/143-hikamarket-configuration.html#config_market_category)

But, thanks to a custom field and a little plugin, you can control dynamically where the vendor category will be.
[ www.hikashop.com/support/documentation/1...VendorCategoryCreate](https://www.hikashop.com/support/documentation/163-hikamarket-developer.html#onBeforeVendorCategoryCreate)Code:

/** * @param $vendor - the vendor object * @param $category - the category object that we will use for the creation * @param $do - boolean value. Set it "false" to stop the category creation */ public function onBeforeVendorCategoryCreate(&amp;$vendor, &amp;$category, &amp;$do) { }

Using that trigger you can change the "category_parent_id" value of the category object.
And with the vendor object, you can read the value of the vendor custom field you created (to let the vendor choose his "section").

We also recommend you to use the setting "Link vendor category to vendor page by default" ; so you just have to create category listing and by clicking on a vendor category the user will be redirected to the HikaMarket vendor page.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

10 years 3 weeks ago -  10 years 3 weeks ago [\#251694](#251694) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#251694 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")*

I've had the "Link vendor category to vendor page by default" setting enabled, however, the vendor category still links to the standard Hikashop sub-category display instead of the vendor landing page.

So, when I go here and click on the vendor category - [ isb.3by400.com/shop/learning-tracks](http://isb.3by400.com/shop/learning-tracks) ...

My Vendor category goes here - [ isb.3by400.com/shop/learning-tracks/category/14-kim-kraut](http://isb.3by400.com/shop/learning-tracks/category/14-kim-kraut)

But I would expect it to go to - [ isb.3by400.com/vendors/vendor/show/2-kim-kraut](http://isb.3by400.com/vendors/vendor/show/2-kim-kraut)

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Last edit: 10 years 3 weeks ago by [3by400](/forum/user/6842-3by400 "View 3by400's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 3 weeks ago [\#251708](#251708) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#251708 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")*

Hi,

I think that I will have a little discussion with the HIkaShop team in order to talk about some modifications made in the HikaShop category listing view ; where I can see several problems and errors.
One of them is the introduction of a bug which impact HikaMarket and I'm fan of it...

You can edit your category listing view and add the line that the beginning Code:

&lt;?php $link = $this-&gt;getLink($this-&gt;row); ?&gt;

Then you will be able to replace every reference of Code:

echo $this-&gt;row-&gt;link;

By Code:

echo $link;

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 3 weeks ago [\#251779](#251779) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#251779 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")*

Hi,

I talked with the HikaShop team and we arrived at a compromise ![:)](/media/kunena/emoticons/8.png ":)")
You can keep the HikaShop views with the " $this-&gt;row-&gt;link " but you will need to modify one HikaMarket file and an HikaShop one.

**administrator/components/com\_hikamarket/classes/category.php**
Replace Code:

$row-&gt;override_url = hikamarket::completeLink('vendor&amp;task=show&amp;cid='.$vendor_id.$vendorItemId);

By Code:

$row-&gt;override_url = hikamarket::completeLink('vendor&amp;task=show&amp;cid='.$vendor_id.$vendorItemId); if(!empty($row-&gt;link)) { $row-&gt;link_origin = $row-&gt;link; $row-&gt;link = $row-&gt;override_url; }

**components/com\_hikashop/views/category/view.html.php**
Replace Code:

if(!empty($cid-&gt;override_url)) return $cid-&gt;override_url;

By Code:

if(!empty($cid-&gt;override_url)) return $cid-&gt;override_url; if(!empty($cid-&gt;link)) return $cid-&gt;link;

And it wil introduce a compatibility for HikaShop 2.5, 2.6 and 3.x

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[paulo25ci](/forum/user/47563-paulo25ci "View paulo25ci's Profile")**
- [![paulo25ci's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47563-paulo25ci "View paulo25ci's Profile")
- [ Offline](/forum/user/47563-paulo25ci)

Less More

- Posts: 20
- Thank you received: 0
-
-

9 years 8 months ago [\#262787](#262787) by [paulo25ci](/forum/user/47563-paulo25ci "View paulo25ci's Profile")  Replied by *[paulo25ci](/forum/user/47563-paulo25ci "View paulo25ci's Profile")* on topic *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#262787 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")*

Hello,

I want to categorize HikaMarket Vendors to have a menus for each vendor categories.

**Menu 1 -** Product Vendors ( This menu would display all "Product Vendors")
**Menu2 -** Service Vendors (This menu would display all "Service Vendors")

A Vendor's listing would then link to their vendor landing page and products.

**Problem :** I did not understand the explanations of this post.

**Can you please give me the full code to implement this option, as well as the file I need to modify?**

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#262795](#262795) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Categorize Vendors for frontend display?](/forum/23-market-how-to/886467-categorize-vendors-for-frontend-display#262795 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : No error  Is there a way to categorize HikaMarket Vendors, such that we can have a menu item to a category of vendors?  eg. Clothing Vendors, Music Vendors, Service Vendors, etc. A menu item would display all &quot;Clothing Vendors&quot;. A Vendor's listing would then link to their vendor landing page and products.  Possible?")*

Hi,

I'm afraid that I don't understand your request and what you want to do.

The explanations in that post already gave precise instructions on what file should be modified and what should be modified.
Now, if you have a recent version of HikaShop and HikaMarket ; these modifications would be already included.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg2NDY3LWNhdGVnb3JpemUtdmVuZG9ycy1mb3ItZnJvbnRlbmQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.132 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
