Zen Cart Logo
Forums / General Questions / Who's online does not show cart

Who's online does not show cart

Locked

Views: 3,165

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
14 Apr 2009, 1:46 AM
#1
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Who's online does not show cart

I run into this interesting problem on a new set up cart, the session is stored in database btw (since it seems like this doesnt work if session stored in files)

I can see users having items in cart, just cant see the cart content, weird.

14 Apr 2009, 3:20 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Who's online does not show cart

If you have hardened PHP installed (suhosin), you won't be able to see cart contents.

14 Apr 2009, 3:29 AM
#3
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Who's online does not show cart

Thanks DrByte. That's one possibility, huhm. We were using 1.3.7 on the same server and the cart content view was working fine though?

Regards

Raine

14 Apr 2009, 3:41 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Who's online does not show cart

The bigger question is ... why are you snooping on your visitors while they're shopping anyway ... but that's a more philosophical topic anyway.
If you're trying to do analytics, you're better off using other tools for that, since they track all visitors' patterns, not just one at a time, and produce usable stats.
If you're just trying to cheer them on, well, there are better things for a shopowner to be spending their time on.

14 Apr 2009, 4:39 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Who's online does not show cart

Do you store to database or files?

You need to store to database to see the cart contents via whos_online ...

14 Apr 2009, 4:49 AM
#6
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Who's online does not show cart

DrByte:

The bigger question is ... why are you snooping on your visitors while they're shopping anyway ... but that's a more philosophical topic anyway.
If you're trying to do analytics, you're better off using other tools for that, since they track all visitors' patterns, not just one at a time, and produce usable stats.
If you're just trying to cheer them on, well, there are better things for a shopowner to be spending their time on.
It's actually what my partner wants to see, and also Im curious as a developer to know why it doesnt work :)

14 Apr 2009, 4:50 AM
#7
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Who's online does not show cart

Ajeh:

Do you store to database or files?

You need to store to database to see the cart contents via whos_online ...
Im storing in Database Ajeh

14 Apr 2009, 5:03 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Who's online does not show cart

Then I'd go with DrByte's conclusions ... :smile:

14 Apr 2009, 6:57 AM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Who's online does not show cart

Ajeh:

Then I'd go with DrByte's conclusions ... :smile:
Thanks Ajeh, So since it was working on 1.3.7, can I assume that this is due to some changes in the code in 1.3.8?

14 Apr 2009, 6:52 PM
#10
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Who's online does not show cart

Hi,

Well its nothing to do with Suhosin. Im having same problem, so I requested my host provider to disable it, but still its not working though its disabled.

Some thing other is playing behind the screen that still not got to zen designers.

After seeing Suhosin as culprit for Who's Online in many threads I assumed it will work if its gone but no way, its still there.

~ Time
Ver:1.3.8a

14 Apr 2009, 7:23 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Who's online does not show cart

And you also are storing everything to the database in your two configure.php files, correct?

14 Apr 2009, 7:56 PM
#12
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Who's online does not show cart

Ajeh:

And you also are storing everything to the database in your two configure.php files, correct?

Hi,

Yes that also its given 'db' in both files. I noticed this also in many threads.

Seeing what all in cart is very important for us, as we guide to customers what shipping method they should use based on items in cart. We have multiple shipping methods.

~ Time

14 Apr 2009, 8:06 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Who's online does not show cart

time111:

... we guide to customers what shipping method they should use based on items in cart.
I'm not sure I understand ... are you talking to these customers while they're on the telephone with you or something?
If yes, then why do you need to see the cart online if you have them on the phone and are guiding their shopping?
If no, then how do you influence their choice of shipping options if you have no interaction with them other than remotely spying on what they choose to add to their cart?

14 Apr 2009, 8:36 PM
#14
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Who's online does not show cart

Hi,

We use live chat and its not spying and we dont influence any customer, we only guide for appropriate shipping method, as it become lengthy process to inform them for extra shipping or refunding balance if they paid extra.

