Page 1 of 1

Bug: Duplicate items are being added in the same order

Posted: Sat Dec 04, 2021 1:40 am
by rgfuelcells
I have encountered what I believe is a bug for the first time on my website where a customer was able to add the same product of the same quantity twice in the same order:


Product Model Quantity Unit Price Total
T-shirt - S 3 4 49.05€ 196.19€
T-shirt - S 3 4 49.05€ 196.19€
Sub-Total: 392.38€
UPS Saver: 57.93€
Total: 450.31€


I have abstracted the real name and model number of the real product in my website to simplify things. Basically in my website a product can have multiple options and if the product does have multiple options then each of those options has a different model number. So it is unexpected to me that the product that they chose has the same option size, which let's say is "S" yet the order still listed it twice and in the same quantity. I took over the development duties of this website from someone else so I don't know if an extension from the marketplace is causing this bug if so which one. But I think it's one of the quick add to cart ones. The problem is I have not been able to replicate "adding duplicate lines in an order".

Re: Bug: Duplicate items are being added in the same order

Posted: Sat Dec 04, 2021 4:03 am
by ADD Creative
You don't state your OpenCart version. If version 3.x it could be related to this issue. viewtopic.php?t=211273

Re: Bug: Duplicate items are being added in the same order

Posted: Sat Dec 04, 2021 4:17 am
by rgfuelcells
My OpenCart version is 1.5.6.4 so it can't be that

Re: Bug: Duplicate items are being added in the same order

Posted: Sat Dec 04, 2021 5:03 am
by ADD Creative
It does sound like it caused by one of the extension then.

Re: Bug: Duplicate items are being added in the same order

Posted: Sun Dec 05, 2021 12:05 am
by JNeuhoff
Make sure there are no duplicate product option or product option values defined for your given product.