Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Plugin Contributions
    0

    Default Preventing duplicate orders for users with JS disabled...?

    Hello,

    I'm a developer that has inherited a not-so-ideal implementation of Zen Cart... One of the first tasks that i was given was to prevent duplicate orders that has been happening pretty frequently.

    On step 3 of 3, when the user clicks the confirmation button, depending on the amount of items in the cart, network traffic, it can take several seconds to finish.

    If the user gets impatient and clicks the submit button again, this will send another request which will cause a duplicate orders.

    So we added some JS to make the submit button disappear after the first click. While this helped a great deal, it's still possible to create dupes by disabling JS (in IE especially).

    Has anyone found a viable solution to prevent this from happening? I believe this final step should an all or nothing type of deal, but the user can get some strange results depending on when they click on that button again...

    Thanks in advance

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Preventing duplicate orders for users with JS disabled...?

    Quote Originally Posted by lakermark View Post
    we added some JS to make the submit button disappear after the first click. While this helped a great deal, it's still possible to create dupes by disabling JS (in IE especially).
    What version of Zen Cart? (I ask, because the current version of Zen Cart already has JS on the checkout-confirm screen to prevent duplicate clicking.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v138a Problem with duplicate orders
    By kobra8 in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 9 Apr 2014, 11:20 AM
  2. Duplicate Orders with v1.39
    By kdipaolo in forum General Questions
    Replies: 2
    Last Post: 22 May 2012, 07:38 AM
  3. [Done v1.3.9d] Duplicate orders with paypal
    By thysm00 in forum Bug Reports
    Replies: 0
    Last Post: 1 Dec 2009, 01:44 AM
  4. Duplicate orders with cc thru Paypal?
    By tracimurphy in forum Built-in Shipping and Payment Modules
    Replies: 18
    Last Post: 31 Jul 2007, 05:13 AM

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