osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Cart Cookie

This is a discussion on Cart Cookie within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Thanks to tostrinj (Paul) and spectreman (Eric) for pointing out this bug. After the order has been successfully placed, the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-10-2008, 03:51 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Cart Cookie

Thanks to tostrinj (Paul) and spectreman (Eric) for pointing out this bug.

After the order has been successfully placed, the cookie was not being deleted. Hence, even though the customer went through the checkout process, it still showed items in the customer's shopping cart.

Only file containing the installation instructions has changed.


Make the following change in catalog/checkout_success.php

Immediately following the line (Line # 13):
require('includes/application_top.php');

Place the following lines:

$cookie_path = HTTP_COOKIE_PATH;
$cookie_expiration_time = time() - (MAX_LIFE_OF_CART_COOKIE * 24 * 60 * 60);
setcookie("cart", false, $cookie_expiration_time, $cookie_path, $cookie_domain);

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Cart Cookie michael_s New osCommerce Contributions 0 08-27-2007 06:13 AM
Problems with cookie usage.php redz008 osCMax v1.7 Discussion 14 08-07-2006 06:56 PM
Cookie problem garjowan osCommerce 2.2 Modification Help 1 04-10-2006 05:26 PM
cookie use not working PixelPaul osCMax v1.7 Discussion 0 03-22-2005 10:28 PM
Cookie Usage Error??? RichRodgers.net osCMax v1.7 Installation 1 04-02-2004 08:27 AM


All times are GMT -8. The time now is 06:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax