• Resolved jandrix

    (@jandrix)


    Hi, the invoice attached in customer email confirmation is different than one that admin could download in woocommerce order page. The VAT informations summary is different.

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

    (@pomegranate)

    Hello Jandrix,
    That is strange. What do you mean by ‘VAT informations summary’? Is this a third party component/custom coded? Could you perhaps show two example screenshots of the same order showing this ‘VAT informations summary’?

    Thread Starter jandrix

    (@jandrix)

    Hi, yes I show you both.

    Customer email pdf: https://i.snag.gy/kP2TcJ.jpg

    Admin order pdf: https://i.snag.gy/bkHIqj.jpg

    Plugin Contributor Ewout

    (@pomegranate)

    These are two different orders though, the “(sin IVA)” bit is a result of the woocommerce tax settings at the time the purchase was made. Could you check two PDF files from the same order?

    Thread Starter jandrix

    (@jandrix)

    Always is the same structure, no depends of the order.

    Customer email pdf:

    Subtotal
    Envío
    IVA
    Total

    Admin order pdf:

    Subtotal
    Envío
    Total

    The good and legal structure is the first. At last, we need to have the same invoice.

    Plugin Contributor Ewout

    (@pomegranate)

    I see, this means that a customization has been applied to the email template, either using a filter (woocommerce_get_order_item_totals) or directly in the template (here), by changing $totals = $order->get_order_item_totals(); to $totals = $order->get_order_item_totals('excl');.

    I suspect it’s the latter, but this is something you or your site developer should check. If this is indeed the case I recommend switching this over to using the woocommerce_get_order_item_totals filter which will then make this appear universally like that. You could also set the “Display prices during cart and checkout” setting under WooCommerce > Settings > Tax to “Excluding tax”, which will have the same effect (but of course also in the checkout and cart so I don’t know if that’s ok for your site).

    Since this concerns a customization, we cannot provide further support for this. If you want full control over how the prices are displayed in the totals (regardless of woocommerce email/checkout/cart tax settings) we offer the Premium Templates extension that allows you to do this with the customizer.

    Hope that helps!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different invoice format in admin and in customer account’ is closed to new replies.