• Resolved crissineon

    (@crissineon)


    Hello,

    im trying to migrate from WooCommerce Paypal Checkout Gateway to WooCommerce Paypal Payments Plugin. I use the following code snippet in functions.php to display the Paypal Badges on the Checkout Page:

    // ad badges paypal to checkout
    add_filter ( 'woocommerce_gateway_icon', 'htdat_change_gateway_icon', 10, 2 );
    function htdat_change_gateway_icon( $icon, $gateway_id ) {
    if ( 'ppec_paypal' == $gateway_id ) {
       //Change the URL of your own icon here
       $icon = '<img src="/wp-content/uploads/2020/07/cc-badges-ppppcmcvdam.png" alt=""/>';
    }
    
    return $icon;
    
    }

    Unfortunately the Badges are not displayed anymore when i activate the Paypal Payments Plugin.

    Any Idea how to fix this?

    Thx
    Crissi

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Badges on Checkout Page’ is closed to new replies.