Your account expired support, please renew to get your support.

Home Forums Themes Support Gecko Apple pay button fail to display in cart & checkout page

Viewing 6 reply threads
  • Author
    Posts
    • #40836
      creatfeb
      Support Expired

      Hello,

      The apple pay button can display in product (single) page, but fail to display in cart & checkout page.

       

      Many Thanks

       

      Attachments:
      You must be logged in to view attached files.
    • #40838
      creatfeb
      Support Expired

      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.

    • #40840
      Harry
      Support Expired

      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

    • #40856
      Harry
      Support Expired

      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

    • #40872
      Harry
      Support Expired

      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

    • #40873
      creatfeb
      Support Expired

      Hi,

      Thanks for your help.

      Checkout page can display apple pay button, but the cart page still cannot.

      The attachment is cart page, is the red circle part is apply pay button?

      Attachments:
      You must be logged in to view attached files.
    • #40877
      Harry
      Support Expired

      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

Viewing 6 reply threads

You must be logged in to reply to this topic.