KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: David on December 19, 2007, 04:18:06 pm

Title: Search for custom field in the shop
Post by: David on December 19, 2007, 04:18:06 pm
Hi,

is there any way to search products in the shop looking for a custom field?

I saw the AdvancedSearchSubmitAction class but the SearchProductForm does not allow it

Regards

David
Title: Re: Search for custom field in the shop
Post by: julie on December 19, 2007, 05:08:13 pm
Hi David,

You can easily add attributes to the SearchProductForm since you have the source of all the Struts forms.

The main engine API supports searching by custom fields. You just have to add them to the DataDescriptor. However, integrating this into the application is tricky at the moment because AdvancedSearchSubmitAction calls the client engine searchForProducts() method where the dataDescriptor isn't supported as a parameter. We'll add this feature to the application in the next release.

Regards,

Julie