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

#   How to add/show a field on Vendor Listing Page?

##

- **[chrismos](/forum/user/36305-chrismos "View chrismos's Profile")**
- [![chrismos's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar36305.png)](/forum/user/36305-chrismos "View chrismos's Profile") Topic Author
- [ Offline](/forum/user/36305-chrismos)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 8 months ago [\#192183](#192183) by [chrismos](/forum/user/36305-chrismos "View chrismos's Profile")  *[How to add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#192183 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")* was created by *[chrismos](/forum/user/36305-chrismos "View chrismos's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29

Hi

Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.

Thanks for any help.

Cheers
Chris

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

11 years 8 months ago [\#192228](#192228) 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 add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#192228 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

Hi,

Yes you can use an existing vendor custom field.
And you can simply configure the "Display" part in order to indicate where the custom will be display (vendor page, vendor listing, etc).

Regards,

---

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

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

- **[chrismos](/forum/user/36305-chrismos "View chrismos's Profile")**
- [![chrismos's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar36305.png)](/forum/user/36305-chrismos "View chrismos's Profile") Topic Author
- [ Offline](/forum/user/36305-chrismos)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 8 months ago [\#193096](#193096) by [chrismos](/forum/user/36305-chrismos "View chrismos's Profile")  Replied by *[chrismos](/forum/user/36305-chrismos "View chrismos's Profile")* on topic *[How to add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#193096 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

Hi Jerome

Thanks again for your response. I found the existing custom field "address_city" and opened it. I tried to find the option in the "Display" part. But there is no option called Vendor listing ![:unsure:](/media/kunena/emoticons/18.png ":unsure:")

I just see:
Frontend
Vendor order display
Vendor order edition
Vendor user show
Vendor user edit

All of them are checked yes. Access rights are set to all.

On top right there is a dropdown called:
**The display is restricted for**: all (what does this mean?)

What am i doing wrong?

Cheers
Chris

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

11 years 8 months ago -  11 years 8 months ago [\#193104](#193104) 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 add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#193104 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

Hi,

That's right, sorry for the confusion.
For the vendor listing, HikaMarket is loading the custom fields which are displayed in the "fornt-end".
When you are displaying the vendors in a table, it will display the custom fields as columns.
If you are displaying the vendors in div list ; you will have to override the views in order to display the custom fields that you want to display.

Here the code used in the listing table to display all custom fields in different columns: Code:

if(!empty($this-&gt;extraFields['vendor'])) { foreach($this-&gt;extraFields['vendor'] as $fieldName =&gt; $oneExtraField) { ?&gt; &lt;td class="hikamarket_vendor_custom_&lt;?php echo $oneExtraField-&gt;field_namekey;?&gt;_row"&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField, $this-&gt;vendorFields-&gt;$fieldName); ?&gt;&lt;/td&gt; &lt;?php } }

If you want to display one single custom field, you could use: Code:

$fieldName = 'vendor_address_city'; echo $this-&gt;fieldsClass-&gt;show($this-&gt;extraFields['vendor'][$fieldName], $this-&gt;vendorFields-&gt;$fieldName);

Regards,

---

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

Last edit: 11 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 7 months ago [\#197506](#197506) by [digglescreative](/forum/user/36779-digglescreative "View digglescreative's Profile")  Replied by *[digglescreative](/forum/user/36779-digglescreative "View digglescreative's Profile")* on topic *[How to add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#197506 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

-- HikaShop Business version -- : 2.4.0
-- HikaMarket Multivendor: 1.6.2
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.38

Hello,

I am trying to do the same thing as the OP. I have created custom fields. I have chosen to display them on everything except the Back End Listing. I've attached screenshots.

The columns and column headers are displaying on the Vendors Listing page but not the values. The values display in the Back End Form.

I see the code snippet you referenced in this thread within my listingcontainer_table view file. Does the listingcontainer_table view file need to be altered?

Thank you for any help you can give.

Warren

- [ ![Screen&#95;Shot&#95;2015-04-06&#95;at&#95;2&#95;29&#95;40&#95;PM.png](/forum/attachment/23592) ](/forum/attachment/23592 "...2&#95;29&#95;40&#95;PM.png") [ ](/forum/attachment/23592?download=1 "...2&#95;29&#95;40&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-04-06&#95;at&#95;2&#95;30&#95;06&#95;PM.png](/forum/attachment/23593) ](/forum/attachment/23593 "...2&#95;30&#95;06&#95;PM.png") [ ](/forum/attachment/23593?download=1 "...2&#95;30&#95;06&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-04-06&#95;at&#95;2&#95;30&#95;52&#95;PM.png](/forum/attachment/23594) ](/forum/attachment/23594 "...2&#95;30&#95;52&#95;PM.png") [ ](/forum/attachment/23594?download=1 "...2&#95;30&#95;52&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-04-06&#95;at&#95;2&#95;39&#95;44&#95;PM.png](/forum/attachment/23595) ](/forum/attachment/23595 "...2&#95;39&#95;44&#95;PM.png") [ ](/forum/attachment/23595?download=1 "...2&#95;39&#95;44&#95;PM.png")

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

11 years 7 months ago [\#197553](#197553) 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 add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#197553 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

Hi,

Would it be possible to know which screenshot comes from where (and which data it should display) ?
I see various screenshots but I don't understand the second and the last one.

Regards,

---

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 7 months ago [\#197588](#197588) by [digglescreative](/forum/user/36779-digglescreative "View digglescreative's Profile")  Replied by *[digglescreative](/forum/user/36779-digglescreative "View digglescreative's Profile")* on topic *[How to add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#197588 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

The second one is my Vendors List. Here is the link to the page in development:
[ www.pixelmatte.com/index.php/vendors-listing](http://www.pixelmatte.com/index.php/vendors-listing)

You will see that the fields are displaying what is on the form before it is filled out. You can see it here in the last section of the vendor registration form ( vendor list page ):
[ www.pixelmatte.com/index.php/vendor-details](http://www.pixelmatte.com/index.php/vendor-details)

The last screenshot shows that the form values have been filled out and passed along to the backend in the Your Vendor form under the main information tab.

So the custom fields on the Vendors Listing page are not displaying in the table like they are in the backend form. They are either blank or the default values.

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

11 years 7 months ago [\#197592](#197592) 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 add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#197592 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

Hi,

Thanks for the details.
Can you please use the line Code:

echo $this-&gt;fieldsClass-&gt;show($oneExtraField, $this-&gt;row-&gt;$fieldName);

instead of the line Code:

echo $this-&gt;fieldsClass-&gt;show($oneExtraField, $this-&gt;vendorFields-&gt;$fieldName);

In the view ; it looks like the vendorFields variable is wrong initialized.

Regards,

---

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

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 7 months ago [\#197598](#197598) by [digglescreative](/forum/user/36779-digglescreative "View digglescreative's Profile")  Replied by *[digglescreative](/forum/user/36779-digglescreative "View digglescreative's Profile")* on topic *[How to add/show a field on Vendor Listing Page?](/forum/23-market-how-to/875251-how-to-add-show-a-field-on-vendor-listing-page#197598 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29  Hi  Im trying to add a custom Field (city) to each vendor on the vendor listing Page (front-end). Do i need to add a custom field or can i take an existing field to do so? Either way, i can't show the field on the vendor listing page. I think im close but i couldn't figure out how to show it in the front-end.  Thanks for any help.  Cheers Chris")*

Works.

Thanks!
Warren

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