close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to show the PayPal "Continue" button by default?

Thread began 2/13/2020 6:17 am by Nathon Jones Web Design | Last modified 2/13/2020 10:26 am by Ray Borduin | 78 views | 3 replies |

Nathon Jones Web Design

How to show the PayPal "Continue" button by default?

On our checkout page, the client has asked us to completely remove the option to pay by card. So, we've tinkered about with it a bit - we changed the Billing Address li tag to:

<li style="position:absolute; visibility:hidden;">



...and now only the PayPal option appears (see attached image).

However, this still requires the user to click the PayPal option. How do we change this so that the radio button is already selected and the "Confirm" button is displayed by default?

We tried adding "checked" to the radio button...

<input type="radio" id="payment-option-paypal" class="payment-options" name="payment-type" value="paypal" onclick="wa_paymentChanged()" tabindex="0" checked>


...but the "Continue" needs an onclick to happen before it's displayed.

Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

You could probably just add this to the bottom of the page before the </body>:

<script>
wa_paymentChanged();
</script>
Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

That has had no effect. URL and credentials below.
Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

I updated the radio button to hide it and have it checked by default.

Then I updated the code at the bottom to:

<script>
$("payment-option-paypal").click();
wa_paymentChanged();
</script>



That seems to have done the trick.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...