Home › Forums › Themes Support › Gecko › Apple pay button fail to display in cart & checkout page
- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by
Harry.
-
AuthorPosts
-
-
March 9, 2021 at 2:07 pm #40836
-
March 9, 2021 at 2:50 pm #40838
We are using stripe payment and enabled the apple pay, but the apple pay button display in product (single) page only, fail to display in cart & checkout page.
-
March 9, 2021 at 5:19 pm #40840
Hi creatfeb,
Can you please enable Apple Pay on your site or send me login credentials to check.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 10, 2021 at 4:08 pm #40856
Hi,
Please try follow this topic https://wordpress.org/support/topic/applepay-button-not-showing-on-checkout-page/ and add below code to gecko-child > functions.php
/* * Adds then moves Apple Pay button on the checkout page. */ add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' ); remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 ); remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 ); add_action( 'woocommerce_after_checkout_form', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 2 ); add_action( 'woocommerce_after_checkout_form', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 1 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 11, 2021 at 11:48 am #40872
Hi,
Please reply on our topic so i can track your issue. It hard to track your issue over email with more quote.
Please change code to
/* * Adds then moves Apple Pay button on the checkout page. */ add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' ); remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 ); remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 ); add_action( 'woocommerce_after_checkout_form', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 2 ); add_action( 'woocommerce_proceed_to_checkout', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 2 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 11, 2021 at 12:03 pm #40873
-
March 11, 2021 at 5:41 pm #40877
Hi,
Could you send me FTP account to check?
I added code to your site but it now error.
I need to check to fix.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.