How to customize waybill
Add this to your child theme’s functions.php
How to override waybill template on your child theme
- Create waybill.tpl.php under child-theme/wpcargo/ directory.
- NOTE: If you want to create small changes on your waybill layout look for the wpcargo/admin/templates/admin-print-label.tpl.php. Copy the code and paste it in waybill.tpl.php file.
- You can start customizing your waybill.
How to customize waybill paper size
add_filter('wpcfe_pdf_paper_size', 'custom_paper_size' ); function custom_paper_size(){ $paper_size = array( 0, 0, 683, 302 ); return( $paper_size ); }
Please check DOMPDF paper sizes for more options.