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

#   How to build a store for each vendor ?

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 9 months ago [\#226640](#226640) by [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")  *[How to build a store for each vendor ?](/forum/23-market-how-to/881586-how-to-build-a-store-for-each-vendor#226640 "-- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  i have &quot;vendor page&quot; for each vendor and a module in this page that have categories of vendors products (categories that vendor have product in it ) Now I want, when i click on a category see vendors products but i see all products in category (all vendors) , but How can i do?  Sorry if my language is not good :blush:  تشکر")* was created by *[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")*

-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.4.8

i have "vendor page" for each vendor and a module in this page that have categories of vendors products (categories that vendor have product in it )
Now I want, when i click on a category see vendors products but i see all products in category (all vendors) , but How can i do?

Sorry if my language is not good :blush:

تشکر

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgxNTg2LWhvdy10by1idWlsZC1hLXN0b3JlLWZvci1lYWNoLXZlbmRvcj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

10 years 9 months ago [\#226686](#226686) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to build a store for each vendor ?](/forum/23-market-how-to/881586-how-to-build-a-store-for-each-vendor#226686 "-- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  i have &quot;vendor page&quot; for each vendor and a module in this page that have categories of vendors products (categories that vendor have product in it ) Now I want, when i click on a category see vendors products but i see all products in category (all vendors) , but How can i do?  Sorry if my language is not good :blush:  تشکر")*

Hi,

It is not a simple question.

The vendor page allow you to display some modules.
You can display a category listing module and synchronize that module with the vendor page ; so it will only display categories where the vendor have some products.
There is also a patch (for the next release) to display the sub categories based on the current vendor root category.
[ www.hikashop.com/forum/23-market-how-to/...-in-vendor-page.html](https://www.hikashop.com/forum/23-market-how-to/881426-display-only-categories-of-vendor-in-vendor-page.html)

The category/product modules are HikaShop modules. HikaMarket is just modifying dynamically some filters in order to tweak the content.
But, the category listing module will display categories and the links for these categories will point on HikaShop pages.
There is no information in the URL to let HikaMarket create a filter and only display vendor products.

One idea would be to let that module point to a category listing menu but to add a parameter in the URL to activate an HikaShop filter.
But, unfortunately, the HikaShop filter system does not allow plugin to extend the system so for the moment HikaMarket can't create vendor filters.
If we do not use the filter system (or similar) ; the vendor information would be lost if you refresh the page or if you change the pagination. If the information is stored in the session, the customer won't be able to remove it in order to see the category with all vendors.

So, to summarize ; for the moment there is no built-in feature for that but we already have it in our TODO list for HikaMarket (and HikaShop) improvements.
I also hope that the new router system in Joomla will allow HikaMarket to generate cases which are not yet possible ; like having an URL like "/vendor-name/category-name".

Regards,

---

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

The following user(s) said Thank You: [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 9 months ago [\#226720](#226720) by [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")  Replied by *[mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")* on topic *[How to build a store for each vendor ?](/forum/23-market-how-to/881586-how-to-build-a-store-for-each-vendor#226720 "-- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  i have &quot;vendor page&quot; for each vendor and a module in this page that have categories of vendors products (categories that vendor have product in it ) Now I want, when i click on a category see vendors products but i see all products in category (all vendors) , but How can i do?  Sorry if my language is not good :blush:  تشکر")*

I created a plugin (hikavcat) that get a parameter (vendor id) of the URL and filter category and products of each vendor . but for add parameter to url i customed hikashop_contentLink() function in helper.php file .
but This file may be changed in the next update . what can i do ?
Code:

function hikashop_contentLink($link, $object, $popup = false, $redirect = false, $js = false) { //-start--------- $vid = JRequest::getInt('vid', 0); if (JRequest::getInt('view', 0) == "vendormarket") $vid = JRequest::getInt('cid', 0); if ($vid != 0) { $link.="&amp;vid=$vid"; } //-end--------- $config = hikashop_config(); . . .

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgxNTg2LWhvdy10by1idWlsZC1hLXN0b3JlLWZvci1lYWNoLXZlbmRvcj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

10 years 9 months ago [\#226743](#226743) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to build a store for each vendor ?](/forum/23-market-how-to/881586-how-to-build-a-store-for-each-vendor#226743 "-- HikaMarket version -- : 1.6.7 -- Joomla version -- : 3.4.8  i have &quot;vendor page&quot; for each vendor and a module in this page that have categories of vendors products (categories that vendor have product in it ) Now I want, when i click on a category see vendors products but i see all products in category (all vendors) , but How can i do?  Sorry if my language is not good :blush:  تشکر")*

Hi,

You can override a lot of things in HikaShop and HikaMarket but you can't override the core helper.
If you want, you can custom the views, the classes, the types, the other helpers (except the main one), the plugin views, the modules.

So I will more suggest you to customize the parts which use the function "hikashop_contentLink".
But you can't modify (redefine) that function without modifying the HikaShop main core file.

Regards,

---

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

The following user(s) said Thank You: [mrsadeqij](/forum/user/40413-mrsadeqij "View mrsadeqij's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODgxNTg2LWhvdy10by1idWlsZC1hLXN0b3JlLWZvci1lYWNoLXZlbmRvcj90bXBsPW1hcmtkb3du) 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.198 seconds

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

[](#top)
