Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 35
  1. #21
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,911
    Plugin Contributions
    13

    Default Re: Order Confirmation Processing Block

    i'm a fan of removing the button after clicking it.

    on another spot on one of my sites site i used the following jquery code to remove the button:

    Code:
    $(function() {
        $('#auth_button img').on("click", function (e) {
            $("#auth_button a").replaceWith("<img src='includes/languages/english/images/buttons/processing.gif' border='0' alt='Waiting' title='Waiting'>");
    	});
    });
    button replaces with:

    Name:  processing.gif
Views: 87
Size:  4.2 KB

    best.

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

    Default Re: Order Confirmation Processing Block

    Quote Originally Posted by badarac View Post
    Quote Originally Posted by carlwhat View Post
    seems like a lot of work.... have you tried:

    https://www.zen-cart.com/showthread....76#post1317476
    Since implementing that on several client sites they no longer see the duplicate orders. Hope this works for you. Dr B you might want to think about increasing the time in a future update.
    Willing to enterain a Pull Request.

    Quote Originally Posted by carlwhat View Post
    i'm a fan of removing the button after clicking it.

    on another spot on one of my sites site i used the following jquery code to remove the button:

    Code:
    $(function() {
        $('#auth_button img').on("click", function (e) {
            $("#auth_button a").replaceWith("<img src='includes/languages/english/images/buttons/processing.gif' border='0' alt='Waiting' title='Waiting'>");
        });
    });
    button replaces with:

    Name:  processing.gif
Views: 87
Size:  4.2 KB

    best.
    PR welcome.
    .

    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.

  3. #23
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,911
    Plugin Contributions
    13

    Default Re: Order Confirmation Processing Block

    Quote Originally Posted by DrByte View Post
    Willing to enterain a Pull Request.


    PR welcome.
    when i get some time, i have a couple i need to work on.... very busy right now as moving primary client's payments over to cybersource.... but i hear you!

  4. #24
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,911
    Plugin Contributions
    13

    Default Re: Order Confirmation Processing Block

    Quote Originally Posted by DrByte View Post
    Willing to enterain a Pull Request.


    PR welcome.
    DrB,
    i am looking at doing a PR for these things. what i was thinking was adding a variable to the configuration table for adjusting the timeout. in addition, i was also thinking about the replacement of the button with a moving gif similar to the one i posted earlier.

    i am not sure the reasoning for having a 4 second timeout, as opposed to removing the ability completely to resubmit. but i'm sure there is a reason.

    my question is how does one nicely get a variable into the config table for v160 (i know.... i should probably know how to do this...) and do you think that we should also add a config for completely replacing the button with a loading type of gif? or just do it and not allow users to change it?

    thanks in advance.

  5. #25
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Order Confirmation Processing Block

    Don't over think it. Less is more :)
    No need for a configuration switch: There's no need for a time-limit on the timeout. 4 seconds or 44 seconds it should be irrelevant: it's waiting for the page to reload.
    Just replace it with a generically-named .gif ... that way if someone wants a different gif they can just replace the file without touching the js/html at all.
    .

    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.

  6. #26
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,911
    Plugin Contributions
    13

    Default Re: Order Confirmation Processing Block

    Quote Originally Posted by DrByte View Post
    Don't over think it. Less is more :)
    No need for a configuration switch: There's no need for a time-limit on the timeout. 4 seconds or 44 seconds it should be irrelevant: it's waiting for the page to reload.
    Just replace it with a generically-named .gif ... that way if someone wants a different gif they can just replace the file without touching the js/html at all.
    while not overthinking it, my lack of ability to add a configuration switch bothered me. it seemed pretty inane that i was not able to figure it out (and i need to add one for another PR)... until now...

    i'm a big fan of aliases and apparently my grep alias did not include .sql files..... silly me.

    best.

  7. #27
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Order Confirmation Processing Block

    This change has worked great. No duplicates since putting it in place whereas previously there were upwards of 20 duplicates a day.

    I think the reason it worked isn't because it stopped people from placing duplicates (still possible), but rather it provided much more visual confirmation that their button clicked 'worked' and that the website was 'processing'. Therefore, they didn't start clicking around again.

    So to speak to what carlwhat was mentioning (and I'm not a programmer), the timeout, button lock (or button disappearance) aren't the most important. Just the simple animated processing gif is what is most important.

  8. #28
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,911
    Plugin Contributions
    13

    Default Re: Order Confirmation Processing Block

    linda,
    glad it worked!

    this has been incorporated into v160 of zencart. hopefully others will feel the same way.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  9. #29
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Order Confirmation Processing Block

    I upgraded one of my sites to 1.5.5b. Ever since, the upgraded site has been getting duplicates and the older one has not.

    Upon testing I've noticed that on Mobile, the animated gif doesn't appear on the upgraded site and on the old one the animated gift appears, but doesn't animate.

  10. #30
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Order Confirmation Processing Block

    Small adjustment to that last statement - the animated gif only doesn't appear when I choose CC.

    Something in the programming or CSS decides a chunk of the bottom of the page doesn't need to display so it doesn't include it. Except it isn't CSS hiding the contents because the actual contents just aren't there (viewing in Firebug).

    Again - only in mobile.

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Duplicate Orders/Order Confirmation
    By Beer_man in forum Managing Customers and Orders
    Replies: 130
    Last Post: 16 Sep 2017, 07:10 PM
  2. v150 v1.5 Duplicate order processing at certain times of the day
    By NWCE in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 24 Sep 2013, 12:10 AM
  3. No order details and duplicate orders??
    By sailsport1 in forum PayPal Website Payments Pro support
    Replies: 8
    Last Post: 6 Jun 2011, 09:06 PM
  4. Duplicate Order Confirmation Emails
    By chrismarie in forum General Questions
    Replies: 2
    Last Post: 15 Mar 2010, 05:02 PM
  5. Replies: 49
    Last Post: 23 Feb 2010, 08:52 PM

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