This is a discussion on Add Item to Cart, authenticate, then deletes cart contents? within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I do it here, after I login, the cart is empty. What do I have to do to fix this? Thanks, Corey |
|
#2
| |||
| |||
| This is a friendly bump, because I wasn't logged in before and I want to be notified if somebody replies |
|
#3
| ||||
| ||||
| Check your ssl settings in the configure.php, and also make sure your sessions settings in the admin are correct for your ssl settings. Make sure the https cookie domain is correct. Shared SSL = You cannot have 'Force Cookies' on
__________________ Michael Sasek osCMax Developer
|
|
#4
| |||
| |||
| Having the same problems with shared SSL. |
|
#5
| |||
| |||
| I'm sure the 'cart empty' issue is caused by the same problem which requires the customer to login a second time at the checkout even though they are already logged in. I've just setup two test stores using shared SSL in different directories on the same domain, one is osc standard the other is oscMax. I've been very careful to ensure that the settings in the catalog configure are identical apart from the directory name. Also in the Admin section under sessions all settings are set to False and the cookie dir is /tmp for both stores. I've created an account in both stores, logged in via https and added an item to the cart in both stores. On clicking the checkout button, osc goes straight to the delivery information page, oscMax goes to the login page. Somewhere there must be a differece in cookie or session handling between osc and oscMax? |
|
#6
| ||||
| ||||
| There isn't a difference. MAX uses the exact cookie/session handling as MS2, but the base settings in the sessions section of the admin may be different. Check them. I have no issues using ssl, shared ssl at all. Both max and MS2 behave identically for me, no matter where I install. Do you have a link to see this in action? If you are losing the seesion, it is either a path/file problem or your sessions settings are not correct. Try storing your sessions in the database. That will eliminate physically losing the session, since it will be stored in the db. Then you can concentrate on the nuts and bolts.
__________________ Michael Sasek osCMax Developer
|
|
#7
| |||
| |||
| koltz, I hope I haven't hijacked your question, but I believe you are having the same issues I was and I think I've solved mine. msasek, I think you were absolutely right, it was my SSL settings. Since my last post I tried the site on another PC and the second login appears to have gone, so maybe that was a browser caching issue. I think the problem with my SSL settings was that I hadn't included the 'http://' in the cookie path. My settings now look like this: In catalog/configure.php: Code: define('HTTP_SERVER', 'http://my_domain_name.co.uk');
define('HTTPS_SERVER', 'https://my_shared_ssl_domain.co.uk/~my_package_name');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'http://my_domain_name.org.uk');
define('HTTPS_COOKIE_DOMAIN', 'http://my_domain_name.org.uk');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
|
|
#8
| |||
| |||
| No problem, I put it on the back burner trying to figure out MoPics which I did last night. I had 200 pics that needed to be moved and thumbed, found free software to do the thumbs, but I just decided not to rename the files with _big. Anyway, will check out my configure.php. Problem is I don't know if I have shared SSL or not. Does this mean shared with another store only or just in general? I am using e-smith which works great, but don't know what it does behind the scenes. |
|
#9
| |||
| |||
| I had most of that configured correctly, here is the line that I needed to change: define('STORE_SESSIONS', ''); I had mysql for a session instead of blank, deleted it and worked fine. Weird. Well got that working |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove total from 'cart contents' box | icecold | osCMax v2 Customization/Mods | 2 | 04-27-2006 03:43 AM |
| double item name in shopping cart | PerzianKabob | osCommerce 2.2 Modification Help | 0 | 03-26-2005 08:01 PM |
| How to get item numbers to show in the CART? | beachbum2377 | osCommerce 2.2 Modification Help | 4 | 03-15-2005 03:43 PM |
| checkout says theres no item in cart when there is | humbags | osCommerce 2.2 Modification Help | 0 | 07-18-2003 12:59 PM |