1998 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Custom Fields added to Site Search
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1832 Views |
-
Custom Fields added to Site Search

10 March 2011 at 7:51am
I have the Ecommerce Module installed and working great. Client loves it!
One thing I need to figure out how to do is add custom fields the Site Search. On the Product page (CMS) I have given the client a few new fields that don't come standard with the default module. The issue is they want those to be searchable on the front end and from what I can tell the Site Search will only search the Title fields and the Content fields...not the others
Is there something I can do to get the Custom Fields added to the Site Search?
-
Re: Custom Fields added to Site Search

11 March 2011 at 9:43am
I asked the same question a while back...
http://silverstripe.org/customising-the-cms/show/14574
...but I still haven't got around to implementing Sphinx.
-
Re: Custom Fields added to Site Search

15 March 2011 at 10:51am
Yeah, I can't do the Sphinx module.
There has to be an easier way to add custom fields to the front facing search. They allow it in the CMS, and now it's easy to add regular DataObjects, but since this module is on the SiteTree and uses specific searches I can't get it to work.
-
Re: Custom Fields added to Site Search

22 June 2011 at 10:42pm
Have a look at SearchContext, not sure how it relates to the default Site Search.
http://doc.silverstripe.org/sapphire/en/reference/searchcontext
&
http://api.silverstripe.org/2.4/sapphire/search/SearchContext.htmlWith this I have managed to search all dataobjects of a certain class, through multiple fields and return a DOset of qualifying DOs, with pagination.
Don't have the code for it at the moment, but SearchContext is probably what you want to be looking at, was easy enough to edit the given example.
-
Re: Custom Fields added to Site Search

6 November 2011 at 11:58pm
Hey Terry
If you are still looking for an answer to your question then I might be able to help.
Nicolaas
-
Re: Custom Fields added to Site Search

8 November 2011 at 5:43am
Nicolaas,
I figured out a workaround, probably not the best, but something that worked and was really invisible to the Client. I'd really like to know what you have for a solution though...for future projects.
-
Re: Custom Fields added to Site Search

24 November 2011 at 9:33pm
This has been an issue for me on several sites. I have not been able to find a reasonable fix for searching custom fields. Any input would be greatly appreciated.
| 1832 Views | ||
|
Page:
1
|
Go to Top |


