KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: jeffzzang on February 27, 2009, 07:45:57 pm

Title: Customer Search without using admin api
Post by: jeffzzang on February 27, 2009, 07:45:57 pm
I have a database of existing customers and I am storing the ID of the existing customer in the custom1 field in KonaKart's Customers table. Is there any way to query on this field using only the Server API - in other words I want to check to see if a Customer exists with Custom1 = <some id value> to determine if this customer has already been inserted into the KK database. I'd prefer not to use the Admin API unless I absolutely have to.
Title: Re: Customer Search without using admin api
Post by: kate on February 27, 2009, 08:05:38 pm
Hi,

No, that kind of functionality isn't supported in the Server API.   Actually, I don't think it's in the Admin API either in version 3.2.0.0.

However, there are techniques that you could use to extend the Server API to add this kind of functionality..  You can add your own API call that does exactly this.  See the notes, and examples, at http://www.konakart.com/docs/EngineCustomization.html#AddingANewAPICall

-- Kate