News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED] Duplicate orders & payments

Started by Robert_ITMan, May 02, 2014, 15:15:09 PM

Previous topic - Next topic

hotrod

#60
Max.. Did I try this already?
Bronze Member
VirtueMart 4.2.4 10922
Joomla!  ‎4.3.4
PHP 8.0

Milbo

No and you dont take it via skype man.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nhathaitrieu6

Thank You Mibo,

I just purchased a Silver membership.  not for you guys to fix my issue. But to show how thankful I am for such a great program.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tophatco

Quote from: Robert_ITMan on July 11, 2014, 04:10:32 AM
I tested Max's /administrator/components/com_virtuemart/models/orders.php and it works on our test site VM 2.6.6

Any one else try it? Does it remove your duplicates with/without SSL..?


Sorry I haven't replied in a while.  I tested Max's orders.php over the last day.  I got a duplicate order after just 6 orders.

oviliz

Maybe you should become a member...

PS. Please change the title of this thread...

Milbo

I added some other fix,... we will release soon, contact me via pn for a version
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sstreich

I've also been having this same problem with duplicate orders. I just did a complete Joomla/VM install JM/2.5.22 VM/2.6.6.
However after spending a few days trying resolve this I just noticed this may be an issue with sessions. I am using the option for guest checkout and this seems to be the beginning of when the dups started coming in. Turning of guest checkout seems to have stopped the duplicate orders But.........
What I just noticed is that I can set on our front page keep refreshing the Home page and as a customer is browsing the site the Breadcrumbs will change along with the customer. Once I log in all I see is where I am. Logging out I now see someone else's breadcrumbs again. Customers are also complaining items are being added and dropped from their carts. Having them log in first fixes this problem.
I've also noticed the duplicate orders are only coming from customers who originally selected the Guest checkout option.
I've gone though and made sure the sessions were being written to the #_session db and also php is writing to the correct file.
I've disabled SEO and .htaccess to see if that was the problem, no difference, disabled cache in both apache and joomla nothing I alter seems to make any difference.

Not sure if these would be the same problems?

Milbo

I think I fixed the problem, finally. Hotrod tested it already.

First there is a fix for the JS to prevent that you can checkout twice.
Second there is a boolean now, so that the cart knows that it is in checkout
and third, an old order in Pending state and other conditions (abondoned) is reused, so the order is not created twice anylonger.
4th, the states of the cart are directly stored to the session, and forced writing, closing and restarting the session.

The version will be soon available.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hotrod

#69
Worked fine for me In all my tests so far.

Just tested full orders in FF, Safari, Google Chrome and The Dreaded IE..  and Works Fine.

Great Job Max..  Thank You for all you do for us. I owe you a Beer : )

For those of you that Appreciate what these guys do.  show your support here.. and become a Proud Virtuemart Supporter http://forum.virtuemart.net/index.php?topic=124355.0
Bronze Member
VirtueMart 4.2.4 10922
Joomla!  ‎4.3.4
PHP 8.0

hotrod

Hang Tight.. Found one Bug.  a simple fix I'm sure..
Bronze Member
VirtueMart 4.2.4 10922
Joomla!  ‎4.3.4
PHP 8.0

hotrod

Been working with Max the past few days. Duplicate orders In IE and SSL was fixed but a bug was allowing orders to go through with a bad CC expiration date. Customer would get "thank you for your order" but the the payment was declined and no order showed up.  So the customer would be waiting for the product and we wouldn't even know about it.  Found this by watching an order get to /confirm  but got no email. 

(site is monitored in Google reel time all day)  Great way to see when and if customers are having issues.

After a few more tweaks by Max.. Looks like we are good to go. Since the bug was at the end of the transaction. I'm confident this is now a great working version.

I will be watching closely.. Fingers Crossed..

Again Thank You Max. and the VM Team!!
Become a Proud Virtuemart Supporter http://forum.virtuemart.net/index.php?topic=124355.0
Bronze Member
VirtueMart 4.2.4 10922
Joomla!  ‎4.3.4
PHP 8.0

Milbo

#72
Thank you very much hotrod,

I am still not quite sure if it works with all payment plugins, but I also got an idea how to get it working with different payment plugins, in case we need an extra line. But for that we must wait for Alatak.

BTW: I uploaded the new version http://dev.virtuemart.net/attachments/download/762/com_virtuemart.2.6.7_extract_first.zip

and just in case you are interested, our store runs now with vm3 and it besides an incompatible plugin, it takes less than an hour to get it running http://dev.virtuemart.net/attachments/download/761/com_virtuemart.2.9.8a_extract_first.zip of course with the same double checkout fixes
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/


tophatco

Quote from: tophatco on July 25, 2014, 01:10:38 AM
Thanks Max and hotrod. I will test this tonight/tomorrow.

It doesn't look good for me.

I did 5 test orders with 2.6.7.  I did not get any duplicates... although.

All orders were tested using the same account/customer. Every time the test got sent to authorize.net in test mode and got approved.  But, instead of getting 5 different orders in VM, the new order replaced the old order. The Order Number changed but the Order ID did not. So I placed 5 orders, all 5 orders were authorized separately through authorize.net, but I only had 1 VM order showing in the backend, which only showed the detail of the last order.

:(