Author Topic: Using getTempCustomerId()  (Read 404 times)

michaelwechner

  • Sr. Member
  • ****
  • Posts: 110
    • View Profile
Using getTempCustomerId()
« on: July 12, 2010, 06:35:09 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
Re: Using getTempCustomerId()
« Reply #1 on: July 12, 2010, 07:54:56 AM »
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

  • Sr. Member
  • ****
  • Posts: 110
    • View Profile
Re: Using getTempCustomerId()
« Reply #2 on: July 12, 2010, 08:17:15 AM »
Thanks for the quick confirmation

Michael