Jump to content

Payment Button Click Once


mediademon

Recommended Posts

Hi

 

Hope i'm posting to the correct forum, I see this more as a bug resolution as opposed to a customization or feature request...

 

I was hoping to add some JavaScript to the "Pay Now" button on the invoice template (viewinvoice.tpl) to disable it once clicked.

 

I have had duplicate orders/invoices created from the client area for domain renewals and was wondering if the client was double clicking the "Pay Now" button?

 

I was going to add (not a bad idea anyway!):

 

onclick="javascript:this.disabled=true;this.value = 'Please Wait...';"

 

But instead of finding the payment button input html i found the PHP variable {$paymentbutton}.

 

How do I change the payment button to add this client side code?

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated