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

#   Vendor control panel

##

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

Less More

- Posts: 152
- Thank you received: 11
-
-

5 years 3 months ago [\#335130](#335130) by [gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")  *[Vendor control panel](/forum/19-hikamarket/903089-vendor-control-panel#335130 "-- url of the page with the problem -- :   www.hikashop.com/  -- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome  How can I add the name of the categories and the brand to each single product?  And enlarge the image?  Thanks")* was created by *[gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")*

-- url of the page with the problem -- : [ www.hikashop.com/](https://www.hikashop.com/)
-- HikaShop version -- : 4.4.3
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 3.10
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Chrome

How can I add the name of the categories and the brand to each single product?

And enlarge the image?

Thanks  [ ![Immagine.jpg](/forum/attachment/53415) ](/forum/attachment/53415 "Immagine.jpg")

- [ ![Immagine.jpg](/forum/attachment/53415) ](/forum/attachment/53415 "Immagine.jpg") [ ](/forum/attachment/53415?download=1 "Immagine.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvOTAzMDg5LXZlbmRvci1jb250cm9sLXBhbmVsP3RtcGw9bWFya2Rvd24=) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 3 months ago [\#335131](#335131) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor control panel](/forum/19-hikamarket/903089-vendor-control-panel#335131 "-- url of the page with the problem -- :   www.hikashop.com/  -- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10 -- PHP version -- : 7.4.14 -- Browser(s) name and version -- : Chrome  How can I add the name of the categories and the brand to each single product?  And enlarge the image?  Thanks")*

Hello,

To customize that view, you need to override the "productmarket / listing" view (via the HikaShop backend).

The size of the thumbnail is handled by the line Code:

$thumb = $this-&gt;imageHelper-&gt;getThumbnail(@$product-&gt;file_path, array(50,50), array('default' =&gt; 1, 'forcesize' =&gt; 1));

Displaying the brand name is possible but it requires the addition of a SQL query in order to load the brands for the products in the current listing (using the product_manufacturer_id fields and looking in the hikashop_category table).

Display the categories is the almost the same but the SQL query is bigger because it requires to perform a join of two tables (hikashop_product_category and hikashop_category).
The best is to filter the categories by not displaying the one that the vendor does not have an access (if you have a vendor root category).
To do so, you first need to retrieve the vendor root category ID : Code:

$vendorClass = hikamarket::get('class.vendor'); // $vendor_id is required. // In the productmarket listing view, you can use : $this-&gt;vendor-&gt;vendor_id $rootCategory = $vendorClass-&gt;getRootCategory($vendor_id);

Regards,

---

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

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

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