Page 1 of 1

invoice items doubled

Posted: Sun Sep 03, 2023 8:33 am
by motofox
recieved an order today and on the order page everything is duplicated, the products, shipping, sub total, total.

the total price is correct however, not seen this before now.

oc 4.0.2.2

Re: invoice items doubled

Posted: Sun Sep 03, 2023 8:23 pm
by motofox
trying to remove one of the products results in the repeated items being removed then added up into one

Re: invoice items doubled

Posted: Tue Sep 05, 2023 5:24 am
by motofox
now seeing any product on the orders page that has options; double or triple in price randomly or when pressing refresh or confirm

Re: invoice items doubled

Posted: Tue Sep 05, 2023 6:47 am
by ADD Creative
What theme and extensions are you using? Do you get the issue with the default theme?

Have you checked both the PHP and OpenCart error logs?

Re: invoice items doubled

Posted: Tue Sep 05, 2023 5:40 pm
by JNeuhoff
Check your server's raw access log (you can find it via your cPanel) to see what exactly the customer did, and what exact device and/or web browser the customer was using. Also check your server's error log.

Re: invoice items doubled

Posted: Wed Sep 06, 2023 4:27 am
by motofox
ADD Creative wrote:
Tue Sep 05, 2023 6:47 am
What theme and extensions are you using? Do you get the issue with the default theme?

Have you checked both the PHP and OpenCart error logs?

theme is the default. ( although i believe the opencart.mx thing changes that a bit ?)
A stripe payment gateway extension
formula based shipping extension
im using the opencart.mx extension
no errors in logs
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
thats my pc im using for testing.



So, its only affecting product unit price and totals only of products with options, and pressing the refresh button next to confirm doubles the price of affected products, pressing f5 or ctrl f5 reverts it back to normal. However everytime i press the confirm button on the order page, it permanently doubles the prices of affected products.

any product not with options is fine. just products with options double in price permantly when the CONFIRM button is pressed on orders.
I thought changing the order status was doing the same but i cannot replicate that now, il keep testing.

Re: invoice items doubled

Posted: Wed Sep 06, 2023 4:32 am
by motofox
JNeuhoff wrote:
Tue Sep 05, 2023 5:40 pm
Check your server's raw access log (you can find it via your cPanel) to see what exactly the customer did, and what exact device and/or web browser the customer was using. Also check your server's error log.
i replicated it myself on my own pc -
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36,

created an order from the front end, went to admin and messed around with the order and its everytime i press confirm button. im sure it did it on status change too but im not definate yet.

Re: invoice items doubled

Posted: Wed Sep 06, 2023 7:17 am
by ADD Creative
Looks like another bug, as I was able to recreate the issue. I made a test product that had a checkbox option with + cost. I made an order, either front end or backend, it didn't matter. Then in the admin edited the order I just created. On clicking refresh the price of the product increased by the cost of the option, so effectively the price was now the product price + (2 * option price).

You might want to check on GitHub to see id it's been reported or already fixed in the master branch.

Re: invoice items doubled

Posted: Thu Sep 07, 2023 12:22 am
by motofox
ADD Creative wrote:
Wed Sep 06, 2023 7:17 am
Looks like another bug, as I was able to recreate the issue. I made a test product that had a checkbox option with + cost. I made an order, either front end or backend, it didn't matter. Then in the admin edited the order I just created. On clicking refresh the price of the product increased by the cost of the option, so effectively the price was now the product price + (2 * option price).

You might want to check on GitHub to see id it's been reported or already fixed in the master branch.
will do, thanks for confirming

Re: invoice items doubled

Posted: Tue Sep 12, 2023 4:05 am
by Gigs
I came here to report this as well, after seeing some odd behavior with product options being double added. Thankfully it looks like the customer was only charged the lower amount.

Re: invoice items doubled

Posted: Tue Sep 12, 2023 6:48 pm
by JNeuhoff
I think it's the same issue as reported on github.

Re: invoice items doubled

Posted: Fri Sep 15, 2023 3:43 am
by motofox
JNeuhoff wrote:
Tue Sep 12, 2023 6:48 pm
I think it's the same issue as reported on github.
Thats my post on github but they have closed it as already fixed in the master, i dont see any new fixes for it and im on the master copy ? the issue remains for me

Re: invoice items doubled

Posted: Mon Sep 18, 2023 6:30 pm
by motofox
ive recently upgraded to 4023 and im still getting the same issue, confirm or status change doubles the price of anything with options.