Just a question...

Problems installing or using the NOP Design Free Shopping Cart that do not fit into one of the above categories.

Moderators: Koibito, Stefko, Randy

Just a question...

Postby kepler » Sun Jan 30, 2011 8:53 pm

Hi,

I've noticed that after the checkout and the submission of the request, if we return to the shop, the items are still there. Why aren't they erased?

Kind regards,

Kepler
kepler
WebMaster
 
Posts: 2
Joined: Sun Jan 30, 2011 8:49 pm

Re: Just a question...

Postby Koibito » Mon Jan 31, 2011 2:15 pm

That's because the cookies still exist. They will disappear when you close the browser, but you could also delete them on the Thank You page.
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: Just a question...

Postby kepler » Mon Jan 31, 2011 2:46 pm

Hi,

Thank you for the reply. But how can I delete them?

Kind regards,

Kepler
kepler
WebMaster
 
Posts: 2
Joined: Sun Jan 30, 2011 8:49 pm

Re: Just a question...

Postby Koibito » Mon Jan 31, 2011 5:59 pm

The following will delete the order cookies. You have to add this code to the head (i.e. between the <head>...</head> tags) of the header file of your thank you page:

Code: Select all
    <script type="text/javascript">
    function delCookie (name) {
    var expireNow = new Date();
    document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
    }
    </script>
    <script type="text/javascript">
    window.onload=delCookie('NumberOrdered');
    </script>
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: Just a question...

Postby opa » Tue Feb 01, 2011 12:32 am

Allways forgot to tell..... :wink:

You also must the nopcart.js and languag.js on that thank you page.
Otherwise the cookie will never be deleted.
Voor hulp in de Nederlandse taal alleen voor de nopcart.js of checkout.pl
opa
WebMaster
 
Posts: 135
Joined: Tue Jan 10, 2006 4:17 pm
Location: Netherlands


Return to Help: Cart / General

Who is online

Users browsing this forum: No registered users and 1 guest

cron