Author Topic: [SOLVED] Duplicate orders & payments  (Read 31477 times)

hotrod

  • Jr. Member
  • **
  • Posts: 129
Re: [SOLVED] Duplicate orders & payments
« Reply #60 on: July 11, 2014, 05:05:37 am »
Max.. Did I try this already?
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Duplicate orders & payments
« Reply #61 on: July 11, 2014, 09:43:52 am »
No and you dont take it via skype man.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nhathaitrieu6

  • Beginner
  • *
  • Posts: 1
  • Skype Name: NhatVo
Re: [SOLVED] Duplicate orders & payments
« Reply #62 on: July 11, 2014, 12:34:59 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Duplicate orders & payments
« Reply #63 on: July 11, 2014, 14:50:48 pm »
Thank you very much.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tophatco

  • Beginner
  • *
  • Posts: 46
Re: [SOLVED] Duplicate orders & payments
« Reply #64 on: July 16, 2014, 15:46:30 pm »
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

  • Beginner
  • *
  • Posts: 27
Re: [SOLVED] Duplicate orders & payments
« Reply #65 on: July 16, 2014, 23:53:44 pm »
Maybe you should become a member...

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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Duplicate orders & payments
« Reply #66 on: July 17, 2014, 21:05:08 pm »
I added some other fix,... we will release soon, contact me via pn for a version
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

sstreich

  • Beginner
  • *
  • Posts: 5
Re: [SOLVED] Duplicate orders & payments
« Reply #67 on: July 21, 2014, 04:52:56 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Duplicate orders & payments
« Reply #68 on: July 22, 2014, 20:04:35 pm »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hotrod

  • Jr. Member
  • **
  • Posts: 129
Re: [SOLVED] Duplicate orders & payments
« Reply #69 on: July 22, 2014, 20:24:24 pm »
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
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

hotrod

  • Jr. Member
  • **
  • Posts: 129
Re: [SOLVED] Duplicate orders & payments
« Reply #70 on: July 22, 2014, 21:55:31 pm »
Hang Tight.. Found one Bug.  a simple fix I'm sure..
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

hotrod

  • Jr. Member
  • **
  • Posts: 129
Re: [SOLVED] Duplicate orders & payments
« Reply #71 on: July 24, 2014, 20:34:40 pm »
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
VirtueMart 3.6.10
Joomla! 3.9.18
PHP Version    PHP 7.3.13  
Dedicated Server.
http://forum.virtuemart.net/index.php?topic=124355.0

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [SOLVED] Duplicate orders & payments
« Reply #72 on: July 25, 2014, 00:50:38 am »
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tophatco

  • Beginner
  • *
  • Posts: 46
Re: [SOLVED] Duplicate orders & payments
« Reply #73 on: July 25, 2014, 01:10:38 am »

tophatco

  • Beginner
  • *
  • Posts: 46
Re: [SOLVED] Duplicate orders & payments
« Reply #74 on: July 25, 2014, 02:55:34 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.

:(