Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Who's online issue: Shopping cart - Guest mismatch


fprabel

Recommended Posts

I recently migrated my osCommerce store (v2.2 RC1) from a Linux server with PHP 5.2.4 to another Linux server, with PHP 5.2.8.

Everything is working fine (customers are selecting products, placing orders, paying etc.), however there is a little glitch in the admin since the migration and I've been unable to nail it.

 

Our staff likes to watch what customers have in their cart before they order, which you can do by clicking a particular guest in the admin, whos online.

Since the migration however, the cart that is displayed on the right side of the guests list does not match the selected guest and the association between a guest and a cart seems to be random. The cart contents are accurate but displayed for the wrong guest. No such mismatch for the guests themselves (fortunately!) and the customers are able to order what they have in their cart.

 

I suspect a session mismatch in whos_online.php in this area:

 

$start_id = strpos($session_data, 'customer_id|s');

$start_cart = strpos($session_data, 'cart|O');

$start_currency = strpos($session_data, 'currency|s');

$start_country = strpos($session_data, 'customer_country_id|s');

$start_zone = strpos($session_data, 'customer_zone_id|s');

 

or below, in the session_decode() calls, but I've had no luck finding the root cause so far.

The sessions table looks normal (idle sessions expire after 15 minutes, so we don't have too many rows in that table).

 

Any idea or suggestion is welcome.

Thanks!

Frank

Link to comment
Share on other sites

I recently migrated my osCommerce store (v2.2 RC1) from a Linux server with PHP 5.2.4 to another Linux server, with PHP 5.2.8.

Everything is working fine (customers are selecting products, placing orders, paying etc.), however there is a little glitch in the admin since the migration and I've been unable to nail it.

 

Our staff likes to watch what customers have in their cart before they order, which you can do by clicking a particular guest in the admin, whos online.

Since the migration however, the cart that is displayed on the right side of the guests list does not match the selected guest and the association between a guest and a cart seems to be random. The cart contents are accurate but displayed for the wrong guest. No such mismatch for the guests themselves (fortunately!) and the customers are able to order what they have in their cart.

 

I suspect a session mismatch in whos_online.php in this area:

 

$start_id = strpos($session_data, 'customer_id|s');

$start_cart = strpos($session_data, 'cart|O');

$start_currency = strpos($session_data, 'currency|s');

$start_country = strpos($session_data, 'customer_country_id|s');

$start_zone = strpos($session_data, 'customer_zone_id|s');

 

or below, in the session_decode() calls, but I've had no luck finding the root cause so far.

The sessions table looks normal (idle sessions expire after 15 minutes, so we don't have too many rows in that table).

 

Any idea or suggestion is welcome.

Thanks!

Frank

 

I have the same weird problem with osCommerce store (v2.2 RC2a) in a "fresh installation also on a linux server and PHP version 5.2.8.

 

I thought it was a corrupted whos online.php file, i ve replaced it with the original one in admin/includes/ but no luck. Then i ve noticed odd behavior with the admin stylesheet.css because in admin/whos online.php it is selecting the bots ( p.e. the google bot) and the selections i make. Something that it did not happened in my old installation with MS2.2 edition on the same server. I ve replaced with an original copy the styleshhet.css file but also no luck.

 

Thanks in advance !

Link to comment
Share on other sites

  • 4 weeks later...

I have a similar issue that just started happening when I moved my site to my hosting companies new Linux server.

Now, when one customer places something in their cart, all customers icons turn to blinking carts, showing the products.

Prior to server change all worked well for over a year. Any thoughts?

 

Dave

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...