KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: ronald on June 30, 2008, 02:12:23 am

Title: registerCustomer and zone
Post by: ronald on June 30, 2008, 02:12:23 am
hi,

I am trying to register a customer using the KKeng registerCustomer function. I create a new com.konakart.app.CustomerRegistration object and fill in pretty much all the fields (except those custom fields which I don't need). And when I make the call:

kkEng.registerCustomer(customerRegistration);

I get an exception complain zone is null:

com.konakart.app.KKException: com.konakart.app.KKInvalidZoneException: The zone null is invalid for a country with id = 223

However, the CustomerRegistration class doesn't have zone attribute, so how can I provide that??

thx!

Ronald
Title: Re: registerCustomer and zone
Post by: ming on June 30, 2008, 05:52:59 am
You need to set a valid State in the CustomerRegistration object.

Your database has zones defined for country 223 and you must define the state/zone to use within that country.