ECart5 clear cart after success
The customers info is not clearing out of the cart. Is ther a way to be sure that the cart is clered out after sucess?
The customers info is not clearing out of the cart. Is ther a way to be sure that the cart is clered out after sucess?
add this code to the success page after the closing </html> tag
Sorry not really up on PHP. My was session already started ignoring start session error. Did not update and no email of order. Just for fun(agony).. I took out Initialize the session part but still got errors. I am using a template and it told me I was adding it to
</body>
<!-- InstanceEnd --></html> HERE?
Code I used
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();
// Unset all of the session variables.
$_SESSION = array();
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
@setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
@session_destroy();
@session_regenerate_id();
send a copy of the success page in a zip archive please
change line 82:
session_start();
to:
@session_start();
Warning: Cannot modify header information - headers already sent by (output started at /home/content/32/7464632/html/impressionscustomapparel/checkout_success.php:23) in /home/content/32/7464632/html/impressionscustomapparel/checkout_success.php on line 94
Got that last error message on the ISP server?
this error occurs if there is output between php tags.
the error is reporting the problem at line 23.
output started at /home/content/32/7464632/html/impressionscustomapparel/checkout_success.php:23
see this post for details on troubleshooting and fixing this error:
showthread.php?t=19285
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.