Skip to content

Adding static info to each payment method. #944

Answered by goclimbing
goclimbing asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Basti,

thanks - that's another idea that might help.

I was able to find the hook. I'm considering adding BS tooltips.

add_filter('woocommerce_gateway_description', 'add_custom_text_after_payment_method', 20, 2);
function add_custom_text_after_payment_method($description, $payment_id)
{
// Add custom text for specific payment methods
switch ($payment_id) {
case 'bacs': // Bank Transfer
$custom_text = '

No Fee. Note: Bank transfers may take up to 3 business days to process.

';
break;
case 'cod': // Cash on Delivery
$custom_text = '

Please have the exact amount ready at delivery.

';
break;
case 'paypal': // PayPal
$custom_text = '

3% fee. Ships 2-3 days after payment clears. You will be redire…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goclimbing
Comment options

Answer selected by crftwrk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants