• Resolved erikdemarco

    (@erikdemarco)


    When you change footer text.
    and then print invoice. (you will see your ‘footer text’).

    Then change the footer text to empty.

    Then print the invoice once more. The ‘footer text’ will still be there.

    Maybe you cache the invoice creation and forget to delete it when ‘footer text’ changed?

    But….
    Why inovice not created dynamically? Why you store it in temporary folder?

    It really doesnt make any sense. We only do print maybe once a day why you need to cache the invoice?

    Another case:
    When we print and we want to change some order info (maybe add more item to COD order).
    After editing. The invoice still show old data. Once again doesnt make any sense

    • This topic was modified 5 years, 3 months ago by erikdemarco.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    This is by design: an invoice should not automatically change when your settings change. Let’s say your company name changes or you move places. The old invoices were sent from the previous company and fiscally do not belong to the new company, so they should keep the same details. This is not necessary for the Packing Slip, and for that reason you’ll see the packing slip will always have the latest footer/etc text by default.
    This doesn’t hold true for line items or addresses etc, because this is core order data. There was an issue with the last release that would cause the PDF file to be cached with some hosts, we tackled this already and the updated for this is to be released next monday.

    Our plugin itself don’t ‘cache’ or store the PDF file in a temporary folder, we simply bundle this data with each order (along with the invoice number & date). If you delete the invoice from the order (click the trash can icon), then recreate it, you’ll see it has updated the settings too.

    There’s two ways to override this behavior:

    • When you only want to see the updated footer text because you’re still testing, you can enable “Test Mode” in the General tab.
    • When you always want to use the latest settings, you can enable the option “Always use most current settings” under Documents > Invoice.
    • This reply was modified 5 years, 3 months ago by Ewout. Reason: added information about recent bug
    Thread Starter erikdemarco

    (@erikdemarco)

    thank you so much, i didnt know “Test Mode” in the setting.

    “we simply bundle this data with each order (along with the invoice number & date)”
    Do you mean your plugin store each inovice data? So it will take up space if we have huge list of generated invoice? How to delete this data if we not require this anymore?

    • This reply was modified 5 years, 3 months ago by erikdemarco.
    Plugin Contributor Ewout

    (@pomegranate)

    Only the text is stored – depending on how much text you enter for the footer, the total uncompressed size per invoice is between 1-4kb. For 100.000 invoices that would be 100-400mb (uncompressed). If that’s an issue I recommend upgrading your host because at 100.000 invoices you can hopefully afford a bit more diskspace. And if you don’t want to store this data at all (at your own risk: as I mentioned, it works like this for a good reason!), you can add this line to your site:

    
    add_filter('wpo_wcpdf_document_store_settings', '__return_false');
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BUG.footer text’ is closed to new replies.