Apple pay button displayed separately
-
Hi!
Currently, at the checkout page, the apple pay button is displayed on the top of the page and not with the other payment gateways at the bottom. I’m not sure what’s causing this issue, because every other payment method I add is appearing at the bottom. I would like to have all the buttons together, but I don’t see any options where I can move it to the bottom.
I’ve tried to rearrange it with this code, but it only caused a fatal error:
/*
* Removes Apple Pay button on the checkout page.
*/
remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_button’ ), 1 );
remove_action( ‘woocommerce_checkout_before_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_separator_html’ ), 2 );/*
* Adds Apple Pay button on the checkout page, below customers details, and inverse button/separator order.
*/
add_action( ‘woocommerce_checkout_after_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_separator_html’ ), 1 );
add_action( ‘woocommerce_checkout_after_customer_details’, array( WC_Stripe_Apple_Pay::instance(), ‘display_apple_pay_button’ ), 2 );Is there a way where I can move the button to the other payments?
Thank you in advance!The page I need help with: [log in to see the link]
- The topic ‘Apple pay button displayed separately’ is closed to new replies.