Page 1 of 1

Opencart adding customers previous orders onto latest order

Posted: Wed Aug 10, 2016 4:29 am
by auz87
Hi there,

I'm having a serious issue with opencart Version 2.0.1.0. Every so often it will add a returning customer's previous order onto their latest order. This only seems to become apparent after they've placed their order and the confirmation email has gone through.

Any ideas what's causing this and how to stop it please? As you can imagine it's causing major headaches for me and my customers,

I'm using Stripe Payment Gateway (v220.1) extension if that's relevant.

Re: Opencart adding customers previous orders onto latest or

Posted: Wed Aug 10, 2016 4:41 am
by straightlight
Hi auz87,

since you posted this topic into the bug reports, could you provide the step-by-step that you did in order to obtain the above results?

In addition, to answer your last question, the payment module would only be relative in this case if the module itself can involve the returned products. Otherwise, it would not be relative based on the Opencart's returns utility.

Re: Opencart adding customers previous orders onto latest or

Posted: Wed Aug 10, 2016 4:54 am
by auz87
Hello,

I haven't been able to recreate the bug myself. However I get a report from a returning customer every couple of days and it's always the same scenario: previous order added onto the latest one.

Is it possible this could be to do with the cart saving feature and if so is there any way to stop carts being saved completely? I.e. logging out purges cart data.

Re: Opencart adding customers previous orders onto latest or

Posted: Wed Aug 10, 2016 5:05 am
by straightlight
auz87 wrote:Hello,

I haven't been able to recreate the bug myself. However I get a report from a returning customer every couple of days and it's always the same scenario: previous order added onto the latest one.

Is it possible this could be to do with the cart saving feature and if so is there any way to stop carts being saved completely? I.e. logging out purges cart data.
Since you cannot provide accurate information at this time, this topic will be moved to the General Support section of the forum until relative facts can be posted regarding bugs that should be reported.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 5:56 am
by gossamerLL
We are having this same issue. Opencart Version 2.0.3.1
Customer did not add product to their cart.
Customer did not see product during the checkout.
When order was placed, previous product was added onto the order.

Seems like the old product is stuck in their cart or not clearing from the cart somehow?
What should I look at?
Any thoughts appreciated.
Linda

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 6:15 am
by straightlight
What should I look at?
To upgrade to the latest version of Opencart. Most of passed issues have been resolved, including today: http://forum.opencart.com/viewtopic.php?f=2&t=166011 . Official bug reports for the latest version of Opencart: http://forum.opencart.com/viewtopic.php?f=191&t=166012

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 6:49 am
by gossamerLL
Yea thanks I guess except scheduling that update from 2.0.3.1 to current on a live site has been an issue. Was trying to find a fix until I can do that upgrade.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 7:38 am
by straightlight
gossamerLL wrote:Yea thanks I guess except scheduling that update from 2.0.3.1 to current on a live site has been an issue. Was trying to find a fix until I can do that upgrade.
The official bug report topic was provided on the above ... these are the official fixes.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 7:48 am
by gossamerLL
2.3 fixes do not help me with a 2.0.3.1 issue. Yea I get it I need to update the cart. The thread you sent me to is all 2.3 stuff. Our cart is not there yet....2.0.3.1 and going from 2.0.3.1 to 2.3.0.2 is not a simple quick update since some of the add-ons we have are not updated yet.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 7:53 am
by straightlight
gossamerLL wrote:2.3 fixes do not help me with a 2.0.3.1 issue. Yea I get it I need to update the cart. The thread you sent me to is all 2.3 stuff. Our cart is not there yet....2.0.3.1 and going from 2.0.3.1 to 2.3.0.2 is not a simple quick update since some of the add-ons we have are not updated yet.
So the previous post is not about fixes that aren't working but rather about the fact that upgrading is not an option for you; which is fine. However, my previous analysis was about not leading other forum users into misleading information without stated facts since the fixes provided above does work for v2.3.0.2 release.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 8:05 am
by gossamerLL
Your answer does not make any sense or provide any form of help other than to try to belittle me when I'm just trying to find out if this is a known bug in 2.0 and if there was a fix for it that I could easily implement before upgrading.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 8:08 am
by straightlight
In order to obtain a specific fix, step-by-step details on how you were able to notice an issue with the returns would be amended.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 10:08 pm
by gossamerLL
Since it is happening randomly for one customer right now I've provided the details they gave me.
A product they purchased in the past is randomly being added onto their orders after they click checkout.
The product does not show in the cart during checkout.
They are charged for the product and it shows on the order email.

Re: Opencart adding customers previous orders onto latest or

Posted: Thu Aug 11, 2016 10:42 pm
by artcore
It is possible that during the previous checkout their cart didn't clear after success. Once on checkout for a new order and they login at that moment, the cart gets amended with the previously saved cart items.

Re: Opencart adding customers previous orders onto latest or

Posted: Fri Aug 12, 2016 1:38 am
by auz87
gossamerLL wrote:We are having this same issue. Opencart Version 2.0.3.1
Customer did not add product to their cart.
Customer did not see product during the checkout.
When order was placed, previous product was added onto the order.

Seems like the old product is stuck in their cart or not clearing from the cart somehow?
What should I look at?
Any thoughts appreciated.
Linda

Yes a specific fix for this would be great as it's very difficult to upgrade version when we have a lot of modified extensions and a custom theme to contend with.

We've applied this change which deletes the customer's cart upon logging out, so it's not saved for their next visit, hoping this solves the issue:

https://isenselabs.com/posts/disable-sh ... encart-20x

Re: Opencart adding customers previous orders onto latest or

Posted: Tue Aug 23, 2016 1:48 pm
by auz87
The fix I linked to in my previous post (clearing customer cart on logout) did not work.

Still getting customers having previous orders added on to their latest one and being charged for it. Absolute nightmare..

Re: Opencart adding customers previous orders onto latest order

Posted: Mon Oct 19, 2020 6:45 am
by stockportdesign
hi
i had the same issue for a long time for one of my customers and i found the problem by accident.
i have created many websites for restaurants (online ordering website) and all work fine, only one of them has this issue.
All websites accept "cash on delivery" or "pay by paypal" as payment method and the problem was only with some PAID ORDERS. I noticed that "PayPal Express Checkout" and "PayPal Payments Standard" both are installed and active on the website with issue but on the other websites only "PayPal Payments Standard" have been installed. So, I just uninstalled "PayPal Express Checkout" module and its sorted.
If you use "PayPal Express Checkout" just uninstall it and use "PayPal Payments Standard" instead.
good luck