PayPal Pay Later product page placement help

This topic has 7 replies, 2 voices, and was last updated 6 hours, 1 minutes ago ago by Adam

  • Avatar: ADamh
    Adam
    Participant
    January 16, 2025 at 09:19

    Hi,
    I am currently trying to implement PayPal Pay Later messaging on the product page(using single page builder). However, I am encountering an issue that seems related to how the theme handles hooks.

    The PayPal support team provided the following information:

    The behaviour is likely due to custom variations in how hooks are implemented in your theme. The provided snippet works seamlessly with regular WooCommerce themes, but custom themes can require adjustments to ensure compatibility.

    They suggested that the correct hook location for the add_filter(‘woocommerce_paypal_payments_single_product_renderer_hook’, function() { … } function needs to be determined. This would ensure that the messaging appears correctly on the product page. Ideally i would like to be able to add the messaging where i choose on the product page. At the moment I’ve noticed that it attaches itself to the ‘Add to wishlist’ button, so will always be beneath that.

    Would you be able to assist in identifying the appropriate hook or guide me on how this can be implemented within the theme?

    Thank you.

    Content is visible for topic creator and
    support staff only.
    Files is visible for topic creator and
    support staff only.
    6 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    January 17, 2025 at 08:11

    Dear Adam,

    We hope this message finds you well.

    Could you kindly assist us in granting full control of the rdhelp account? This would enable us to thoroughly review the settings of the PayPal Pay Later plugin.

    At the moment, we are unable to access or view the configuration for this plugin. Your support in resolving this matter would be greatly appreciated.

    Thank you in advance for your help.

    Best regards,
    The 8Theme Team

    Avatar: ADamh
    Adam
    Participant
    January 17, 2025 at 09:10

    Hi,

    I’ve added all access, please check again.

    Thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    January 17, 2025 at 10:34

    Dear Adam,

    We hope this message finds you well.

    We attempted to add some custom code to the functions.php file; however, the URL provided in the private content area is returning a 403 error.

    Could you kindly review this at your earliest convenience or install WP File Manager plugin for us?

    Thank you for your assistance.

    Best regards,
    The 8Theme Team

    Avatar: ADamh
    Adam
    Participant
    January 17, 2025 at 10:43

    Hi,

    I’ve added WP File Manager 🙂

    Thank you

    Avatar: Justin
    Luca Rossi
    Support staff
    January 17, 2025 at 11:03

    Dear Adam,

    We hope this message finds you well.

    We wanted to inform you that we have now moved the PayPal button to appear after the “Add to Cart” form. You can view the updated placement here:
    https://prnt.sc/EZpxRr6x6g_d

    This adjustment was achieved using the following hook:

     
    add_filter('woocommerce_paypal_payments_single_product_renderer_hook', function() {  
        return 'woocommerce_after_add_to_cart_form';  
    }, 999);  
    

    For your reference, you can explore all the available hooks for the single product page in this guide:
    (https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/)

    Should you have any questions or require further assistance, please don’t hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: ADamh
    Adam
    Participant
    January 17, 2025 at 15:47

    That’s great, thank you. Looking at the Business Bloomer article, it looks like we cannot place under product price. is that correct?

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.