Apple Pay button
-
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 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]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Apple Pay button’ is closed to new replies.