Is there a way to setup default front end search to search for only in "product title only + all of these words"
Is there a way to setup default front end search to search for only in "product title only + all of these words"
Great! Thanks a lot, did not found this addon in marketplace yesterday.
You can open the app/controllers/frontend/products.php file, find the 'if ($mode == 'search') and replace the following line:
$params['extend'] = array('description');
with the following lines:
$params['pshort'] = 'N'; $params['pfull'] = 'N'; $params['pname'] = 'Y'; $params['pkeywords'] = 'N'; $params['custom_extend'] = array(); $params['match'] = 'all';
Great! Thanks a lot, did not found this addon in marketplace yesterday.
If you face any problem with the module, please let me know
Hello eComLabs,
Is this mod still available. The link sent me to home page where I was unable to find the mod. Also, is it compatible with 3X? This mod would solve some issues for me. Thanks!!
Hello eComLabs,
Is this mod still available. The link sent me to home page where I was unable to find the mod. Also, is it compatible with 3X? This mod would solve some issues for me. Thanks!!
The link should work now. I am sorry for the inconveniences.
Unfortunately, the module is available for 4.x versions only
You can open the app/controllers/frontend/products.php file, find the 'if ($mode == 'search') and replace the following line:
$params['extend'] = array('description');with the following lines:
$params['pshort'] = 'N'; $params['pfull'] = 'N'; $params['pname'] = 'Y'; $params['pkeywords'] = 'N'; $params['custom_extend'] = array(); $params['match'] = 'all';
Hi Simtech. I gave this a try but it didn't work - it showed a page titled "Service Unavailable". I'm using 4.3.4 - do I need to do something different for my version?
Thanks,
Jason
Hi Simtech. I gave this a try but it didn't work - it showed a page titled "Service Unavailable". I'm using 4.3.4 - do I need to do something different for my version?
Jason, please do not remove the mentioned line of code. Just add required code under this line.
Instead of modifying the core code in the products.php controller use the template hook that's provided for adding / overriding search parameters and you won't lose your changes when upgrading.
Add file design/themes/yourtheme/templates/addons/my_changes/hooks/search/additional_fields.post.tpl:
Clear cache and you should be good to go. Looks like the same hook is there in 3.x, just use the appropriate 3.x my_changes hook folder.
Instead of modifying the core code in the products.php controller use the template hook that's provided for adding / overriding search parameters and you won't lose your changes when upgrading.
Add file design/themes/yourtheme/templates/addons/my_changes/hooks/search/additional_fields.post.tpl:
Clear cache and you should be good to go. Looks like the same hook is there in 3.x, just use the appropriate 3.x my_changes hook folder.
This is way is used in our free module from post #2. Also it allows you to configure the search at any time. Feel free to use it
Instead of modifying the core code in the products.php controller use the template hook that's provided for adding / overriding search parameters and you won't lose your changes when upgrading.
Add file design/themes/yourtheme/templates/addons/my_changes/hooks/search/additional_fields.post.tpl:
Clear cache and you should be good to go. Looks like the same hook is there in 3.x, just use the appropriate 3.x my_changes hook folder.
This did the trick - thank you very much!
This is way is used in our free module from post #2. Also it allows you to configure the search at any time. Feel free to use it
Your addon looks great - I especially like the ability to see what the customer is searching for. But, unfortunately, it isn't currently compatible with 4.3x :). Do you have any plans to update it?
Your addon looks great - I especially like the ability to see what the customer is searching for. But, unfortunately, it isn't currently compatible with 4.3x :). Do you have any plans to update it?
Why do you think so? We have a lot of purchases for 4.3.x versions and did not receive any complaints. If something does not work correctly on your opinion, feel free to contact us so that we can examine and fix the issue asap.
Ok, great to know, thanks. I thought it wasn't compatible because it just says up to 4.2.x on your product page.
Ok, great to know, thanks. I thought it wasn't compatible because it just says up to 4.2.x on your product page.
Oh, you are right. We have corrected the information. Thank you
Great - thanks!