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

    (@baaaaas)

    How did you set the fee?

    Thread Starter johanruitenbeek

    (@johanruitenbeek)

    Hi Bas,

    Trough the plugin (sisow epay)

    Thread Starter johanruitenbeek

    (@johanruitenbeek)

    Or should i use another plugin to set fees, which is compatible with yours?

    Plugin Author Bas Elbers

    (@baaaaas)

    I’m sorry I don’t know the way Sisow adds fees. Add this action to your functions.php within your theme and you are good to go.

    add_action( 'woocommerce_cart_calculate_fees','add_woocommerce_fee' );
    function add_woocommerce_fee() {
    global $woocommerce;
    
    if ( is_admin() && ! defined( 'DOING_AJAX' ) )
    return;
    
    $amount = 5;
    $woocommerce->cart->add_fee( 'FEE_NAME', $amount, true, 'standard' );
    }

    Or let me know how Sisow does it and I am happy to help you out.

    Thread Starter johanruitenbeek

    (@johanruitenbeek)

    Hello Bas, thnx! It works 😉

    Plugin Author Bas Elbers

    (@baaaaas)

    Great! Would you be so kind to rate my plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fees not shown on invoice’ is closed to new replies.