Jump to content

[SOLVED] Auto logout after purchase


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);
if ($cookie->id_customer)
$cart->id_customer = intval($cookie->id_customer);
$cart->id_currency = intval($cookie->id_currency);

but what code should i put ??

hope you can help

Link to comment
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
  • Create New...