Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    Hey Kris,

    PayPal Express is designed to skip the standard Checkout page; users go from the Cart page straight to paying through PayPal, so this is intended behavior. The PayPal Express payment gateway is not added as a standard payment gateway on the Checkout page anyways, so it’s not possible to hide the button and select PayPal Express on the Checkout page.

    Best regards,

    Thomas S.

    Thread Starter thedoubleK

    (@thedoublek)

    Thanks for response Thomas

    kris

    Hi Thomas,

    Good day

    Just follow-up on the question with regards to removing the button. I really need to remove it because of it doubled up with the proceed to checkout and confuse the user.

    Also I have install paypal express only to have the functionality to have the user use their credit card in paypal without paypal account. The standard doesn’t have that option.

    If possible can you direct me on what hook/action to override/disable to remove the button in the cart. Your guidance is greatly appreciated.

    Thanks for the awesome free plugin really useful.

    Hi Thomas Shellberg,

    Good day also want to ask if it is possible to override the Paypal Description in the total box below the paypal text and image.

    Thanks,
    Thomas

    Is it possible to do the opposite? Have the PayPal checkout on Cart page and not on the Checkout page? Right now there is a problem that in-context is not working from the checkout page.

    HI hasnaink,

    I have tried using the following functions but still not working.

    remove_action('woocommerce_after_cart_totals', array( WC_Gateway_PPEC_Cart_Handler, 'display_paypal_button' ), 0);
    remove_action( 'woocommerce_proceed_to_checkout', array( WC_Gateway_PPEC_Cart_Handler, 'display_paypal_button' ), 0);

    So I end up hiding it using css

    .woo_pp_cart_buttons_div{
        display: none;
    }

    I am still waiting for the Author/Plugin Contributor to reply on my queries.

    Thanks

    To hide the button I commented from line 59 to 127 in
    class-wc-gateway-ppec-cart-handler.php

    Not a nice way to do it but at least the function returns nothing.
    I agree there should be the way to not implement the shortcut.

    The nicer way is this:

    remove_action( ‘woocommerce_proceed_to_checkout’, array( &wc_gateway_ppec()->cart, ‘display_paypal_button’ ), 20 );

    put it into the “init” action and the cart paypal button will be removed

    at least it worked for me ??

    Work out just fine:

    remove_action( 'woocommerce_proceed_to_checkout', array( &wc_gateway_ppec()->cart, 'display_paypal_button' ), 20 );

    • This reply was modified 8 years, 1 month ago by mil0rd.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove Paypal Icon From Cart’ is closed to new replies.