• Hi!

    The filter hook ’woocommerce_order_get_items’ seem to not be removed properly in WC_Email_Notify_Vendor→trigger which means it is afterwards also applied in WC_Abstract_Order→get_order_item_totals where it then replaces not only vendor receipt subtotals with the commision only(if that settings is on), but also regular end customer receipts shows the commision where it should just always show the full price(no matter what the comission setting is).

    I have tried to figure out why remove_filter does not return true/success when removing the filter, but I cannot figure it out. Maybe I miss something or this could be implemented better.

    Help is much appreciated as I have so far used way too many hours to get to where I am now.

    <3

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Maya Kathrine Andersen

    (@mander26)

    UPDATE:
    The ‘remove_filter’ IS working. Something else is wrong. All I can say for sure is that if I remove the lines that adds and removes the filter ‘woocommerce_order_get_items’ then the end customer receipt(s) looks fine, but that of course creates a bug in the vendors email receipt where commisions should be shown. I need to workaround this until I have better time to debug this crazy thing. So I will disable the vendor e-mail and vendors will then just have to look their orders instead. Any information that can clear out my issue is still very much appreciated.

    Jamie

    (@digitalchild)

    Hello,

    It sounds like another plugin is hooking into these filters also. Also in 2.0 I have completely re-written all email classes. I’m aiming to have that out this week. It’s also available on GitHub now for testing.

    cheers,

    Jamie.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong subtotals in customer receipts’ is closed to new replies.