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

    (@pomegranate)

    Hi D3LL,
    This is a feature of the premium templates pack, which will let you add and remove columns and totals with a drag & drop customizer.

    Let me know if you have any other questions!

    Ewout

    Thread Starter D3LL

    (@d3ll)

    I’m sorry but $22.80 just to add a tax columns is a bit steep…

    Is it not possible just to insert a code to get the tax value?

    It’s the only thing I need.

    Thread Starter D3LL

    (@d3ll)

    Can you not just tell me the code that inserts the ‘VAT’ amount that I need to put into my template file?

    Plugin Contributor Ewout

    (@pomegranate)

    Hi D3LL,
    Of course for $19 (if you enter your VAT number you don’t have to pay tax) you get a lot more than just that, but I see your point.
    $item['tax_rates'] Gives you the rate, $item['line_subtotal_tax'] gives you the amount (before discount).

    That’s in the columns. If you need to change the total rows, that’s a lot more difficult because the total rows come straight from woocommerce. You can get an array of all taxes from `$wpo_wcpdf->get_order_taxes()’.

    Hope that helps!
    Ewout

    Thread Starter D3LL

    (@d3ll)

    I’ve managed to get it to product the Tax amount however for some reason its doing it 3 times….

    https://i.gyazo.com/29b7572caa710e49469fa7c84748708c.png

    Any ideas?

    Plugin Contributor Ewout

    (@pomegranate)

    It looks like you put the item tax ($item[‘line_subtotal_tax’]?) in the total rows. But it doesn’t work like that because the totals is an array and the plugin loops over it. If you put the tax there directly it will just print it for every array element (=total row). You can either use the wpo_wcpdf_woocommerce_totals filter and splice the array from $wpo_wcpdf->get_order_taxes() in there, or print that taxes array separately.

    Thread Starter D3LL

    (@d3ll)

    I’ve now purchased the templates due to it being far to confusing however I now have an issue…

    The invoice works fine with emailing and producing it from the ‘Orders dashboard’ in WordPress.

    However in the my account area when trying to download I just get this error:
    Are you sure you want to do this?
    Please try again.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi D3LL,
    You usually get that error when the link has expired (i.e. the page has been open for too long). This is a general WordPress security measure, I believe these links expire after 12 hours. Can you reload the My Account page and try again? If you still get that error, email me at support@wpovernight.com and I’ll do my best to help!

    Ewout

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Invoice change add Tax Column’ is closed to new replies.