• Welcome to KonaKart Community Forum. Please login or sign up.
 

registerCustomer and zone

Started by ronald, June 30, 2008, 02:12:23 am

Previous topic - Next topic

ronald

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

ming

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.