Post by ogomo » Tue Feb 21, 2012 10:52 pm

I am running an OC store on v 1.4.9.4. It is a fresh install with only one modification, the Global Mega Options add-on http://www.alreadymade.com/shop/globalmegaoptions. I am using PayPal Standard as my payment method.

I tested the store by going through and making a purchase. Everything seemed to work fine. The customer email received a confirmation after payment was made, and the shop admin also received email confirmation from both the shop and PayPal. The order status was appropriately updated to "Complete" on the admin side.

After letting it go "live", I had a customer go through and make another successful purchase, with both the store admin and customer receiving the appropriate confirmation emails, and the admin dashboard appropriately showed the order as "Complete" - no problem so far. However, today, the same customer went to make another purchase, and noticed that her shopping cart still had the items from her first order in it.

The storefront is located at http://sgtstevendeluzio.com/store. Any help would be greatly appreciated!!

Update: Also my error log had the following:

Code: Select all

2012-02-21 14:18:26 - PHP Warning:  unlink(/public_html/store/system/cache/cache.store.1329790441) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /public_html/store/system/library/cache.php on line 15
2012-02-21 14:18:26 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /public_html/store/index.php:92) in /public_html/store/system/library/session.php on line 11
2012-02-21 14:18:26 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /public_html/store/index.php:92) in /public_html/store/system/library/session.php on line 11

New member

Posts

Joined
Thu Aug 04, 2011 1:35 am

Post by ogomo » Thu Feb 23, 2012 4:26 am

Update: I have tested this a couple different ways, and I believe the problem originates when the user uses Safari as their web browser. The customer who was having this trouble was using Safari, so I was at least able to narrow that down!
My test went as follows (note, I created a new customer account for each different browser used to fully re-create the customer's experience):
1) In Safari, I went to the OC store, and re-created what this customer went through. This included using Safari, adding the same product to the shopping cart, creating a new account, and checking out. I completed payment, and a successful transmission of the order confirmation was emailed to me. I was returned to my site and the shopping cart was empty.
2) I logged out of my account and closed my browser. I re-opened Safari, and logged back into my account. The shopping cart was re-populated with the product I had just completed payment for.
3) I repeated steps #1 & 2, except this time I used FireFox. The only difference I noticed was that when I re-logged into my account, the shopping cart was not re-populated with the product I had just paid for.
4) Again, I repeated steps #1 & 2, except this time I used Chrome. Like in FireFox, I did not see the shopping cart get re-populated after logging back in.
5) Finally, I repeated steps #1 & 2, and used IE9. I was able to recreate the same results as in steps #3 & 4.
6) After completing the transaction in IE9, I opened Safari and logged in with the account created in IE9. The shopping cart was empty.
Conclusion: Safari must be storing a cookie, or something that makes it think the shopping cart still has products in it after a customer logs back into their account.

Since this seems like a isolated browser problem, I'm pretty sure it has nothing to do with the add-on I mentioned earlier.

New member

Posts

Joined
Thu Aug 04, 2011 1:35 am

Post by jty » Sat Feb 25, 2012 10:57 am

ogomo wrote:However, today, the same customer went to make another purchase, and noticed that her shopping cart still had the items from her first order in it.
I've seen a similar problem (or it might be the same problem) in 1.5.1.3 but I haven't tested it thoroughly so I haven't come to a conclusion as to the source of the problem.
With my scenario, enter an order and make payment (payment method is irrelevant).
Close the browser, I'm using Opera.
Re-open Opera and login in to open cart
Result - the cart contents from the previous completed order are restored into the cart
Reason - the cart in the cart field in the customer table is not cleared.

The cart is stored in 2 places, as a session cookie and also written to the customer database table. The callback from the payment gateway clears the session cart with clear->cart but I can't find where the cart in the database customer table is cleared.

But as I said, I need to do further testing eg what happens if the customer comes back to the open cart site from the payment site and logs out. Will that clear the database field. I have to re-test this one day but it's low on my priorty list. Maybe it's only Opera and safari. I don't know yet.

If you want to do further testing, watch the cart field in the customer table as you test

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by nitinrai » Sat Feb 25, 2012 2:26 pm

PM sent

Regards

Nick
Gtalk - nitinrai321
skype - dev.nitin


New member

Posts

Joined
Mon Mar 14, 2011 3:20 am

Post by mediaindustries » Tue Mar 06, 2012 9:23 pm

I have the same problem. I'm running a 1.5.1.1 store.

It doesn't happen al the time. Sometimes clients call me or email me with this problem. Anyone knows a fix for this? Is it possible to turn the 'remind my cart if i leave the shop' function off?

User avatar
New member

Posts

Joined
Mon Mar 05, 2012 10:36 pm
Location - The Netherlands

Post by er777 » Sat Aug 11, 2012 1:21 am

Hi Folks-

Any update/fix on the shopping cart problem? My install of 1.5.1.3 with Paypal standard does not clear the contents of the shopping cart either. Seems like it would be of prime importance to have fixed.

New member

Posts

Joined
Fri Mar 09, 2012 2:17 pm
Who is online

Users browsing this forum: Bing [Bot] and 6 guests