Jump to content

[SOLVED] Auto logout after purchase


Martin
 Share

Recommended Posts

im trying to make a purchase with out account and im pretty sucessfull only problem i got atm is making the shop log the customer out after the transaction is done

pretty sure its in the init.php file

if (is_numeric($cookie->id_cart))
{
$cart = new Cart(intval($cookie->id_cart));
$cart->id_lang = intval($cookie->id_lang);
if ($cart->OrderExists())
unset($cookie->id_cart, $cart);
else
{
if ($cookie->id_customer)
$cart->id_customer = intval($cookie->id_customer);
$cart->id_currency = intval($cookie->id_currency);
$cart->update();
}
}


but what code should i put ??

hope you can help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More