- Posts: 15
- Thank you received: 0
Hikashop search plugin / Fields
10 years 2 months ago #250443
by skouf
Hikashop search plugin / Fields was created by skouf
-- 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 !
-- 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 or Create an account to join the conversation.
10 years 2 months ago #250445
by nicolas
Replied by nicolas on topic Hikashop search plugin / Fields
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:
in the file plugins/search/hikashop_products/hikashop_products.php
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->title=$row->product_name;
$row->text=$row->product_description;
Please Log in or Create an account to join the conversation.
10 years 1 month ago #250511
by skouf
Replied by skouf on topic Hikashop search plugin / Fields
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->title=$row->product_name;
$row->text=$row->product_description;
$row->code=$row->product_code;
$row->annee=$row->cahier_annee;
When I do a var_dump inside /components/com_search/views/search/tmpl/default_results.php, I get :
["code"]=> NULL ["annee"]=> NULL
What am I doing wrong ?
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->title=$row->product_name;
$row->text=$row->product_description;
$row->code=$row->product_code;
$row->annee=$row->cahier_annee;
When I do a var_dump inside /components/com_search/views/search/tmpl/default_results.php, I get :
["code"]=> NULL ["annee"]=> NULL
What am I doing wrong ?
Please Log in or Create an account to join the conversation.
10 years 1 month ago #250552
by nicolas
Replied by nicolas on topic Hikashop search plugin / Fields
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->text=$row->product_description.'<br/>Code: '.$row->product_code;
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->text=$row->product_description.'<br/>Code: '.$row->product_code;
Please Log in or Create an account to join the conversation.
10 years 1 month ago #250614
by lionel75
Replied by lionel75 on topic Hikashop search plugin / Fields
Hi
Does hikashop provide it own extension to be able to process index (which fields) and search ?
Regard's
Does hikashop provide it own extension to be able to process index (which fields) and search ?
Regard's
Please Log in or Create an account to join the conversation.
10 years 1 month ago #250647
by nicolas
Replied by nicolas on topic Hikashop search plugin / Fields
Hi,
Yes. You can use the filter system of HikaShop Business:
www.hikashop.com/support/documentation/1...-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.
Yes. You can use the filter system of HikaShop Business:
www.hikashop.com/support/documentation/1...-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 or Create an account to join the conversation.
Time to create page: 0.067 seconds