By the way, I will be glad if you concentrate on core issue i.e. Who's Online not working. If it was so unethical then it would not have included in software in first place. As many people on forum are searching this. Im the first person who confirmed that its nothing to do with Suhosin.

~ Time

14 Apr 2009, 11:27 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Who's online does not show cart

Well, I'm not sure what exactly is causing it, because in the past couple hours I have checked a dozen different sites, spread across numerous different servers using various hosting configurations, including varying operating systems and varying server software ... and all of them are showing whos-online data, including cart contents, properly, on Zen Cart v1.3.8.

So ... in some respect, the problem seems to be isolated to the two of you.

Architecturally, the data is stored in the sessions table if you have your configure.php settings set to do so. As mentioned previously, if you have your config set to store sessions in files, that's not going to work. And, you need to be sure you have the same setting on both the admin and the storefront versions of your configure.php file.

Additionally, if the problem "just started happening" recently, then it's pretty clear that the problem isn't with the software, unless you (or someone) have made changes to the software. So, if it's not the software, then perhaps it's the server. You're on your own to deal with your hosting company about what they've changed on their server.

15 Apr 2009, 12:32 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Who's online does not show cart

time111:

By the way, I will be glad if you concentrate on core issue i.e. Who's Online not working.
If you were to explain exactly what your problem was, perhaps that might be possible. In other forum threads you've scattered varying conflicting pieces of information. In one you talk about too many entries showing according to your personal preference. In another you talk about error messages. In another you talk about suhosin problems. In another you talk about other cart issues.

Pick a thread, and explain the big picture there ... instead of hijacking 10 different threads that don't necessarily relate to your exact problem.

15 Apr 2009, 4:20 AM
#17
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Who's online does not show cart

Well, before this topic gets too long :laugh:

I understand your privacy concern DrByte, and I dont want to go peek into other people carts as well, but this is a question I was asked and could not find the answer, so I was interested in. What puzzles me was that the function was working on 1.3.7, but stops working on the new 1.3.8a. I have checked both configure files, they are all using 'db'. so that is weird. Anyhow, I think I can tell the person to live without that, Im just curious I guess.

15 Apr 2009, 5:25 AM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Who's online does not show cart

The only difference between 1.3.7 and 1.3.8 related to whos_online is that the database field storing the data was made larger to store more data. The net difference on the PHP side is nothing other than more data. I suppose you could force it back to shorter field length, but that doesn't seem to make any sense ... especially when I've seen it working just fine on lots of sites ... with my own eyes. I find it hard to believe that the problem is specific to 1.3.8. It seems way more likely to be specific to the host.

15 Apr 2009, 9:37 AM
#19
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Who's online does not show cart

DrByte:

If you were to explain exactly what your problem was, perhaps that might be possible. In other forum threads you've scattered varying conflicting pieces of information. In one you talk about too many entries showing according to your personal preference. In another you talk about error messages. In another you talk about suhosin problems. In another you talk about other cart issues.

Pick a thread, and explain the big picture there ... instead of hijacking 10 different threads that don't necessarily relate to your exact problem.

Hi,

In this thread I only posted because you was online at that time and the topic was same.

I saw many 0 post threads which no one answers but questions are valid, so its make no sense that i should not join existing live thread than posting a 0 thread post.

You had a peek on my other posts but incomplete. In all posts I only posted with relevant information. So called experts of zencart are telling people that because of Suhosin, Who's online is not working, so there I clarified even without it its not working.
You also mistaken on too many entries, its not a bug, I just wanted to reduce online time of visitors from 20 mins to 5 mins so that it does not create a long list. So in short that also not related to this post.

I believe in place of pointing out to any person, it will be wise to address main issue here as its effecting lot of people. I my self dig out more than 2 dozen such people on forum.

I do not know is it specific to 1.3.8 or not as from day one I use this. I encountered after I shifted from my new server to old server after encountering frequent downtime by new server. At first I though it was due to backing up of files but later when I done a fresh test installation, same problem persists. So I started digging into the forum.

~ Time