Support » Plugin: WooCommerce PDF Invoices & Packing Slips » How to have persistent invoices ? (not regenerate at each request)

  • Resolved Malaiac



    I’m having troubles on a website where I’ve been using the plugin for quite a few months.
    A small tax ratio has changed last month, which has been updated on the website and new invoices.

    However, when I (or the customer) downloads an invoice for an order that was ordered _before_ the change, the invoice uses the new tax ratio.
    It doesn’t please the accountant.

    The ‘use_latest_settings’ is off and has always been.

    Is there a simple way to prevent the plugin regenerating the invoice at each call ? Or an alternative way to store the invoices as they are generated in a folder that could work as “archive”

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ewout


    Tax amounts and tax names are stored in the WooCommerce order data and not modified by changes you make in the the tax settings. In the Simple template, the default tax rate formatting is used by WooCommerce, which displays as:

    Total: {order_total} (Includes: {tax_amount} {tax_name}

    or formatted with values:

    Total: €26.05 (Includes: 4.52 VAT)

    so unless you have made changes to the template, it should not be affected by changing the tax rates.

    The rate percentage itself is not stored by WooCommerce in the order (there’s an open pull request for this feature that may be included in WooCommerce 3.7), but it is not used in the Simple template. Our Premium Templates extension does include a feature to show the tax percentage too, but this also includes functions that store the percentage in the order data so that it is not influenced by the tax settings.

    Long story short: if you are using the Simple template this shouldn’t be an issue and if you are using the Premium Templates the rates should already be stored in the order. If you do use the Premium Templates and you have this issue, please contact us at and we’ll do our best to find out why it’s not working for you.

    Unfortunately this plugin does not currently allow storing the PDF files for reuse.



    Thanks for your detailed answer !

    I will go back to the code to see where it fails (in our case, the site use multiple custom taxes, so I might start with these)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to have persistent invoices ? (not regenerate at each request)’ is closed to new replies.