Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have search form for entity OR can we include terms in main search form of magento #36

Open
mukundthanki opened this issue Aug 1, 2014 · 1 comment

Comments

@mukundthanki
Copy link

Hi Marius,

Recently I got requirement to have search functionality in our custom module entity. So, I suggest if we can implement search form functionality then it would be great.

Module can have separate search form OR some great opportunity to manipulate main search to look in our module tables. ( just like in admin global search )

Can we implement it ?

Thanks

@tzyganu
Copy link
Owner

tzyganu commented Aug 1, 2014

@mukundthanki Including the search of your custom entities into the main website search is kind of impossible on the ways magento is built right now. A lot has to be modified. And that is not in the scope of this extension.
But you can implement you own search just for the custom entities.
Right now the module creator does not support this. You will need to do it yourself.
I see 2 options here.

  • Create a form (with a controller and action associated to it) and just do a simple LIKE serach on the fields you want in your custom entity.
  • Create a new table that supports fulltext search and an index that will populate that table based on the entities you have. Then use that table, in a similar way as the magento product search is made. This second option requires more work but seams better.

This is a good Idea. I will investigate what needs to be done to include one of the methods above directly in the module creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants