KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: michaelwechner on July 12, 2010, 12:35:09 pm

Title: Using getTempCustomerId()
Post by: michaelwechner on July 12, 2010, 12:35:09 pm
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
Title: Re: Using getTempCustomerId()
Post by: trevor on July 12, 2010, 01:54:56 pm
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.
Title: Re: Using getTempCustomerId()
Post by: michaelwechner on July 12, 2010, 02:17:15 pm
Thanks for the quick confirmation

Michael