Appointments+ Paypal Pay Button

Hi guys
We have many clients missing the pay button on the scheduler - is there a way to include a Paypal logo and to perhaps change the wording and styling on the Paypal payment button below the scheduler? Our booking page is at http://www.annhoff.com/book-a-session/.
Thanks!
Dirk (Ann's web developer)

  • Nithin

    Hey Ann,

    It would be easier to just implement the PayPal pay button, so that it looks good with the design. Please try the following CSS, and check whether it works fine:

    .app_submit_btn {
        	border: none;
        	background: url(https://www.paypalobjects.com/webstatic/en_AU/i/buttons/btn_paywith_primary_l.png) no-repeat;
        	border-width: 0;
    	padding: 3%;
    	width: 23%;
    
        }

    Once added, please add the following code in your themes functions.php file:

    function change_apps_paypal_text( $translated_text, $untranslated_text ) {
    
         //make the changes to the text
        switch( $untranslated_text ) {
    
            case 'Please confirm PRICE CURRENCY payment for SERVICE':
              $translated_text = __( ' ', 'appointments' );
            break;
    
            //add more items
         }
    
       return $translated_text;
    }
    
    add_filter('gettext', 'change_apps_paypal_text', 20, 3);

    This will remove the Please confirm... wording to a blank line, so that only the pay button image will be visible, as seen in the screenshot below. If you still want text instead of blank line, you can add some text in the above code, by replacing the line:

    $translated_text = __( ' ', 'appointments' );

    To:

    $translated_text = __( ' Your Text Goes here', 'appointments' );

    You can add the above CSS code, using Custom CSS box(if your theme offers), or either using a Child theme, or a plugin like Simple Custom CSS.

    I hope this helps. Please let us know if you still need any further assistance. Have a nice day. :slight_smile:

    Kind Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.