• Hello,

    In class-wcpdf-export.php:290, I notice that _wcpdf_invoice_exists is only set for the “invoice” template. Is there a way to filter $template_type to search for additional template files?

    if ( $template_type == 'invoice' ) {
    	update_post_meta( $order_id, '_wcpdf_invoice_exists', 1 );
    }
    • This topic was modified 7 years, 9 months ago by lawkwok.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! For custom templates you will have to set this dynamically. You could use the wpo_wcpdf_process_template_order action for this purpose.

    Hope that helps!
    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘“_wcpdf_invoice_exists” not set for custom templates’ is closed to new replies.