• Resolved leelnj

    (@leelnj)


    Currently the apple pay button is below the paypal button in the checkout. This currently means that the customer will start filling out the checkout form which they do not need to do if they are using apple pay. On your stripe plugin the apple pay is before the checkout form at the top of the page which makes sense for customer work flow. Is their a way that the apple pay button can move to the top of the page. Hi, I sent my system report privately a five days ago via this page but have not heard anything back. https://paypal.inpsyde.com/docs/request-support/ . Has their been any joy on this please. Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @leelnj

    We received your report on Thursday, and I see that I responded the next day. I’ll copy the response here for you. Please also check your email, as it’s marked as “waiting for customer” at our service desk.

    Here’s the response:

    To move the Apple Pay button to the top of the page, you can indeed use the hook provided by our plugin. You will need to modify the render hook of the Apple Pay button to adjust its position. The render hook you are looking for is woocommerce_paypal_payments_applepay_checkout_button_render_hook

    Based on the WooCommerce Hooks you have several options such as

    1. woocommerce_before_checkout_form
    2. woocommerce_checkout_before_customer_details
    3. woocommerce_before_checkout_billing_form

    and others available in this guide on available hooks. Depending on where you would like to place it, here is how you can use a filter to modify it:

    add_filter('woocommerce_paypal_payments_applepay_checkout_button_render_hook', function() { return 'woocommerce_before_checkout_form'; });

    In the example above, I used the first choice from the list. It’s a bit of trial and error to find the hook that suits your preferences. If you encounter any problems or need further assistance, don’t hesitate to reach out. Implementing filters is straightforward with the help of plugins like Code Snippets.

    Kind Regards,

    Krystian

    Thread Starter leelnj

    (@leelnj)

    Thanks so much Krstian. It works great.

    • This reply was modified 6 months, 2 weeks ago by leelnj.
    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @leelnj,

    Great to hear it’s working. I’ll mark this thread as resolved.

    Kind regards,
    Krystian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move apple pay button’ is closed to new replies.