Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

whos_online : users shopping cart mismatch


lee the bean

Recommended Posts

Posted

There are several users having this problem - but I havent been able to find a resolution in forums:

 

Problem: when several users are doing their thing and showing up in who_online the users shopping cart display no longer shows whats in the users cart (as it used to in MS2.2); or so it seems.

 

Further investigation shows that there is a mismatch between the display in the left hand box (to which you can select individual users/ip address/table rows) and what appears in the right hand table under users shopping cart.

 

That is - if one pops a product into ones cart and selects ones ip address nothing appears to the right, but select the entry below and the cart contents appear. However there appears to be little consistancy as sometimes the clicked user and cart are correctly displayed - in fact if one has three sessions doing their thing and one just goes up and down the list - the session with cart contents randomly (or seemingly so) display in the right hand table. Hmmm.

 

Another random problem with the who_online is that sometimes two rows in the table are treated as a single combined row. that is clicking on one line captured the row below (both are no longer active html links). Again this appears to be random. Hmmm.

 

This problem never happened in the MS2.2 product release. The upgrade from MS2.2 to RC2a also includes an upgrade to php 5.2.14 (from php 4.something) & an increase the last_page_url field size on the whos_online table.

 

The admin/who_online.php file is the installation version -> $Id: whos_online.php 1739 2007-12-20 00:52:16Z hpdl $

and the sessions are stored in mysql.

 

This is the only outstanding problem, users are purchasing as sweetly as they ever did, so this is simply a problem with admin/whos_online and should be repeatable similar setup servers.

 

Help....

Posted

There have been problems in the past with customers seeing other customers' shopping cart contents, and the like. IIRC, it came down to using a public /tmp directory or something, where your store could get mixed up with another store. I think the solution was to define your own private "tmp" directory, but you should search the forum to be sure.

Posted

Hi Phil, the problem you mention is unrelated (I think) as the /tmp folder isnt used if the session id are stored in the database. As far as I can tell this is an error in the creation of the who_online table display, it looks fine until you wanna know whats in a users cart. I think the table rows href link is mis-associated with the session ids.

 

I think the second problem only occurs if the session is a logged on one and the customer name is expanded over two lines (ie the tr/td becomes a double displayed line).

Archived

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

×
×
  • Create New...