Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why can customers only add one item to their cart!??


Guest

Recommended Posts

ARG! Somehow old code got written over new code.. I know it. I HATE moving servers. Now only the newest item that has been added to the cart will show up in the cart. Can someone explain to me which code controls this so I can post it and have you guys check it out please?

Is it product_info.php or shopping_cart.php?

 

Thanks! Please help soon, going crazy!!!!!!!!

Link to comment
Share on other sites

It could be any number of files, and posting the code probably won't help much until you/we know more about what's going on. Post a link to your site so we can test. This happens when customers are logged in and when they're not?

 

Thanks for that question... it helped me know what else to test. It appears that the Session is not keeping. It doesnt keep my log in either. I can log in, add an item to my cart and then checkout. When I click to see the cart again, click then continue shopping, and add a new item into the cart it only shows that one item. I go to checkout and it asks me to login again. This is the constant loop I get stuck in.

 

When a customer does not log in, it never allows them to see more than one item in the checkout process.

 

Does that help?

Link to comment
Share on other sites

check you have set your cookie directory / domain correctly in configure.php

 

Thanks.. I did do that. Do you see anything wierd?

define('HTTP_SERVER', 'http://www.mechanicalbunny.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mechanicalbunny.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.mechanicalbunny.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.mechanicalbunny.com');

Link to comment
Share on other sites

try changing it to:

 

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

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

 

Even though my store is not setup like normal stores? I dont use my catalog/index.php I have OSC integrated into my current code.

The wierd thing is that I have always had that set to / and that is one thing that hasnt changed in a year.

Link to comment
Share on other sites

hmmm.. i may have fixed it by changing my

 

 define('HTTP_COOKIE_DOMAIN', 'www.mechanicalbunny.com');

to

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

 

but PLEASE feel free to test it!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...