Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customer Can Not Login or Add to Cart


futuremillions

Recommended Posts

Posted

Hello. I was having a problem where customers who got stuck on the shipping page and it would not go further. I installed an older backup and now I have an entirely new problem. If the customer adds a product to the cart then logs in the cart is then empty. If a product is added again to the cart and checkout is checked, I get a page saying the shopping cart is empty.

 

Also, account information is not being displayed if I click on account. I am just redirected to the login page. Not sure what happened since it was working fine before. Any help is always appreciated. Thank you.

If at first you don't succeed, restore your backup files!

Posted

Yes, my configuration file is okay. I haven't touched it at all. I am pasting below just in case.

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://verysexytoys.com/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://verysexytoys.com/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', '1'); // secure webserver for checkout procedure?

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

define('HTTPS_COOKIE_DOMAIN', 'verysexytoys.com');

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

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

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

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

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

 

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

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

have you checked your configure.php out to make sure that the cookies paths are correct

If at first you don't succeed, restore your backup files!

Posted

I too am having this same problem. I am so confused. It was working before and I updated a few things (Never touched the configure.php file) and now I cannot log in or add items to cart. Any help here would be great as my boss is hounding me to get this done but I have had this problem for the last 2 days now and can NOT figure it out!

 

josh

Posted

define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?

 

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); - this needs to be replaced with the full pathway to your website e.g.

 

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

 

Vger

 

Posted

We'll need some more input from you before anyone can answer - such as what were you editing when you broke the cart?

 

Vger

Anyone have any more input??? Please???

 

Josh

Posted
We'll need some more input from you before anyone can answer - such as what were you editing when you broke the cart?

 

Vger

 

I was changing the header around. I wanted to add the header that was with the rest of the website:

 

www.coinsplus.com

 

Now you can go here: www.coinsplus.com/catalog and see the same header on top. Once I added that everything went downhill. I can post the code for the index page if you want so you can see what I did.

 

Please not that the site is live so please don't make any transactions... thats if you can even get something to add to the cart.

 

josh

Posted

There are two things wrong:

 

1. You have enabled "Force Cookie Use" in osc Admin - but you don't have a full ssl certificate. Set it to false.

 

2. You are sending people to a shared ssl address for Login etc. but using the http address. Use these settings for https in includes/configure.php

 

define('HTTPS_SERVER', 'https://securespike.com/coinsplus.com');
define('ENABLE_SSL', true);
define('HTTPS_COOKIE_DOMAIN', 'securespike.com');
define('HTTPS_COOKIE_PATH', '/consplus.com/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

Vger

Posted
Hello. I was having a problem where customers who got stuck on the shipping page and it would not go further. I installed an older backup and now I have an entirely new problem. If the customer adds a product to the cart then logs in the cart is then empty. If a product is added again to the cart and checkout is checked, I get a page saying the shopping cart is empty.

 

Also, account information is not being displayed if I click on account. I am just redirected to the login page. Not sure what happened since it was working fine before. Any help is always appreciated. Thank you.

 

 

Hi, Hope all is well with you, I am having the same exact problem where a customer cannot add a product to their cart nor can they log in. Were you able to fix yours? Im not sure what i did wrong, the most recent things i did was add lightbox, change the product listing layout using a contribution, and remove the right column.

 

After realizing both things weren't working, i removed lightbox, and new product layout, and reinserted the right column, but still had this problem, Any help would be appreciated from anyone please.

 

Visit My Website

Posted
We'll need some more input from you before anyone can answer - such as what were you editing when you broke the cart?

 

Vger

I would have to re-itterate this comment... What was the last thing you "changed" when the functionality broke? Go back and restore your back up file to restore functionality.

Posted

Vger,

I just hanged the code to the code you provided and it still is not working. I can not add items to my cart still and also now when I try to login it says the page is not found.

 

Here is what my code looks like right now:

<?php
 define('HTTP_SERVER', 'http://securespike.com');
 define('HTTPS_SERVER', 'https://securespike.com/coinsplus.com');
 define('ENABLE_SSL', true);
 define('HTTP_COOKIE_DOMAIN', 'securespike.com');
 define('HTTPS_COOKIE_DOMAIN', 'securespike.com');
 define('HTTP_COOKIE_PATH', 'oscommerce');
 define('HTTPS_COOKIE_PATH', '/coinsplus.com/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/coinsplus.com/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_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/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/usr/www/sites/coinsplus.com/www/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

?>

 

Thats the code minus the database info.

 

Here is the store address again: www.coinsplus.com/catalog

 

Josh

Posted
I would have to re-itterate this comment... What was the last thing you "changed" when the functionality broke? Go back and restore your back up file to restore functionality.

 

I tried that already and it did not work... I can try again though.

 

And for the last thing changed it was the header information.

 

Josh

Posted

Ok, I just put my backup site on there and it works now. BUT i need the new header on there. As soon as I put it back it does not work.

 

josh

Posted

Is there anything in the actual header file that would cause this problem??? I REALLY REALLY REALLY need to get this finished. My boss is insane and is getting pissed that I can't figure this out. Please keep in mind that I just started working on websites about 2 1/2 months ago and he doesn't understand why I am not "Smart Enough" to figure this out. Please anyone... do you have anything else I can try?

 

Josh

Posted

Ok, got it to work... Don't know what I did but I uploaded my working version, the one with the old original header, and then just started adding pieces of the new header one by one. Now it works! Anyone have any idea why it did this?

 

Josh

Archived

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

×
×
  • Create New...