How to customize waybill

Add this to your child theme’s functions.php

How to override waybill template on your child theme

  1. 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.
  2. You can start customizing your waybill.
wpc-override-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.

0
    0
    Your Cart
    Your cart is emptyReturn to Shop