Post by MisterRoo » Thu Jan 09, 2020 7:06 am

Since upgrading to OpenCart 3.0.2.0 I've been having loads of issues with customer orders and I'm hoping someone can help.

Firstly, I'm running a multi-store and secondly, I have WorldPay and PayPal installed. I have managed to recreate one, but I will list some of the other in case someone might have heard of them before.

1. Sometimes I get duplicate items added to customers order. 1 x item A + 1 x item A, the same product but different lines. Please see below:
Image https://ibb.co/jbg266j

2. WorldPay sometimes but not always will change product status by itself. The one list below has only changed once on the 17th (sometimes the can keep updating over and over). Please see below:
Image https://ibb.co/9pVyWXL


3. When we refund orders on WorldPay either partial or full refunds the order is removed from the admin panel.

4. Sometimes extra products get added to peoples orders. 2 x item A when they order adding 1x to cart. This one I have reproduced and seems to be as a result of the customer creating an account at checkout. Please see below the cart has 3 items but the checkout has 5 items:
Image https://ibb.co/KGWcNSv


For issue 4 these are the steps I used to produce the issue.

1. I created an order with 3 items on www.mydomain1.co.uk and went to the checkout but stopped at the Step1:
2. I created the same order on www.mydomain2.co.uk (although the product names are the same they are in fact different products) and went to the checkout.
3. I created an account on www.mydomain2.co.uk
4. I tried to use that account on www.mydomain1.co.uk but it wouldn't let me log in.
5. I then went to the email that had been sent to say an account had been created and followed that link (sent from www.mydomain2.co.uk).
6. When I followed this link and it opened in a new tab my cart now had 5 items in it.
7. I left all the tabs open. The first tab after I had completed the account registration and the second tab after following the link to my new account.
8. I have gone through the checkout on the first tab which shows I have 3 items in my cart. However, when I select Worldpay the checkout shows 5 items. Please see attached above picture and notice the cart icon top right and the items on Step6.

Thanks in advance for reading this and if anyone can help I would be very grateful. If you require any further info please ask.
Last edited by MisterRoo on Fri Jan 10, 2020 2:51 am, edited 3 times in total.

Newbie

Posts

Joined
Wed Dec 13, 2017 11:45 pm

Post by ADD Creative » Thu Jan 09, 2020 11:55 pm

Your images are not showing.

However, for issue 3. Are the orders still in the database or under missing orders. What do you have your Worldpay order statuses set to and have you tried re-saving them?

Looks like 3.0.3.2 has had some fixes added.
https://github.com/opencart/opencart/co ... 196ee52f28
https://github.com/opencart/opencart/co ... fe765730f5

Other topics that may be of interest.
https://github.com/opencart/opencart/issues/5778
viewtopic.php?t=201951

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by MisterRoo » Fri Jan 10, 2020 2:39 am

Thanks very much for the reply. Really appreciated! :)

WorldPay being not enabling was one of the issues we had to overcome, the other was customers completing the checkout twice and getting charged twice.

Newbie

Posts

Joined
Wed Dec 13, 2017 11:45 pm

Post by MisterRoo » Fri Jan 10, 2020 2:55 am

I'm not sure why the image are not displaying, they have been inserted correctly, strange. I have added a URL link.

Some of those fixes look like hopeful for resolving some of the problems. Thanks!!!

Newbie

Posts

Joined
Wed Dec 13, 2017 11:45 pm

Post by MisterRoo » Fri Jan 10, 2020 4:05 pm

Has anyone seen a fix for the first issue (which I think is mostly PayPal related) and last issue (WorldPay)? Theses are the most problematic for me.

Newbie

Posts

Joined
Wed Dec 13, 2017 11:45 pm

Post by ADD Creative » Fri Jan 10, 2020 9:04 pm

The Worldpay issue looks like it is something to do with the order statues. Are the orders still in the database or under missing orders? What do you have your Worldpay order statuses set to and have you tried re-saving them?

Looking at the changes at the link below, it seems there may be have been problems with the Worldpay order statuses in 3.0.2.0. Worldpay will send messages to your store via the webhook. Have you switched on the logging to see what is happening? Have you tried the changes at the link below?
https://github.com/opencart/opencart/co ... fe765730f5

For the duplicate products at checkout. Any products added to cart when a customer is logged in will be saved. If the customer gets logged out, then adds products to the cart again. On next login the current cart and saved cart will be merged. Could this be what you are seeing?

There is also this topic about duplicate products which may be useful.
viewtopic.php?t=211273

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by MisterRoo » Fri Jan 10, 2020 9:33 pm

Thanks again for the continued help.

The thing is the carts between saved and logged in are not fully merging. The first item in cart never gets merged it's only the items after that. In my example I have gone from 3 items in cart to 5 items and further more the cart icon show 3 items and at checkout you end you paying for 5.

I have not tried debugging but that issue does seem to be related to Web hooks. Thanks

Newbie

Posts

Joined
Wed Dec 13, 2017 11:45 pm

Post by ADD Creative » Sat Jan 11, 2020 1:45 am

If you look at one of the links I posted, it referenced this issue https://github.com/opencart/opencart/issues/7375. Which looks similar to yours in that the first items never gets merged.

There is also another issue that affects version 3. See https://github.com/opencart/opencart/issues/7008. The lack of cache control headers can cause the shopping cart displayed to not always be up to date, among other things. Probably won't be the whole issue, but applying the fix may make is easier to track down the rest of the issues.

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by letxobnav » Sat Jan 11, 2020 9:39 am


Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by MisterRoo » Sat Jan 11, 2020 5:49 pm

Thank you both for the help.

One last question. Should I just update my OpenCart from version 3.0.2.0 to the latest version? or just apply those bug fixes?

Newbie

Posts

Joined
Wed Dec 13, 2017 11:45 pm
Who is online

Users browsing this forum: No registered users and 6 guests