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

#   How to show vendor address on product page

##

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

Less More

- Posts: 11
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#155168](#155168) by [apatiu](/forum/user/32494-apatiu "View apatiu's Profile")  *[\[Solved\]How to show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#155168 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")* was created by *[apatiu](/forum/user/32494-apatiu "View apatiu's Profile")*

I'm see "Sold by ......"

and i'm need to show vendor address and phone number.

What's view I'm need to edit.

Thanks

Last edit: 12 years 5 months ago by [apatiu](/forum/user/32494-apatiu "View apatiu's Profile").

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

12 years 5 months ago [\#155173](#155173) 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 show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#155173 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

Hi,

First, you will have to edit the HikaMarket class product file ( administrator/components/com_hikamarket/classes/product.php ) and replace : Code:

if(isset($row-&gt;product_vendor_id) &amp;&amp; !$hide_sold_by) { $id = (int)$row-&gt;product_vendor_id; if($id &lt;= 1) $id = 1; if(!empty($vendors[$id]-&gt;vendor_name)) { if(!isset($row-&gt;extraData)) $row-&gt;extraData = new stdClass();

By: Code:

if(isset($row-&gt;product_vendor_id)) { $id = (int)$row-&gt;product_vendor_id; if($id &lt;= 1) $id = 1; $row-&gt;vendor = null; if(isset($vendors[$id])) $row-&gt;vendor =&amp; $vendors[$id]; if(!$hide_sold_by &amp;&amp; !empty($vendors[$id]-&gt;vendor_name)) { if(!isset($row-&gt;extraData)) $row-&gt;extraData = new stdClass();

It will allow you to access to the vendor object in the HikaShop product listing view.
(This patch will be included in HikaMarket 1.4.1).

HikaMarket uses the "extraData" to add his HTML content which will be displayed in the view afterwards.

If you are looking at the content of the "hikashop &#124; front-end &#124; your_template &#124; product &#124; listing_img_title" view, you will see Code:

&lt;?php if(!empty($this-&gt;row-&gt;extraData-&gt;afterProductName)) { echo implode("\r\n",$this-&gt;row-&gt;extraData-&gt;afterProductName); } ?&gt;

HikaMarket put the "Sold by..." in this specific "slot" of the extraData.
With the patch, you will also have access to the "$this-&gt;row-&gt;vendor" and all of his content.
So you will be able to put this code below: Code:

if(!empty($this-&gt;row-&gt;vendor)) { echo '&lt;p&gt;'.$this-&gt;row-&gt;vendor-&gt;vendor_address_telephone.'&lt;/p&gt;'; }

To display the vendor phone number.

Regards,

---

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

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

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

12 years 5 months ago [\#155241](#155241) by [apatiu](/forum/user/32494-apatiu "View apatiu's Profile")  Replied by *[apatiu](/forum/user/32494-apatiu "View apatiu's Profile")* on topic *[How to show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#155241 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

hi. thanks for your help.

it'working on list_img_title now, But not with show_default .

i'm put this under
Code:

&lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;topEnd)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;topEnd); } ?&gt;

is not show any thing. What I missing?

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

12 years 5 months ago [\#155242](#155242) by [apatiu](/forum/user/32494-apatiu "View apatiu's Profile")  Replied by *[apatiu](/forum/user/32494-apatiu "View apatiu's Profile")* on topic *[How to show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#155242 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

I'm try to Code:

echo var_dump($this-&gt;row);

is not have vendor class like $this-&gt;row on list_img_title page

Why? I'm thing it's should be use from the same product class ( administrator/components/com_hikamarket/classes/product.php ) right?

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

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

Less More

- Posts: 11
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#155247](#155247) by [apatiu](/forum/user/32494-apatiu "View apatiu's Profile")  Replied by *[apatiu](/forum/user/32494-apatiu "View apatiu's Profile")* on topic *[How to show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#155247 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

Hi. I'm sloved.

replace this Code:

$slot = 0; if($show_sold_by &amp;&amp; ($vendor-&gt;vendor_id &gt; 1 &#124;&#124; $show_sold_by_me)) { $vendorLink = '&lt;a href="'.hikamarket::completeLink('vendor&amp;task=show&amp;cid=' . $vendor-&gt;vendor_id . '&amp;name=' . $vendor-&gt;alias . $url_itemid).'"&gt;' . $vendor-&gt;vendor_name . '&lt;/a&gt;'; $view-&gt;element-&gt;extraData-&gt;topEnd[$slot] = '&lt;span class="hikamarket_vendor"&gt;'.JText::sprintf('SOLD_BY_VENDOR', $vendorLink).'&lt;/span&gt;'; }

by this Code:

$slot = 0; if($show_sold_by &amp;&amp; ($vendor-&gt;vendor_id &gt; 1 &#124;&#124; $show_sold_by_me)) { $vendorLink = '&lt;a href="'.hikamarket::completeLink('vendor&amp;task=show&amp;cid=' . $vendor-&gt;vendor_id . '&amp;name=' . $vendor-&gt;alias . $url_itemid).'"&gt;' . $vendor-&gt;vendor_name . '&lt;/a&gt;'; $view-&gt;element-&gt;extraData-&gt;topEnd[$slot] = '&lt;span class="hikamarket_vendor"&gt;'.JText::sprintf('SOLD_BY_VENDOR', $vendorLink).'&lt;/span&gt;'; $view-&gt;element-&gt;vendor = $vendor; }

it's have $this-&gt;element-&gt;vendor in show_default

Thanks you

Last edit: 12 years 5 months ago by [apatiu](/forum/user/32494-apatiu "View apatiu's Profile").

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

12 years 5 months ago [\#155268](#155268) 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 show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#155268 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

Hi,

You patch is a possibility but I won't put it in the same place because you are in a condition with the "show sold by".
In the product page, it is quite much easy to load the vendor manually. Code:

if($this-&gt;element-&gt;product_vendor_id &gt; 1) { $vendorClass = hikamarket::get('class.vendor'); $vendor = $vendorClass-&gt;get($this-&gt;element-&gt;product_vendor_id); }

Regards,

---

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

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

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

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

Less More

- Posts: 424
- Thank you received: 11
-
-

5 years 4 months ago [\#333610](#333610) by [BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")  Replied by *[BluepointWebdesign](/forum/user/34929-bluepointwebdesign "View BluepointWebdesign's Profile")* on topic *[How to show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#333610 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

Hi,
I know this is an old topic.
But here the only thing is that the vendor name adress telephone number is on the product_listing_table or product_listing_img.
But what i would like is to have a button next to the filter see screenshot to open the information as adress phonenumber name etc. to be shown in a pop up. So it is directly after pushing the button visible publicly in a pop up screen. How can i accomplish that??
[ ![screenshot-06.bluepoint-concept.nl-2021.06.17-18&#95;15&#95;57.png](/forum/attachment/53027) ](/forum/attachment/53027 "...7-18&#95;15&#95;57.png")

I would like this button which allready opens up in pop up with hika pop helper. To open the name, adress, telephone number of the vendor of this listing. How can i trigger this??

&lt;?php
$popupHelper = hikashop_get('helper.popup');
echo ' '.$popupHelper-&gt;display(
'&lt;i class="hikabtn" style="background: transparent; border-color: #3182CE;" &gt;&lt;img src="/images//Plusje.png"/&gt;&lt;/i&gt;',
'HIKASHOP_EDIT_CART_PRODUCT',
$link = hikamarket::completeLink('vendor&amp;task=show&amp;cid'.$this-&gt;row-&gt;vendor_id.'&amp;name='.$this-&gt;row-&gt;alias . $this-&gt;menu_id),
'edit_cart_product',
600, 600, 'title="'.JText::_('CHOOSE_OPTIONS').'"', '', 'link'
);

?&gt;

I now have this but then it states vendor does not exists.

Hope you can help, that would be gratefull! ![:)](/media/kunena/emoticons/8.png ":)")

- [ ![screenshot-06.bluepoint-concept.nl-2021.06.17-18&#95;15&#95;57.png](/forum/attachment/53027) ](/forum/attachment/53027 "...7-18&#95;15&#95;57.png") [ ](/forum/attachment/53027?download=1 "...7-18&#95;15&#95;57.png")

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

5 years 4 months ago [\#333612](#333612) 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 show vendor address on product page](/forum/19-hikamarket/868025-how-to-show-vendor-address-on-product-page#333612 "I'm see &quot;Sold by ......&quot;  and i'm need to show vendor address and phone number.  What's view I'm need to edit.  Thanks")*

Please open a new thread.

---

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

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

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

[](#top)
