Support Center

Have something to share with the community? Ask a question, answer a question, share a cool resource or show off a great piece of work.

How to add the pay ...
 
Notifications
Clear all

[Solved] How to add the pay later message below the product price

2 Posts
2 Users
0 Reactions
498 Views
Posts: 3
 John
Topic starter
(@john)
Active Member
Joined: 2 years ago

Hi there,

Can you tell how to add the pay later message below the product price. Any customization in code are there?

Thanks,

John

Reply
1 Reply
Posts: 44
Moderator
(@ppsupport)
Member
Joined: 2 years ago

Hi John

First, please ensure the Pay Later messaging is enabled for the single product page in the Pay Later tab. Where the buttons/messaging are displayed depends on your theme, but you could modify the default position on the single product page with a filter like this:

add_filter('woocommerce_paypal_payments_single_product_renderer_hook', function() {
return 'woocommerce_before_add_to_cart_form';
});
This filter must be added to the functions.php file of your child theme.

At this time, both the buttons and the messaging use the same render hook, but two different divs. So beyond modifying the render hook, minor adjustments may also be possible to achieve with custom CSS. But it depends on what exactly you are looking for.

Kind regards,
PNX Support Team

Reply

Ask the professionals

Click the button Add topic and post your question. Try and be as detailed as you can for better help. Or, please refer to the installation manual to check if any solutions.

Categories

Support Guide

Installation & Configuration

Technical support

Report a bug

Code help

Paid help wanted

FAQ

FAQ

Frequently Asked

Does this plugin work with credit cards or just PayPal?

This plugin supports payments using both credit and debit cards as well as PayPal. The new Smart Payment Buttons feature dynamically displays PayPal, Venmo (US Only), PayPal Credit, or other local payment options* in a single stack—without needing to leave the merchant’s website.

*PayPal Checkout features may not be available in all countries.

Does this support Checkout with PayPal from the cart view?

Yes it does support Checkout with PayPal from the cart view.

Where can I find documentation?

For help setting up and configuring, please refer to our Installation Manual.

Will this plugin work with my theme?

Yes, this plugin will work with any theme, but may require some styling to make it match nicely.

Where can I request new features or report bugs?

New feature requests and bugs reports can be made in the our Support Center.

How to remove ‘Proceed to Checkout’ button from cart page?

If PayPal Checkout is the only enabled payment gateway and you want to remove the ‘Proceed to Checkout’ button from the cart, you can use this snippet: 

<?php // Do not include this if already open!

/**
* Code goes in theme functions.php.
*/
remove_action( ‘woocommerce_proceed_to_checkout’, ‘woocommerce_button_proceed_to_checkout’, 20 );

Does this support both production mode and sandbox mode for testing?

Yes it does – production and sandbox mode is driven by how you connect. You may choose to connect in either mode, and disconnect and reconnect in the other mode whenever you want.