Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Hide Order Confirmation button (after click once)

    Is there a way to hide the order confirmation button after it is clicked? (To prevent possibility of a second click/submit).

    I know that there is some submit-once code in place but it seems that some issues crop up once in a while. Would be great if the order confirmation button were hidden after a single click.

    Many thanks

  2. #2
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Hide Order Confirmation button (after click once)

    The curent submit once code does not work very wel.

    Here's a solution: http://www.zen-cart.com/forum/showthread.php?t=95195

    And I think you can hide the button by using button.style.visibility='hidden';

  3. #3
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: Hide Order Confirmation button (after click once)

    Thanks, Paul

    I implemented the jscript solutions

    How would the 'hidden' css be merged in? (I'm no css whiz)

    Many thanks

  4. #4
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Hide Order Confirmation button (after click once)

    I think it would work if you change the function submitonce and button_timeout to this
    Code:
    function submitonce()
    {
      var button = document.getElementById("btn_submit"); 
      button.style.visibility='hidden';
      setTimeout('button_timeout()', 4000);  
      return false;
    }
    function button_timeout() {
      var button = document.getElementById("btn_submit");
      button.style.visibility='visible';
    }
    But I would not do that without testing it first! Because I am not a javascript whiz

  5. #5
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: Hide Order Confirmation button (after click once)

    I gave it a whirl but no go, button graphic did not hide, will see if I can come up with something

  6. #6
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Hide Order Confirmation button (after click once)

    Hi DogTags,

    because I was doing some more tests anyway I decided to try it on a default 1.3.8a install and it really works. The (graphical) "confirm the order" button is hidden right after the form submission.

    I can PM you a link if you like.

  7. #7
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: Hide Order Confirmation button (after click once)

    Thanks, Paul.

    If you don't mind, I'd love to see an example. Yes, please PM a URL

    Thanks

 

 

Similar Threads

  1. Checkout Confirmation Page - Radio Button to Hide Div
    By limelites in forum General Questions
    Replies: 0
    Last Post: 1 May 2012, 11:28 PM
  2. How to Hide Discount Code from order confirmation emails ?
    By Rony in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 20 Sep 2010, 10:25 PM
  3. Change Order Confirmation Button On Click
    By shrimp-gumbo-mmmhhh in forum General Questions
    Replies: 0
    Last Post: 18 Jun 2008, 02:56 PM
  4. Checkout Button - click once then hide - possible ?
    By DogTags in forum General Questions
    Replies: 1
    Last Post: 1 Sep 2006, 06:30 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