Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Your shopping cart is empty!!


Guest

Recommended Posts

Posted

I am having trouble adding items to the cart. I have a very heavily modded product_info.php file. I am not well versed when it comes to php, so I'm thinking that's the problem. i am just wondering if there's a <?php } ?> out of sequence or missing. Any suggestions?

Posted

It's usually caused by having the incorrect http_cookie_domain setting in includes/configure.php.

 

The http_cookie_domain must be a domain and not a url, so:

www.yourdomain.com = correct

http://www.yourdomain.com = incorrect

 

Vger

Posted
It's usually caused by having the incorrect http_cookie_domain setting in includes/configure.php.

 

The http_cookie_domain must be a domain and not a url, so:

www.yourdomain.com = correct

http://www.yourdomain.com = incorrect

 

Vger

Thanks for your help. I just checked that setting in config.php, and it is as you suggested. It does not have the http:// or https://. So it has to be something else. Any suggestions? Thanks!

Posted

I also have that problem as well...

 

I set my configure.php like this

 

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

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

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

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

define('HTTPS_COOKIE_DOMAIN', 'pladeecom.secure.powweb.com');

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

but It seem that It is not working correctly...

 

You can go to www.pladee.com and make a test on that...

I still don;t get it where i am doing it wrong..

 

 

My hosting details are as follow..I have two domain name

 

ServerName: http://ebetta2u.com

http://pladee.com

 

Temp URL: http://ebetta2u.temp.powweb.com

Secure URLs: https://ebetta2u.secure.powweb.com

https://ebetta2ucom.secure.powweb.com

https://pladeecom.secure.powweb.com

Posted
I also have that problem as well...

 

I set my configure.php like this

 

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

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

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

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

  define('HTTPS_COOKIE_DOMAIN', 'pladeecom.secure.powweb.com');

 

  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

but It seem that It is not working correctly...

 

You can go to www.pladee.com and make a test on that...

I still don;t get it where i am doing it wrong..

My hosting details are as follow..I have two domain name

 

ServerName: http://ebetta2u.com

http://pladee.com

 

Temp URL: http://ebetta2u.temp.powweb.com

Secure URLs: https://ebetta2u.secure.powweb.com

https://ebetta2ucom.secure.powweb.com

https://pladeecom.secure.powweb.com

 

I found my error in catalog/includes/application_top.php on this line...

 

// customer adds a product from the products page

case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+$quanity, $HTTP_POST_VARS['id']);

 

 

This line was changed when I used a contribution entitled "easy way add Qty box in your product_info.php" found at http://www.oscommerce.com/community/contri.../search,quanity.

 

I thought it may have had something to do with it so, I changed that line to ...

 

// customer adds a product from the products page

case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

 

which was the way it was originally written. It's been working great ever since. I'll just have to do without a qty box for the time being. Hope this helps!

Posted

I have test my website again...

I using that setting and it is working..i don;t know why..maybe because of cache ??

 

I do some order test and register with a new account..and it is complete working good.. nothing lack at all..all order is show up....

 

I will also checking with the application top to make sure it is correct as well..

Archived

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

×
×
  • Create New...