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

    (@pomegranate)

    Hi Aristotele,
    The default value (from $item['order_price']) follows your woocommerce settings. Then there’s a whole list of varations of this price (single item or total for that item, including or excluding tax, before or after discount…).
    The single price that you tried to call is indeed including tax (before discount). If you want the single price excluding tax, you need $item['ex_single_price']. Otherwise you can try $item['ex_price']

    Hope that helps 🙂

    Ewout

    Hi Ewout, I hook in into this topic because I actually need the same. I believe you are from Holland, and I have looked up the rules for an invoice. In Holland we don’t need to send retail clients an invoice, but if we do your excisting ‘Simple template’ format would work. However, if you have other businesses as a client we MUST send an invoice, and for that the way ‘Simple template’ is formatted right know is not correct. See here.

    It should list:

    – individual item prices ex. tax;
    – the tax rate;
    – the total tax amount.

    I will send you an image from my bookkeeping software how it should be. Have you taken these rules into consideration when building the plugin?

    Anyway, we are able to create or own template as well, so I started trying ex_single_price and ex_price, but both are still showing the same price as with single_price.

    And do you know where I can find all these woocommerce ‘variations’ as a reference of what I can use in my own pdf templates?

    Kind regards,

    Willem-Siebe Spoelstra

    Sorry, forgot to select my own template, so will test the ex prices again.

    Hi, the ex prices are working.

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Willem,
    If you need more detailed template, I recommend that you purchase the Business templates – it suits all you needs (including the split out tax totals) and conforms to the dutch standards.

    Have a great day!
    Ewout

    Thread Starter Aristotele

    (@a443287)

    Thanks for the help, Ewout. It worked just fine.

    Future Feature Suggestion: it’ll be very cool to have a preview button to preview the changes done on the invoice.php file. Right now it’s not very handy recreating the invoices of an order to see the changes every time…

    Plugin Contributor Ewout

    (@pomegranate)

    Hi Aristotele,
    You can just let the invoice open in een new tab en press refresh and it will regenerate. You can also output to HTML with this snippet in your theme’s functions.php – you could then modify the HTML on the fly with the Chrome Developers Tools for example.

    add_filter( 'wpo_wcpdf_output_html', '__return_true' );
    add_filter( 'wpo_wcpdf_use_path', '__return_false' );

    This code will not affect email attachment, but I recommend to remove it after you’re done testing anyway.

    Thread Starter Aristotele

    (@a443287)

    didn’t know that tho. thanks! that’s useful

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to display Product price without tax/vat’ is closed to new replies.