Viewing 8 replies - 1 through 8 (of 8 total)
  • screenshots are not showing

    Thread Starter sasquatchms

    (@sasquatchms)

    Really? They are hosted on imgur, no issue for me

    Admin Panel: https://i.imgur.com/jnlM294.png
    PDF Invoice: https://i.imgur.com/68WTp08.png

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! WooCommerce filters out ‘free fees’ by default (you’ll notice that these will be absent in the woocommerce emails too). You can let them show by using the following code snippet:

    
    add_filter( 'woocommerce_get_order_item_totals_excl_free_fees', '__return_false' );
    

    If you haven’t worked with filters before, read this guide: how to use filters.

    Hope that helps!
    Ewout

    Thread Starter sasquatchms

    (@sasquatchms)

    Thanks for your help! Yes I work with filters. I added the filter to the functions.php file in my child theme (along with my other custom snippets) but it did not resolve the issue.

    Plugin Contributor Ewout

    (@pomegranate)

    That’s odd, I did test this with a free fee on my own site and this worked for me (both WC3.0 and WC2.6)… Does it work when you manually add a free fee to an order (just to rule out any issues specific to a plugin?).

    Ewout

    Thread Starter sasquatchms

    (@sasquatchms)

    Morning,

    Actually, our use case is adding the free fees manually.

    Thanks

    Thread Starter sasquatchms

    (@sasquatchms)

    I am on WC 2.6.14

    Plugin Contributor Ewout

    (@pomegranate)

    Then I have no idea what’s different here…

    This is my ‘free fee’:
    free fee

    and this is how it looks in the PDF invoice:
    Free fee in invoice totals

    and without the filter it’s indeed absent:
    free fee without filter = absent

    Are you sure you have saved the action to the correct functions.php?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fees not showing on invoices’ is closed to new replies.