close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Quick cart does not clear content on success page

Thread began 10/09/2009 5:01 pm by Roxana | Last modified 10/09/2009 9:49 pm by Roxana | 1038 views | 3 replies |


Quick cart does not clear content on success page


I have a Quick Cart, only the number of items and the total, on every page.

When I confirm the order, the numbers of the Quick Cart don't clear on the success page. Only when I open another page the numbers clear.

Is there something I can add to the success page to clear the content of the Quick Cart?

The cart itself is cleared with this code after the closing html tag:

// Initialize the session.
// If you are using session_name("something"), don't forget it now!

// 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 (isset($_COOKIE[session_name()])) {
@setcookie(session_name(), '', time()-42000, '/');

// Finally, destroy the session.

Sign in to reply to this post

Jason ByrnesWebAssist

On the success page, you want to be able to show the cart items that where purchased along with the thank you message.

The quick cart is on the page before the code to clear the cart.

A quick cart is not necessary on the success page. It should not be included in that page.

Sign in to reply to this post


I understand.

The quick cart is part of the template, and so it is on every page. I will let my boss decide whether he can live with the quick cart not being emptied on the success page, or whether he wants the quick cart removed entirely.

Thank you Jason.

Sign in to reply to this post


I found a solution. I made the div that is holding the quick cart invisible, only on the success page.

<style type="text/css">
.quickcart {
visibility: hidden;

Sign in to reply to this post

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





Ease of use


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...