Update cookies preferences

Did you mean? Search suggestions in Magento

By default, Magento doesn’t offer much to the user if they misspell words. As a simple fix for this you can use the PHP functions pspell to highlight to the users any basic misspellings for their search word.

Replace the following html in /template/catalogsearch/result.phtml

 

Did you mean?

 <a href="/catalogsearch/result/?q=<?php echo $poss[$i];?>"> , </a>

This is probably one of the quickest and most basic solution to this problem. I’ll be investigating better solutions shortly.

You may find that the psell library isn’t compiled along with your PHP extensions. If you’ve got the required permissions then the installation is fairly simple

Then restart apache

If you enjoyed this article, read the other Blogs from our Magento development agency or browse the site to see what else we do with Adobe Commerce, Magento audits and more.

Want to learn more about our services or speak to us about a project?


Luke

Luke Collymore
Director and Solution Specialist

Develo is a leading Magento agency and eCommerce web development company based in Birmingham, in the UK, serving clients globally since 2010. Our Blog covers topics around the array of services we offer including Magento web development, Hyvä themes development, Adobe Commerce, PunchOut catalogues, ERP integrations and much more. To speak to a friendly member of the team about your next project, contact us here.


...
Luke

share:

Ready to start your next project?

See how we can help you accelerate your business