- Posts: 99
- Thank you received: 2
Search shows full description of products
-- Joomla version -- : 3.3.3
-- Error-message(debug-mod must be tuned on) -- : no error
The joomla search lists the products showing the full description instead of products name,
how to set this ?
In the plugin setup I've set fields=product_name
Please Log in or Create an account to join the conversation.
The results should display the product name and the description.
What you have set up is the parameter on which the search must be, in your case it search only in the product names.
This doesn't affect the results. To change the way the results are displayed it will require to edit the hikashop product search plugin or the Joomla search view.
Please Log in or Create an account to join the conversation.
Specific, this field is a custom field we added in the #__hikashop_product table via the ui, it is called `product_characteristics` ...
I've seen now in the db that there is a table called #__hikashop_characteristic and that the plugin call this query:
Could it be the cause of the problem ?
Please Log in or Create an account to join the conversation.
It looks like a search results page customization issue.
Check the templates/YOUR_TEMPLATE/html/com_search folder on your website. If you have it try to rename it and see if that helps.
If not, could you provide a link to the results page so that we can see the problem ?
Please Log in or Create an account to join the conversation.
thank you again for the suggestion, I've found and override for com_search and removed it but it doesn't fix it ...
I'm writing a pvt message to let you take a look at the page on my server ...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Are you using the same template for the different languages ?
The characteristics products don't have description, etc by default so it takes the parent product content. You potentially have to do the changes for the parent product data in the view.
It can maybe be FaLang as the issue you had here:
www.hikashop.com/forum/2-general-talk-ab...html?start=20#156891
Please Log in or Create an account to join the conversation.
I also think about FaLang but don't know what to investigate to find the solution (no free support is given by FaLang team ...).
I don't have parent products, the catalog has a tree of categories but no relations are created on products.
Please Log in or Create an account to join the conversation.
Looking at the code of the HikaShop product search plugin, I see something which can be the cause of your trouble.
So it could be a good solution to :
- if the trouble comes from this last "else"
- know what could be the "reference_field" value
- comment the line which set the product_name
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
I would have to create an override of this plugin to avoid overwrite on update,
could you please suggest how, I'm not use on overriding plugins ...
Please Log in or Create an account to join the conversation.
What can be done is to duplicate the plugin, change it's name, and change it too in the php and xml files.
Then install it via the Joomla extensions installer, this way you will have you own plugin and it will not be overrided.
You can disable ours after having enabled the one you duplicate.
Please Log in or Create an account to join the conversation.