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

#   EasySocial Integration

##

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

Less More

- Posts: 431
- Thank you received: 19
-
-

8 years 2 months ago [\#297603](#297603) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[EasySocial Integration](/forum/23-market-how-to/895658-easysocial-integration#297603 "I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial.")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial. Code:

&lt;?php require_once JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php'; $user = JFactory::getUser(); $db = JFactory::getDbo(); $vendorClass = hikamarket::get('class.vendor'); $vendor = $vendorClass-&gt;get($variant-&gt;product_vendor_id,'vendor'); $userid = $vendor-&gt;vendor_admin_id; $query = "SELECT &#96;user_cms_id&#96; FROM &#96;#__hikashop_user&#96; WHERE &#96;user_id&#96; = '" . $userid . "'"; $db-&gt;setQuery($query); $hika_user_id = $db-&gt;loadResult(); $es_user = ES::user($hika_user_id); ?&gt; &lt;a href="&lt;?php echo $es_user-&gt;getPermalink();?&gt;" data-popbox="module://easysocial/profile/popbox" data-popbox-position="top" data-user-id="&lt;?php echo $es_user-&gt;id;?&gt;"&gt;&lt;?php echo $es_user-&gt;getName();?&gt;&lt;/a&gt;

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

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

- **[pprle](/forum/user/11949-pprle "View pprle's Profile")**
- [![pprle's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/blue_hikashop_heart.png)](/forum/user/11949-pprle "View pprle's Profile")
- [ Offline](/forum/user/11949-pprle)

Less More

- Posts: 158
- Thank you received: 8
-
-

8 years 2 months ago [\#297609](#297609) by [pprle](/forum/user/11949-pprle "View pprle's Profile")  Replied by *[pprle](/forum/user/11949-pprle "View pprle's Profile")* on topic *[EasySocial Integration](/forum/23-market-how-to/895658-easysocial-integration#297609 "I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial.")*

Hello

Thank you for sharing this I also saw your ticket on SI website.
Where do you place this code?

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

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

Less More

- Posts: 431
- Thank you received: 19
-
-

8 years 2 months ago -  8 years 2 months ago [\#297611](#297611) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[EasySocial Integration](/forum/23-market-how-to/895658-easysocial-integration#297611 "I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial.")*

You can use it in hikashop - product/show_block_characteristic.php and replace the vendor's name with this code.
[ ![test&#95;2018-09-05.png](/forum/attachment/44786) ](/forum/attachment/44786 "...2018-09-05.png")

- [ ![test&#95;2018-09-05.png](/forum/attachment/44786) ](/forum/attachment/44786 "...2018-09-05.png") [ ](/forum/attachment/44786?download=1 "...2018-09-05.png")

Last edit: 8 years 2 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

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

- **[pprle](/forum/user/11949-pprle "View pprle's Profile")**
- [![pprle's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/blue_hikashop_heart.png)](/forum/user/11949-pprle "View pprle's Profile")
- [ Offline](/forum/user/11949-pprle)

Less More

- Posts: 158
- Thank you received: 8
-
-

8 years 2 months ago [\#297613](#297613) by [pprle](/forum/user/11949-pprle "View pprle's Profile")  Replied by *[pprle](/forum/user/11949-pprle "View pprle's Profile")* on topic *[EasySocial Integration](/forum/23-market-how-to/895658-easysocial-integration#297613 "I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial.")*

Thank you so much
I will test this when I have spare time

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODk1NjU4LWVhc3lzb2NpYWwtaW50ZWdyYXRpb24/dG1wbD1tYXJrZG93bg==) 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: 4077
-
- [](http://obsi.dev)
-

8 years 2 months ago [\#297606](#297606) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[EasySocial Integration](/forum/23-market-how-to/895658-easysocial-integration#297606 "I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial.")*

Hello,

Thanks for the share.
Please note that in the product page, you can already have the vendor details in the objects. Code:

$userClass = hikashop_get('class.user'); $vendor_user = $userClass-&gt;get($this-&gt;element-&gt;vendor-&gt;vendor_admin_id); $es_user = ES::user( (int)$vendor_user-&gt;user_cms_id );

Regards,

---

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

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

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

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

Less More

- Posts: 431
- Thank you received: 19
-
-

8 years 2 months ago [\#297632](#297632) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[EasySocial Integration](/forum/23-market-how-to/895658-easysocial-integration#297632 "I'm posting this post because it might be useful to someone. This code will associate the profiles of vendors who have created variants and will also display the profiles in EasySocial.")*

Thanks. Already working with this code Code:

&lt;?php $vendorClass = hikamarket::get('class.vendor'); $vendor_user = $vendorClass-&gt;get($variant-&gt;product_vendor_id,'vendor'); $userClass = hikashop_get('class.user'); $hika_user = $userClass-&gt;get($vendor_user-&gt;vendor_admin_id); $id = $hika_user-&gt;user_cms_id; $es_user = ES::user($id); ?&gt;

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

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