items are not passed from cart to checkout

Get help with nopcart Perl, PHP or ASP checkout related issues.

Moderators: Koibito, Stefko, Randy

Postby Uniformality » Tue Jan 02, 2007 5:08 pm

Thanks for the information Koibito

everthind now works with the cart and the return page Except the 'clear cart' script on the return.html page :( :(

would all the modifications above mean that the cookies would not get deleted?

the clear cokkies script is
<SCRIPT type="text/javascript" language="JavaScript">
//------------------------------------------------------------------||
// NOP Design JavaScript Shopping Cart ||
// ||
// For more information on SmartSystems, or how NOPDesign can help you||
// Please visit us on the WWW at http://www.nopdesign.com ||
// ||
// FUNCTION: DeleteCookie ||
// PARAMETERS: Cookie name, path, domain ||
// RETURNS: null ||
// PURPOSE: Removes a cookie from users browser. ||
//------------------------------------------------------------------||
function DeleteCookie (name,path,domain) {
if ( GetCookie(name) ) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}

//---------------------------------------------------------------------||
</SCRIPT>


Thanks again for all the effort from the whole support team

Regards

Paul
Uniformality
WebMaster
 
Posts: 15
Joined: Thu Oct 26, 2006 8:22 am

Postby Koibito » Tue Jan 02, 2007 5:25 pm

I am using this to get rid of the cookies:

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>
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Postby Uniformality » Wed Jan 03, 2007 12:16 pm

I tried both methods and neither clear the cart.
i dont know if it will be possible to ever clear it as the cookies are now copied to a diferant domain .

Any help or advice is welcomed

Regards

Paul
Uniformality
WebMaster
 
Posts: 15
Joined: Thu Oct 26, 2006 8:22 am

Postby Stefko » Wed Jan 03, 2007 11:49 pm

You will only need to delete the cookies on the site with the managecart page, the secure sites cookies will be overwritten each time a user goes from managecart to checkout!

Your return page is where you want to delete the cookies!
Last edited by Stefko on Wed Jan 03, 2007 11:55 pm, edited 1 time in total.
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Postby Stefko » Wed Jan 03, 2007 11:53 pm

After reviewing your page i see the problem, you have the function in place but you are not calling the js function!!
KFL Technologies
Web-Enabled Solutions
e-Commerence Solutions
Stefko
Contributor / Guru
 
Posts: 833
Joined: Wed Sep 18, 2002 1:11 am
Location: Wichita, KS

Previous

Return to Help: Perl/PHP/ASP Checkout

Who is online

Users browsing this forum: No registered users and 0 guests

cron