Is there possible to exclude some categories from search? Or to setup only categories which should be searched?
Hello,
Yes, it can be done. But From which Search you want to exclude categories?
Any specfic module?
Best Regards,
hellorain.
Hello, i'm interested in this too but there is no answer yet.
I have the standard virtuemart search module and i need it to look in ALL categories EXCEPT the categories with ids X, Y and Z
Is this possible? How?
Thank you!
The solution i know :
- add a plugin to override product model to get declared categories to disable from plugin settings
- hack the core product model(bad solution)
- write own search module and result component(or plugin), so you can add parameters in module, in case you need to disable categories only in some cases.
Thank you for the answers. It's a very small site with no e-commerce (catalog only). Where can i hack the core? As i can see it's the fastest and easy way to achieve this. Then i will re-write the hack every virtuemart update.
Thank you!
YOu have to modify the virtuemart product model JOOMLA\administrator\components\com_virtuemart\models\product.php
and modify the sortSearchListQuery query to exclude product in categories(but only on searhc in front).
If you dont know mysql+php, it's not so easy to do.
Thank you for your answer, i can handle php/mysql, just needed to know the file to modify. Thank you!
Gianluca