Skip to content

Instantly share code, notes, and snippets.

@InpsydeNiklas
Created September 1, 2021 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InpsydeNiklas/df59583d363b02393fcfc88b1e2add89 to your computer and use it in GitHub Desktop.
Save InpsydeNiklas/df59583d363b02393fcfc88b1e2add89 to your computer and use it in GitHub Desktop.
hook the cart page buttons after the cart to prevent it from disappearing upon changing shipping options (might require additional CSS for placement)
add_filter('woocommerce_paypal_payments_proceed_to_checkout_button_renderer_hook', function() {
return 'woocommerce_after_cart';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment