• Resolved nvlitsolutions

    (@nvlitsolutions)


    I noticed that the prices and VAT of the products my customer is selling are missing. The confirmation mails include the prices with VAT and taxes have been setup properly. I’m running the latest version of the plugin.

    Any experience with this issue and how to resolve it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi there! Are all prices missing from the invoice? Could you post a screenshot of the invoice output?

    Thread Starter nvlitsolutions

    (@nvlitsolutions)

    This morning I tried to remove the plugin and reinstalled it and now suddenly the prices are being displayed. Only VAT is missing now.

    Screenshot_from_2018_08_17_11_12_38

    Plugin Contributor Ewout

    (@pomegranate)

    Can you check the backend too, for this specific order? See: Taxes missing

    Thread Starter nvlitsolutions

    (@nvlitsolutions)

    I already checked the backend (taxes) but everything has been setup correctly as far as I can see. Attached an overview of the order in the backend.

    order_with_price_and_tax

    Plugin Contributor Ewout

    (@pomegranate)

    That’s very strange – indeed that looks like it’s all setup as it should… Also since you mention “The confirmation mails include the prices with VAT”.

    Normally, with the Simple template it should show “Totaal: €105.00 (inclusief €4.81 BTW: 6%, €3.47 BTW: 21%)” where it simply says “Totaal: €105.00” now, just like in the WooCommerce emails. Unless a filter somewhere overrides this… Are you aware of any filters on this site related to the totals in WooCommerce? It’s especially odd because the Simple template uses the exact same WooCommerce functions that are used for the emails (hence the same output).

    Thread Starter nvlitsolutions

    (@nvlitsolutions)

    I use some filters to change the prices / VAT from some products but certainly not all products. This only applies to products that include alcoholic drinks due to legislation. As you can see in the previous screenshot the breakfast my customer sells includes some items (croissant, roos, ..). Before payment takes place this breakfast also includes a bottle of champagne. After payment an action and some filters process the order and recalculate the totals and make sure champagne becomes a seperate product so it can be rated at 21% VAT instead of 6% VAT for the breakfast. But because this only applies to specific products (breakfasts) I would expect this issue only on that kind of orders.

    What I now just tried is renaming my functions.php so that no filters are being used. Now I can see the expected output € 105,00 (inclusief € 4,81 BTW: 6%, € 3,47 BTW: 21%.

    My customer doesn’t want the VAT to be displayed on his confirmation mails, only on invoices. His breakfasts are being displayed with VAT included right now.

    So I need to adjust my filters. But how do I determine that PDF Facturen is requesting the data to make sure the values are being return unfiltered?

    Plugin Contributor Ewout

    (@pomegranate)

    My customer doesn’t want the VAT to be displayed on his confirmation mails, only on invoices. His breakfasts are being displayed with VAT included right now.

    That explains the source of the issue, and contradicts your earlier statement “The confirmation mails include the prices with VAT”.

    You could use the wpo_wcpdf_before_html action hook which runs before the HTML for the PDF is created. but perhaps it’s better to do it the other way around and only add your filter on the woocommerce_email_before_order_table hook (or any other email specific hook that runs before the totals are requested).

    Good luck!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Prices and VAT missing on invoices’ is closed to new replies.