Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Customers Can't Log In / Can't Add Products To Cart


Recommended Posts



For some reason, while not logged in as a customer, when I click ADD TO CART it just tells me



What's In My Cart?


Your Shopping Cart is empty!



No matter what I do.


And when I try to log in using a customer account I created for myself, it would always tell me:



Welcome to Kugler Wines


Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account?

New Products For March


And I would try to click LOG YOURSELF IN


It would bring up the either signup or login page.



I've done dozens of searches for the two issues, tried every suggestions with cookies and sessions settings, but nothing it working. What is going on? How can I get this to work? I'm getting extremely frustrated. Once this works, the site is done and I can move on! HELP!

Link to comment
Share on other sites

This is my catalog/include/configure.php



define('HTTP_SERVER', 'http://www.kuglerwines.com');

define('HTTPS_SERVER', 'http://www.kuglerwines.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

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/');


define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/var/www/html/kuglerwines/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');



define('DB_SERVER', 'localhost');

define('DB_DATABASE', 'kuglerwines');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

define('CFG_TIME_ZONE', 'America/Los_Angeles');


Link to comment
Share on other sites

Hi Steve,


The right hand and left hand columns are missing completely and for some reason the shopping cart is appearing in funny places like bottom rleft on create_account_success.php.

I am guessing the site did not upload correctly so as you have not done any changes upload again using a ftp program


File zilla is good and free so google it.


As regards the configure.php I notice you are missing define('DB_SERVER_PASSWORD', 'xxxxxxxxx'); ??????

The possible cookie settings are normally


define('HTTP_COOKIE_DOMAIN', '');


define('HTTP_COOKIE_DOMAIN', '.kuglerwines.com');


define('HTTP_COOKIE_DOMAIN', 'kuglerwines.com');

Think depends on server set up



To improve is to change; to be perfect is to change often.


Link to comment
Share on other sites

When the fresh install still showed the same results, I re-uploaded the ones with modifications. Namely, the background color change, the narrower column settings and changed the breadcrumb color.


I also purposely removed all the boxes for the sake of design. This was done using the OSC control panel so I doubt it would have any effect on the ability to add to cart or logging into an account. I also removed the DB server admin and password on purpose.


I tried all three variations you've shown for the cookie_domain attribute, still not working.



One thing I noticed when I did a fresh install, and it still showed it now if I go to /install is session.auto_start ON and has a big red X by it. It still allowed me to install OSC, could this be the reason I'm having problems and how do I turn it off?

Link to comment
Share on other sites

I had missed that box when changing all boxes to "false" which i just marked off and now it looks just like your module-less demo. But this still doesn't help with the underlining issue. Is it something based on my host? It's with Jumpline.com

Link to comment
Share on other sites

session.auto_start can interfere with osCommerce managing its own sessions. Ask your host to turn that off.




See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi steve,


Guess @@kymation is on the right track would just being wondering if you can turn this of yourself in the .htaccess


php_value session.auto_start 0


or in a php.ini file


I never personally seen this problem before so curious to know how you get on so keep us updated please.


Looks very likely that this is the problem




To improve is to change; to be perfect is to change often.


Link to comment
Share on other sites

Yup, the problem was the server did have session.auto_start ON. Once I disabled it, it started working no problem!


Weird though, it didn't give me any errors to indicate that this was a problem. Had I not noticed it on the re-install, I would never have been able to find the solution. Perhaps the install script should be more firm about having all those settings GREEN CHECKMARKED before proceeding with intallation, to insure the server environment is ideal for operating the script.


Thanks for all your help guys!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...