Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Extending plugin for next PDF document

  • Hi Ewout,

    I have some issues with your plugin – I want to extend it by creating next document type. I’ve created next class by copying and renaming class-wpcdf-invoice.php, and added new filter to wpo_wcpdf_document_classes to add it to plugin. Everything works fine till Order_Document object construction, because order object is passed as 0, instead of full object. What I’ve done wrong?

Viewing 1 replies (of 1 total)
  • Thread Starter Piotr Konicki

    (@insejn)

    Solved. If you’re using wpo_wcpdf_document_classes filter, you can create a new object inside array(only if you’re not calling it inside class file), and everything works fine 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Extending plugin for next PDF document’ is closed to new replies.