• Resolved Mauricio

    (@mauriciogarofalo)


    Hi, I see a tutorial for changing paypal button on checkout:

    /**
     * Change the PayPal button image on the Paid Memberships Pro - Membership Checkout page.
     *
     * You can add this recipe to your site by creating a custom plugin
     * or using the Code Snippets plugin available for free in the WordPress repository.
     * Read this companion article for step-by-step directions on either method.
     * https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
     */
    function my_pmpro_paypal_button_image( $url ) {
    	return 'https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-large.png';
    }
    add_filter( 'pmpro_paypal_button_image', 'my_pmpro_paypal_button_image' );

    But not working when I use Paypal express ID “pmpro_btn-submit-paypalexpress” for the button, what I’m doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mary Job

    (@mariaojob)

    Hi @mauriciogarofalo,

    I am not clear on what you refer to when you say "I use Paypal express ID, pmpro_btn-submit-paypalexpress for the button".

    I followed the guide to change my PayPal button and this worked as expected. If you are trying to embed your PayPal ID into the PayPal Image object, please note that this will not work.

    Could you clarify what you were attempting to achieve, please?

    • This reply was modified 2 years, 1 month ago by Mary Job.
    Thread Starter Mauricio

    (@mauriciogarofalo)

    Hi Mary, I’m using PMPro guide to change icon (I’m using PayPal express checkout) bug image doesn’t change.

    I thought that the guide is for standard Paypal because in code ID didn’t say ‘express ‘ word, my bad.. but still image doesn’t change.

    Plugin Support Mary Job

    (@mariaojob)

    Hi @mauriciogarofalo, the code in this guide should work for any of the PayPal flavors (standard or express), I am still not able to recreate this. Without more information about your site setup, I am not able to pinpoint why this is not working on your site.

    I recommend reaching out to a local WordPress developer to help look into this further on your website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change checkout PayPal Express button’ is closed to new replies.