KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: GrapeApe on July 09, 2009, 02:28:59 am

Title: CustomerMgr.populateCurrentCustomerAddresses(true) not setting all addressess
Post by: GrapeApe on July 09, 2009, 02:28:59 am
Hello all,

I'm making a call to CustomerMgr.populateCustomerMgr and it doesn't seem to populate all the addresses associated with that customer.  When I look at the address_book table, I see a bunch of addresses associated with that user (including the default).  The customer's "customers_id" appears in the table several times with several address_book_id's, but these other addresses are not being populated in the "populateCurrentCustomerAddresses(true)" call (outside of the default).

Any obvious reasons this might be true?

Thanks,
- Purple Hairball
Title: Re: CustomerMgr.populateCurrentCustomerAddresses(true) not setting all addressess
Post by: GrapeApe on July 09, 2009, 02:45:35 am
Found the answer and tossing it in here for future generations of KonaKart users  The countryId property of the AddressIf MUST be set.  The CustomerMgr.addAddressToCustomer call lets you save an AddressIf without setting this, but the populateCurrentCustomerAddresses will not pull it back without the countryId.

- Debugging Gorilla