OH Ok,
So I have had CSS in my child theme to disabled the Apple Pay in cart page. Works Fine.
Another question. This code doesn’t seem to works anymore :
/*
* 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 );
Do you know why ?
Laurent
-
This reply was modified 6 years, 9 months ago by Laurent-ma.