Okay
  Public Ticket #3484667
Add Payment fee
Closed

Comments

  •  1
    AYMX started the conversation

    Hello,

    is there any way to add a costum fee for a payment method like PayPal? In the dynamic rools there is only Payment Method Discount.

  •  2,537
    WebWizards replied

    Hi there!

    Thank you for purchasing our plugin,


    Yes, to add a surcharge for a particular method, you can create a discount rule, but enter a negative value (E.g. -10) in the dynamic rule.

    For example, here is a 20% surcharge rule for paying with COD:

    image-6-1024x222.png

    And this is what it looks like on the frontend:

    image-7-1024x776.png

    Let me know if I can help with anything, or if you have any questions,

    Kind regards,

    Stefan


  •  1
    AYMX replied

    Hi Stefan,


    Thank you for your rebly,


    This works good but is there any way to remove or edit the badge "surcharge" on the checkout page without CSS?

  •  2,537
    WebWizards replied

    Yes, you can change that by adding this PHP code snippet to the site:

    add_filter('b2bking_text_payment_method_discount', function($text, $percent){
           $text = 'replace with another text';
    }, 10, 2);
    

    It allows you to replace the surcharge text with anything else.


    A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/