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

Using getTempCustomerId()

Started by michaelwechner, July 12, 2010, 12:35:09 pm

Previous topic - Next topic

michaelwechner

Hi

Just to make sure I understand correctly the usage of "getTempCustomerId():

I integrate KonaKart via SOAP into our CMS solution which has its own http session handling, which means
in order to allow an anonymous user to add products/items to the shopping cart one can use getTempCustomerId()
in order to create a unique (negative) customer ID, add this number to the CMS session and use it for further reference as long as the CMS session exists. Is this the correct usage? Or does anyone recommend another approach?

Thanks

Michael

trevor

The negative id is normally saved in a cookie (in our standard store front app) so that a returning temporary customer has a persisted cart as well as default language even if he never registered.

michaelwechner

Thanks for the quick confirmation

Michael