• Hi

    I’m using this code

    // Exclude invoice when chosen faktura
    function exclude_payments($payment_methods)
    {
        
        return array('klarna','cheque');
    }
    add_filter('bewpi_attach_invoice_excluded_payment_methods', 'exclude_payments', 10, 2);

    Order looks like this in database: https://imgur.com/a/Nev6h3k

    I’m using a custom invoice template.

    No relevant errors in error_log. Rest of the plugin working fine.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Hi Sigurd,

    So you want to make sure that no invoice will be added to the email when using klarna or cheque payment method has been used?

    So in this situation our plugin did attach a PDF invoice to order number 1227?

    Did you’ve added the filter function to your (child) themes functions.php file?

    Thread Starter Sigurd Heggemsnes

    (@heggemsnes)

    Yes, yes and yes.

    Plugin Author Bas Elbers

    (@baaaaas)

    In order for us to resolve this issue we will need more information. Please check the first topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excluding payment method not working’ is closed to new replies.