Home / Topic / WCMp PDF Invoice / Pre defined invoices
Pre defined invoices Resolved
Hi, I would like to set what information the Seller can show on their invoices and packing slips. I have the template all set up but ideally I would like to NOT give the seller any options to show/hide information on their invoicing.
Is there a way to do this please?
Thanks
Or, how can I give the Seller the option to only select Template 1?
Hi,
add this code in the function.php of the current active theme :
add_filter('wcmp_pdf_invoice_preferred_templates', 'set_default_template_1');
function set_default_template_1($pdf_template){
unset($pdf_template['wcmp_pdf_invoice_second_template']);
unset($pdf_template['wcmp_pdf_invoice_third_template']);
unset($pdf_template['wcmp_pdf_invoice_forth_template']);
unset($pdf_template['wcmp_pdf_invoice_fifth_template']);
return $pdf_template;
}
Copy
You are welcome @John Emslie J Davidson
The topic ‘Pre defined invoices’ is closed to new replies.