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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| yes i am using SSL as welll since its a secure site with customers rental information etc... |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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');
...
...
...
- 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! |
|
#7
| |||
| |||
| 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.. |
|
#8
| |||
| |||
| 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! |
|
#9
| |||
| |||
| 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' ?> |
|
#10
| |||
| |||
| 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' ?> |
| Thread Tools | |
| |
| ||||
| 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 |