osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Shopping cart deleted w/ new customer signup

This is a discussion on Shopping cart deleted w/ new customer signup within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi I'm actually using the creloaded version of oscommerce. wbut I think mayn other people are having this problem, when ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-26-2004, 08:51 AM
New Member
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RocksIT
Default Shopping cart deleted w/ new customer signup

Hi I'm actually using the creloaded version of oscommerce. wbut I think mayn other people are having this problem, when A customer shops at my store first, then creates an accountr, their shopping cart is emptied. and they have to start over, is there a way to change my settings to allow this but not disrupt checkout like "force cookies" seems to do?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 07-26-2004, 02:14 PM
Lurker
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Paulblo
Default Ditto

Hell I am having a simular problem. Are you using SSL? I think it has something to do with the session information being transferred from http to https and the other way around.

Try to disable SSL in your configure.php file (/catalog/includes/configure.php) and see if it behaves the same... if it is like mine, it won't have the same problem. I have been trying to figure out what is going on too....

Keep me posted...

Thanks,

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-26-2004, 02:22 PM
New Member
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RocksIT
Default

yes i am using SSL as welll since its a secure site with customers rental information etc...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-26-2004, 03:16 PM
New Member
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RocksIT
Default

Warning: main(/Rentals/templates/Original/boxes.tpl.php): failed to open stream: No such file or directory in /var/chroot/kenstanton/home/kenstanton/html/Rentals/includes/template_application_top.php on line 92
help what did I do?? I was just editing includes/configure and admin/includes/configure & I started ghetting this!

Fatal error: main(): Failed opening required '/Rentals/templates/Original/boxes.tpl.php' (include_path='.:/usr/share/pear') in /var/chroot/kenstanton/home/kenstanton/html/Rentals/includes/template_application_top.php on line 92
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-26-2004, 03:39 PM
Active Member
 
Join Date: Jun 2004
Location: Glued to Computer Chair
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
makemethis
Default

Pulling SSL from the config isn't the answer to problem. That is a bandaid. Look in your admin settings...one is called force cookies...try changing that...if it doesn't work...change it back...also look at sessions setting...one way it writes to files and the other way to mysql...good luck and remember to always save the original file on the ones you change so you can go back to it if what you change doesn't work
__________________
True Meaning of Lost: Building a web site without knowledge or skill

True Meaning of Crazy: Building a web site anyhow

The Net Results: Never needing a comb again

www.MakeMeThis.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 07-27-2004, 05:21 PM
New Member
 
Join Date: Jul 2004
Location: a mountaintop in Florida
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gravenimage
Default

If you're using a shared SSL certificate, make sure you change your HTTPS_COOKIE_DOMAIN to match your HTTPS_SERVER domain in configure.php so your session will be carried across. I've seen several configure.php files posted here that made that same mistake. Sessions use cookies, and cookies are inherently tied to domains such that a cookie from one domain cannot be accessed by another domain. So if both HTTPS domain settings do not match, the cookie will be created for one domain, and inaccessible by the other when hopping back and forth between http and https protocols.

Correct config example:
Code:
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  define('HTTP_SERVER', 'http://webpage.com'); // eg, http://localhost - should not be empty for productive servers
  define('HTTPS_SERVER', 'https://www.sslserver.com/webpage'); // eg, https://localhost - should not be empty for productive servers
  define('ENABLE_SSL', true); // secure webserver for checkout procedure?
  define('HTTP_COOKIE_DOMAIN', 'webpage.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.sslserver.com');
...
...
...
The behavior I was seeing was very similar to what I've seen others report elsewhere in the forums:
- Customer logs and adds some things to the cart
- Customer goes to check out and is met with the login screen again, and after logging in again, their cart is empty.
- The cycle repeats itself

I just spent an hour and a half troubleshooting this issue and couldn't find this simple answer anywhere in the forums to what seems to be a very commonplace problem. Granted, there are several things which can cause similar behavior in OSC, so here's one more possible solution. Hope it helps!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 07-29-2004, 09:03 AM
New Member
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RocksIT
Default

define('HTTPS_COOKIE_DOMAIN', 'www.sslserver.com'); how would I put my secure server information the actual server domain.. mydomain.com doesn't seem to work..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-29-2004, 11:03 AM
New Member
 
Join Date: Jul 2004
Location: a mountaintop in Florida
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gravenimage
Default

If you're using a shared certificate (if you haven't purchased one, you probably are) then you'll need to get the SSL server URL from your webhost. The only way you can use your own domain for the SSL domain is if you're not on a shared one. If you still have problems after getting and plugging in that info, reply and attach your configure.php file.

Good luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 07-29-2004, 11:50 AM
New Member
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RocksIT
Default

ok just double checked it is our own SSL certificate and www.kenstanton.com is the domain name..
here's my configure.php file.. i'm double checking my other files trying to make sure I didn't miss anything else..

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.kenstantonmusic.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://www.kenstantonmusic.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://kenstantonmusic.com');
define('HTTPS_COOKIE_DOMAIN', 'https://www.kenstantonmusic.com');
define('HTTP_COOKIE_PATH', '/Rentals/');
define('HTTPS_COOKIE_PATH', '/Rentals/');
define('DIR_WS_HTTP_CATALOG', '/Rentals/');
define('DIR_WS_HTTPS_CATALOG', '/Rentals/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

//Added for BTS1.0
define('DIR_WS_TEMPLATES', 'templates/');
define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
//End BTS1.0
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/var/chroot/kenstanton/home/kenstanton/html/Rentals/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', 'myusername');
define('DB_SERVER_PASSWORD', 'mypassword');
define('DB_DATABASE', 'mydatabase');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 07-29-2004, 01:18 PM
New Member
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RocksIT
Default

I did a re-install and re-uploaded the create account & create account.tpl scripts from my test server and same issue

so think maybe its a sessions settings issue???

and below is my current config file since re-install

have them set as follows

Session Directory /tmp
Force Cookie Use False
Check SSL Session ID True
Check User Agent False
Check IP Address False
Prevent Spider Sessions True
Recreate Session True

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.kenstantonmusic.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://www.kenstantonmusic.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.kenstantonmusic.com');
define('HTTPS_COOKIE_DOMAIN', 'www.kenstantonmusic.com');
define('HTTP_COOKIE_PATH', '/Rentals/');
define('HTTPS_COOKIE_PATH', '/Rentals/');
define('DIR_WS_HTTP_CATALOG', '/Rentals/');
define('DIR_WS_HTTPS_CATALOG', '/Rentals/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

//Added for BTS1.0
define('DIR_WS_TEMPLATES', 'templates/');
define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
//End BTS1.0
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/var/chroot/kenstanton/home/kenstanton/html/Rentals/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', 'myusername');
define('DB_SERVER_PASSWORD', 'mypassword');
define('DB_DATABASE', 'mydatabase');
define('USE_PCONNECT', 'true'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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
Shopping cart decoster osCMax v2 Customization/Mods 1 12-05-2006 09:12 AM
Which shopping cart should I use? Please help. earth-friendly osCMax v2 Customization/Mods 6 07-16-2006 12:36 PM
Can not add items to shopping cart sjleather osCMax v1.7 Installation 8 10-10-2005 10:53 AM
Can't login/signup new customer jbianco osCommerce 2.2 Installation Help 7 04-06-2004 12:56 PM
have shopping cart on a schedule lopeel osCommerce 2.2 Modification Help 1 10-07-2003 09:28 AM


All times are GMT -8. The time now is 12:07 AM.


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