Move ApplePay and GooglePay before “place order” button. Tested and working.
Paste it into functions.php
add_action( 'wp_loaded', 'move_stripe_pay_buttons_to_payment_section_checkout' );
function move_stripe_pay_buttons_to_payment_section_checkout() {
if ( class_exists( 'WC_Stripe_Express_Checkout_Element' ) ) {
remove_action( 'woocommerce_checkout_before_customer_details', [ WC_Stripe_Express_Checkout_Element::instance(), 'display_express_checkout_button_html' ], 1 );
add_action( 'woocommerce_review_order_before_payment', [ WC_Stripe_Express_Checkout_Element::instance(), 'display_express_checkout_button_html' ], 1 );
}
}
-
This reply was modified 1 year, 1 month ago by ddc90.
I’m facing the same problem. I selected the rule “all products” but it is showing also in the shop search page.
I have the same problem! (EO 2.9.1)