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

#   Allow visitor to contact seller &amp; other links...

##

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

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 8 months ago [\#148273](#148273) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  *[Allow visitor to contact seller &amp; other links...](/forum/23-market-how-to/866651-allow-visitor-to-contact-seller-other-links#148273 "Hi, Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.  I have alot of it there already:   www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html  however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?  Thanks")* was created by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")*

Hi,
Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.

I have alot of it there already: [ www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html](http://www.warestreetmarket.com/newsite/Artist/vendor/show/2-alex-dibben.html) however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?

Thanks

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

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

12 years 8 months ago [\#148292](#148292) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Allow visitor to contact seller &amp; other links...](/forum/23-market-how-to/866651-allow-visitor-to-contact-seller-other-links#148292 "Hi, Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.  I have alot of it there already:   www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html  however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?  Thanks")*

Hi,

HikaMarket have an integration with the HikaShop product contact page.
It doesn't embed a vendor contact page and I think it will be better to use the product contact page to create a vendor contact page. (And now the product contact page can be put as a popup and not a separated page).
I am not sure that adding a special vendor contact page will be useful, because it will just be a copy of the product contact page.

For the other fields, the best way for you will be to create some custom fields for the missing elements and then, create a view override for the vendor page (vendormarket &#124; showcontainer_default).
At this moment you will be able to put the content you want, to display the element you want, etc.

Regards,

---

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

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

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

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 8 months ago -  12 years 8 months ago [\#148502](#148502) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Allow visitor to contact seller &amp; other links...](/forum/23-market-how-to/866651-allow-visitor-to-contact-seller-other-links#148502 "Hi, Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.  I have alot of it there already:   www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html  however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?  Thanks")*

Thanks, I tried to add this to the vendor default page to create the contact the seller link however it didn't show i think this may be because it is not on the product page therefore it doesn't know the contact it should make. Code:

&lt;div id="hikashop_product_contact_main" class="hikashop_product_contact_main"&gt; &lt;?php $contact = $this-&gt;config-&gt;get('product_contact',0); if (hikashop_level(1) &amp;&amp; ($contact == 2 &#124;&#124; ($contact == 1 &amp;&amp; !empty ($this-&gt;element-&gt;product_contact)))) { $empty = ''; $params = new HikaParameter($empty); global $Itemid; $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } echo $this-&gt;cart-&gt;displayButton(JText :: _('CONTACT_US_FOR_INFO'), 'contact_us', $params, hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;element-&gt;product_id.$url_itemid), 'window.location=\'' . hikashop_completeLink('product&amp;task=contact&amp;cid=' . $this-&gt;element-&gt;product_id.$url_itemid) . '\';return false;'); } ?&gt; &lt;/div&gt;

Is there a way also for me to remove the 'btn button hikashop_cart_input_button' on the product page? I cannot see any reference to it in the above code however i would like to style it slightly differently to the other buttons on the site.

Thanks

Alex

Last edit: 12 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !!

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

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

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 8 months ago [\#148533](#148533) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Allow visitor to contact seller &amp; other links...](/forum/23-market-how-to/866651-allow-visitor-to-contact-seller-other-links#148533 "Hi, Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.  I have alot of it there already:   www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html  however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?  Thanks")*

Hi Jerome,

Is there a way for me to manually pull the content through from the vendor fields rather than the default display? I added the terms and conditions using the code you supplied and this works really well. I would like to do a similar thing but with delivery and contact information. However when i add those extra fields it displays it in a completely different format, what i would like to do is just request it manually and add it into my nice accordion for displaying that information...

[ www.warestreetmarket.com/newsite/Artist/...5-victoria-penn.html](http://www.warestreetmarket.com/newsite/Artist/vendor/show/5-victoria-penn.html)

Could i use some code like this:

&lt;div id="hikamarket_vendor_terms" class="hikamarket_vendor_terms"&gt;&lt;?php
echo $this-&gt;vendor-&gt;vendor_terms;
// echo JHTML::_('content.prepare', $this-&gt;vendor-&gt;vendor_terms);
?&gt;&lt;/div&gt;

But for a custom vendor field instead?

Thanks

Alex

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

12 years 8 months ago [\#148548](#148548) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Allow visitor to contact seller &amp; other links...](/forum/23-market-how-to/866651-allow-visitor-to-contact-seller-other-links#148548 "Hi, Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.  I have alot of it there already:   www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html  however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?  Thanks")*

Hi,

You have to remove the option "vendor page" to the vendor custom fields that you don't want to display in the vendor page (with the other custom fields).
But you will still have the content of the custom field in the vendor object. So you can manually display the custom field content in the vendor page using some PHP code.

About the contact page, HikaShop require a product to work properly and because you are in the vendor page, you do not send a product_id to the HikaShop contact page.
That's why some little modifications in HikaShop could be required to do it correctly.

Hope my explanations are clear enough.

Regards,

---

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

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

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

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 8 months ago [\#148560](#148560) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Allow visitor to contact seller &amp; other links...](/forum/23-market-how-to/866651-allow-visitor-to-contact-seller-other-links#148560 "Hi, Sorry for so many questions! I have a few custom fields to add, however my client would like visitor to be able to contact a vendor. I know we already have their email in the backend, i would like to display this in the front end so the people visiting can email the seller.  I have alot of it there already:   www.warestreetmarket.com/newsite/Artist/...w/2-alex-dibben.html  however i need to add a blue block with links to the sellers products, delivery information, returns information, terms and conditions, and then a contact link. Do you know the best way i could / should approach this?  Thanks")*

Ok that was easy i just used same php code before and tweaked to match the field column name and it worked.

&lt;div id="hikamarket_vendor_delivery" class="hikamarket_vendor_delivery"&gt;&lt;?php
echo $this-&gt;vendor-&gt;vendordeliveryinformation;
// echo JHTML::_('content.prepare', $this-&gt;vendor-&gt;vendordeliveryinformation);
?&gt;&lt;/div&gt;

So for contact for now what i will probably do is just create it as an empty text space for them to complete.

Thanks

Alex

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

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