• Resolved cfm168

    (@cfm168)


    Hello Sirs,

    Can you please advise which file to edit for adjusting the position for shipping address print on label? I can see this code in page title of Print Shipment Label:
    <div style=”clear:both;”></div>
    </header>
    <div style=”width: 100%;font-size:30px;margin-left: 20%;”>
    <div>TO:</div>

    I want to change the margin-left 20% to something else. Please advise.
    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @cfm168,

    The HTML code of shipping label template is in below file.
    /print-invoices-packing-slip-labels-for-woocommerce/public/modules/shippinglabel/data/data.template1.php

    Changes made to the template file directly will be lost upon plugin update.

    You can overwrite the template code using below filter. Modify the HTML code in below snippet and copy it your active theme’s functions.php

    add_filter('wf_pklist_alter_template_html','wf_pklist_alter_template_html_for_shipping_label', 10, 2);
    function wf_pklist_toggle_received_seal_fn($html, $template_type)
    {
    	if($template_type=='shippinglabel')
    	{
    		$html=''; /* custom template HTML */
    	}
    	return $html;
    }

    You can make any template customization easily with the premium version of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘How to adjust shipping address label print position?’ is closed to new replies.