Skip to content

Instantly share code, notes, and snippets.

@Sirvijver
Created September 27, 2021 11:39
Show Gist options
  • Select an option

  • Save Sirvijver/7fd5cfccaaa99b1ce90fa6f479e77eaf to your computer and use it in GitHub Desktop.

Select an option

Save Sirvijver/7fd5cfccaaa99b1ce90fa6f479e77eaf 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