WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce PDF Invoices & Packing Slips
[resolved] PHP Fatal error (4 posts)

  1. Chirag Vora
    Member
    Posted 10 months ago #

    Getting this in debug.log

    PHP Fatal error: Call to undefined method WooCommerce_PDF_Invoices::get_order_taxes_custom() in /htdocs/wp-content/themes/canvas-child/woocommerce/pdf/Custom Business/invoice.php on line 198

    https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

  2. Ewout
    Member
    Plugin Author

    Posted 10 months ago #

    Hello Chirag,
    It looks like you are calling a non-existent function. There is no get_order_taxes_custom() in the plugin by default, it's probably a function that you created to return your own taxes formatting? Whenever you update, modifications you make to the plugin core files are overwritten. That's why I recommend to copy your template files to your theme folder (like you did). Inside the template php file you're free to create as many functions/php code as you want, so there's no need to modify the core files in that case.

    Let me know if you still have any questions though!

    Ewout

  3. Chirag Vora
    Member
    Posted 10 months ago #

    Hi Ewout, thanks for the reply.

    I had customised the template and placed it in within woocommerce folder within the active theme directory.
    The problems arised after updating this plugin and even the premium template plugin.

    I am mailing you the details. Will appreciate if you can have a look.

  4. Ewout
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Chirag,
    It does not matter if you placed the customized template in the theme folder, if you modify core functions (you are calling a function $wpo_wcpdf->get_order_taxes_custom() that does not exist in the plugin), they will still be overwritten. The template itself will remain unchanged though.

    Ewout

Reply

You must log in to post.

About this Plugin

About this Topic

Tags