Martin Posted February 16, 2010 Share Posted February 16, 2010 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 donepretty sure its in the init.php fileif (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 Link to comment Share on other sites More sharing options...
Martin Posted February 16, 2010 Author Share Posted February 16, 2010 impretty sure i fixet it for those that are intrested then its init.php and change line 57 from unset($cookie->id_cart, $cart));to$cookie->logout(); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now