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

CustomerMgr.populateCurrentCustomerAddresses(true) not setting all addressess

Started by GrapeApe, July 09, 2009, 02:28:59 am

Previous topic - Next topic

GrapeApe

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

GrapeApe

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