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

#   Hikashop search plugin / Fields

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 2 months ago [\#250443](#250443) by [skouf](/forum/user/7130-skouf "View skouf's Profile")  *[Hikashop search plugin / Fields](/forum/45-filters-search/886534-hikashop-search-plugin-fields#250443 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5  Hello  I am using the classic search component. I have activated the Search - Hikashop products plugin.  But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product&#95;code).  But none of them are displayed on the result page.  I've pu the ID of my menu inside the plugin configuration.  Thanks for your help !")* was created by *[skouf](/forum/user/7130-skouf "View skouf's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.5

Hello

I am using the classic search component. I have activated the Search - Hikashop products plugin.

But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product_code).

But none of them are displayed on the result page.

I've pu the ID of my menu inside the plugin configuration.

Thanks for your help !

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

10 years 2 months ago [\#250445](#250445) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop search plugin / Fields](/forum/45-filters-search/886534-hikashop-search-plugin-fields#250445 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5  Hello  I am using the classic search component. I have activated the Search - Hikashop products plugin.  But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product&#95;code).  But none of them are displayed on the result page.  I've pu the ID of my menu inside the plugin configuration.  Thanks for your help !")*

Hi,

The goal of selecting the fields in the settings of the plugin is that the plugin will search in those fields.
However, the display of the results is fixed. There is no option to change it.
To change it, you would have to modify the code: Code:

$row-&gt;title=$row-&gt;product_name; $row-&gt;text=$row-&gt;product_description;

in the file plugins/search/hikashop_products/hikashop_products.php

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

10 years 1 month ago [\#250511](#250511) by [skouf](/forum/user/7130-skouf "View skouf's Profile")  Replied by *[skouf](/forum/user/7130-skouf "View skouf's Profile")* on topic *[Hikashop search plugin / Fields](/forum/45-filters-search/886534-hikashop-search-plugin-fields#250511 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5  Hello  I am using the classic search component. I have activated the Search - Hikashop products plugin.  But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product&#95;code).  But none of them are displayed on the result page.  I've pu the ID of my menu inside the plugin configuration.  Thanks for your help !")*

Thanks

But it's not working for the moment but maybe I forgot something.

In the Fields field of the Search - Hikashop plugin, I have put : product_name,product_description,cahier_annee,product_code

In the file plugins/search/hikashop_products/hikashop_products.php, I have this :

$row-&gt;title=$row-&gt;product_name;
$row-&gt;text=$row-&gt;product_description;
$row-&gt;code=$row-&gt;product_code;
$row-&gt;annee=$row-&gt;cahier_annee;

When I do a var_dump inside /components/com_search/views/search/tmpl/default_results.php, I get :

["code"]=&gt; NULL ["annee"]=&gt; NULL

What am I doing wrong ?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

10 years 1 month ago [\#250552](#250552) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop search plugin / Fields](/forum/45-filters-search/886534-hikashop-search-plugin-fields#250552 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5  Hello  I am using the classic search component. I have activated the Search - Hikashop products plugin.  But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product&#95;code).  But none of them are displayed on the result page.  I've pu the ID of my menu inside the plugin configuration.  Thanks for your help !")*

Hi,

You can't do that. The Joomla search only supports title and text.
If you want another information, I would recommend to append it to the text or title variable.
So something like that for example:
$row-&gt;text=$row-&gt;product_description.'&lt;br/&gt;Code: '.$row-&gt;product_code;

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

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

Less More

- Posts: 846
- Thank you received: 92
-
-

10 years 1 month ago [\#250614](#250614) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[Hikashop search plugin / Fields](/forum/45-filters-search/886534-hikashop-search-plugin-fields#250614 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5  Hello  I am using the classic search component. I have activated the Search - Hikashop products plugin.  But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product&#95;code).  But none of them are displayed on the result page.  I've pu the ID of my menu inside the plugin configuration.  Thanks for your help !")*

Hi
Does hikashop provide it own extension to be able to process index (which fields) and search ?
Regard's

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

10 years 1 month ago [\#250647](#250647) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop search plugin / Fields](/forum/45-filters-search/886534-hikashop-search-plugin-fields#250647 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.5  Hello  I am using the classic search component. I have activated the Search - Hikashop products plugin.  But I want more fields than the title and the description. So I select many other fields (personnalized fields, or a field like product&#95;code).  But none of them are displayed on the result page.  I've pu the ID of my menu inside the plugin configuration.  Thanks for your help !")*

Hi,

Yes. You can use the filter system of HikaShop Business:
[ www.hikashop.com/support/documentation/1...-filter-listing.html](https://www.hikashop.com/support/documentation/100-hikashop-filter-listing.html)
It can be configured to be used as a search module with an input field like the joomla search module, but instead, it would display the results as a standard HikaShop products listing, so you can easily add custom fields display there with the display settings of the custom fields.

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

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

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