Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Intermittent duplicate orders

    I've been debugging intermittent duplicate orders on a 1.3.9h site. Looking at the logs it appears that the customer is hitting the confirm order button multiple times and it creates a new order each time. I found and applied changes from the forums related to using CSS buttons. This has not solved the problem. I turned on debug so I have log files but nothing is jumping out at me as the cause of the problem. Any suggestions on how to stop this or debug it?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Intermittent duplicate orders

    I believe that this has been addressed in at least ZenCart v1.5.4 with ajax
    Code:
    <?php
      echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
    ?>
    You are using about 5 year old code - time to upgrade
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Intermittent duplicate orders

    Quote Originally Posted by kobra View Post
    I believe that this has been addressed in at least ZenCart v1.5.4 with ajax
    Code:
    <?php
      echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
    ?>
    You are using about 5 year old code - time to upgrade
    Thanks for that. That line of code is already there. I'm in the process of going through the upgrade but it's still going to take some time. This 1.3.9 install was heavily modified. Any other ideas?

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Intermittent duplicate orders

    I thought that the transition from $_GET to $_POST commands was part of the solution... Been a while since worried about that issue. Thought that was a revision into 1.5.x.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Intermittent duplicate orders

    That line of code is already there.
    I do not see any implementation of "ajax" in a fresh copy of 1.3.9
    That file is tpl_ajax_checkout_confirmation_default.php
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Intermittent duplicate orders

    Quote Originally Posted by kobra View Post
    I do not see any implementation of "ajax" in a fresh copy of 1.3.9
    That file is tpl_ajax_checkout_confirmation_default.php
    Sorry, I misunderstood what you were trying to tell me. I focused on the "submitonce" which was in red as the solution. That of course was part of the line in 1.3.9.

 

 

Similar Threads

  1. v154 Duplicate orders
    By eyeb in forum General Questions
    Replies: 3
    Last Post: 28 Aug 2015, 10:37 PM
  2. Duplicate orders
    By eric engler in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2013, 10:17 AM
  3. [duplicate post] Duplicate Orders
    By chris1974 in forum Bug Reports
    Replies: 2
    Last Post: 3 May 2011, 07:28 PM
  4. Intermittent Coupon Problem -- orders marked Pending
    By Rasyr in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 4 Apr 2011, 08:11 AM
  5. Duplicate Orders
    By eradio in forum General Questions
    Replies: 0
    Last Post: 8 Mar 2008, 12:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR