• Resolved mfrethy

    (@mfrethy)


    As of this morning, the default Woocommerce Proceed to Checkout button has returned on my cart page. I didn’t change anything though I’m wondering if it has anything to do with Woocommerce’s update.

    To clarify the situation, I have Paypal Express as the only method of payment. I was having the problem with it going to the checkout page and showing that there aren’t any available payment methods (forcing users to have to click on the button at the top of the page and/or add paypal express to the list of payment methods). I then applied the code below to remove the proceed to checkout button from the cart page all together:

    remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 10);

    This was working well and the only button displaying on my cart page was the plugin’s paypal express button. Perfect. However, as of this morning, the woo proceed to checkout button is back and is sitting on top of my paypal express button. The removal code is still in place. Why is the button back and how do I make it go away?
    pricelesspetrescue.org

    https://www.ads-software.com/plugins/paypal-for-woocommerce/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Glad you were able to get it worked out!

    @mfrethy

    I visited your website and you’ve definitely figured out the Paypal Express issue. I would like Paypal Express to function exactly how you did it on your website. Could you tell me the exact codes you used and where to put them?

    Thread Starter mfrethy

    (@mfrethy)

    @techmann

    I modified angelleye’s code to be this:

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
      display: none;
    }

    My theme has a place for custom CSS which is where I entered it. However, you could also enter it into the style.css file. I would recommend having a child theme before doing it though. So in your child theme’s style.css file just enter the above code somewhere ( I like to enter new things directly above the last line of the file ) and it should work. This bypasses the checkout page all together and uses the plugin’s paypal express button instead. Exactly what I was looking for.

    The priority changed from 10 to 20 and you have to be specific in remove_action()

    remove_action( 'woocommerce_proceed_to_checkout',
    'woocommerce_button_proceed_to_checkout', 20);
Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Proceed to Checkout Button is back’ is closed to new replies.