close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ECart5 clear cart after success

Thread began 5/18/2012 5:29 pm by sjuno299871 | Last modified 5/22/2012 11:11 am by Jason Byrnes | 906 views | 9 replies |

sjuno299871

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?

Sign in to reply to this post

Jason ByrnesWebAssist

add this code to the success page after the closing </html> tag

Sign in to reply to this post

sjuno299871

code?

No code here

Sign in to reply to this post

sjuno299871

I found this code used it on checkout 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();

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the success page in a zip archive please

Sign in to reply to this post

sjuno299871

zippy

Here is the file is it the params?

Attached Files
checkout_success.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 82:

php:
session_start();




to:

php:
@session_start();
Sign in to reply to this post

sjuno299871

Then I got this?

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

Sign in to reply to this post

sjuno299871

Worked on my workstation

Got that last error message on the ISP server?

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...