ridgegate
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
@vgpmedia here you go. You still have to create custom template or else the packing list will spread to multiple pages.
add_filter( 'wpo_wcpdf_paper_format', 'wcpdf_custom_inch_page_size', 10, 2 ); function wcpdf_custom_inch_page_size($paper_format, $template_type) { if ($template_type == 'packing-slip') { // change the values below $width = 100; //mm! $height = 150; //mm! //convert mm to points $paper_format = array( 0, 0, ($width/25.4) * 72, ($height/25.4) * 72 ); } return $paper_format; }
Change the Margin on Packing List to allow more data in the packing list
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) { if ($document_type == 'packing-slip') { ?> td.header img { max-height: 1cm; // Change accordingly width: auto; } @page { margin-top: 0.1cm; // Change accordingly margin-bottom: 0.1cm; // Change accordingly margin-left: 0.1cm; // Change accordingly margin-right: 0.1cm; // Change accordingly } <?php } }, 10, 2 );
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Change Margin for Packing ListHi Alex,
Thank you! it works.
Tom
This plugin block the IP so you will not be able to log in until the block is over. You could try and change your ip through restarting your modem and see if it acquires a new IP and log in when you have a new IP.
Viewing 3 replies - 1 through 3 (of 3 total)