Results 1 to 10 of 35

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Order Confirmation Processing Block

    I think I have nailed this down to an issue where the processing time for Paypal is so long that every once in awhile someone will navigate away from the page, come back, and resubmit, before Paypal sends back the confirmation.

    As a result, the cart isn't cleared and the customer is able to place a duplicate order.

    Paypal says they can't speed up processing, so I'm wondering how I could change the 'submitonce()' functionality on the checkout_confirmation button to be a page overlay instead of just a button overlay.

    There are a number of examples online, and this functionality is used in the Numinix Fast and Easy Checkout with Ajax module, but I'm trying to figure out a way to apply it to the standard template.

    Any help would be appreciated.

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Order Confirmation Processing Block

    seems like a lot of work.... have you tried:

    https://www.zen-cart.com/showthread....76#post1317476
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Order Confirmation Processing Block

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

    https://www.zen-cart.com/showthread....76#post1317476

    Nice suggestion.

    As a result I put this in place:
    https://www.zen-cart.com/showthread....00#post1314200

    It isn't a total page overlay, but it at least provides the customer a little more feedback by making the 'processing' image larger and visible even when the mouse isn't hovering over the button.

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

    Default Re: Order Confirmation Processing Block

    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.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    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.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    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!

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    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.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    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.

 

 

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