This topic has 7 replies, 2 voices, and was last updated 19 minutes ago ago by Adam
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.
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
Hi,
I’ve added all access, please check again.
Thank you
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
Hi,
I’ve added WP File Manager 🙂
Thank you
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
That’s great, thank you. Looking at the Business Bloomer article, it looks like we cannot place under product price. is that correct?
You must be logged in to reply to this topic.Log in/Sign up