• Resolved mosesclarke91

    (@mosesclarke91)


    Hello,

    I am looking to use the packing slip as a shipment label. Is there a way to remove the wording ‘packing slip’ at the top?

    Also I am using 4×6 inch stickers with a thermal label printer. Is it possible to print eh labels on a horizontal position to fit the 4×6 label sizes?

    TIA. Looking forward to hearing from you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @mosesclarke91,

    I am looking to use the packing slip as a shipment label. Is there a way to remove the wording ‘packing slip’ at the top?

    Yes, it is. You can do this by adding this code snippet to your site:

    /**
     * Hide the title from packing slips
     */
    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
    	if ( $document_type == 'packing-slip' ) {
    		?>
    		.document-type-label {
    			display: none;
    		}
    		<?php
    	}
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Also I am using 4×6 inch stickers with a thermal label printer. Is it possible to print eh labels on a horizontal position to fit the 4×6 label sizes?

    This is possible, although you might need to adjust your document layout to match with this paper size. See Use custom page size/orientation

    Thread Starter mosesclarke91

    (@mosesclarke91)

    Hello,

    Thanks for this information. It is very informative.
    I am new to snippets and I have read up on the link you sent. I am wondering should I run the code you sent everywhere or just in the administrative/front end?

    Does this change run across every plugin or is the coding specific to the woocommerce packing slip plugin? For example if I change the page orientation to landscape, will this run all across my wordpress website or would it be specific to the packing slip plugin?

    TIA

    • This reply was modified 3 years, 8 months ago by mosesclarke91.
    Thread Starter mosesclarke91

    (@mosesclarke91)

    Hello,

    I used the codes you suggested and set it to run everywhere and it worked perfectly.

    However when it prints out the writing is very small and faded. The same thing happens when I print it in portrait. I have tried printing other documents and they work perfectly. Perhaps it is the writing font and size. Is there any code to make the font larger and more bold? Even my logo in this format looks very faded and unclear.

    I really love how these labels look so that is why I would love to get them perfect so I can use them. Thanks in advance.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @mosesclarke91,

    Our default templates are designed for larger paper sizes, such as Letter and A4, which is why I told you that you would need to modify the layout. You have two options: Creating a custom PDF template or using our Premium Templates. If you decide to use the second option, we can provide you with further assistance, as part of the premium support, if you write to us at [email protected].

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Horizontal view and remove the title packing slip’ is closed to new replies.