• Resolved jazzydanuk

    (@jazzydanuk)


    Hi Guys,
    Great plug-in.
    Some issues with fonts.
    On screen it looks great.
    PDF saves with a different font.
    Prints out with a different font, which has some spacing issues.
    Any suggestions.
    Thanks
    Dan

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @jazzydanuk,

    Please try using this plugin. It is also a shipping document solution from Webtoffee.

    Thread Starter jazzydanuk

    (@jazzydanuk)

    This version prints much better.
    But doesn’t seem to have as many options.
    I can’t disable the phone number, tracking number and email address from printing on the label for example?
    Thanks again
    Dan

    Plugin Author WebToffee

    (@webtoffee)

    Hi @jazzydanuk,

    Please copy below code snippets to your active theme functions.php file.

    add_filter('wf_pklist_alter_additional_fields','wt_pklist_alter_additional_fields_fn',10,3);
    function wt_pklist_alter_additional_fields_fn($extra_fields,$template_type,$order)
    {
    	if($template_type=='shippinglabel')
    	{
    		unset($extra_fields['contact_number']);
    		unset($extra_fields['email']);
    	}
    	return $extra_fields;
    }
    
    add_filter('wf_pklist_alter_hide_empty','wf_pklist_hide_tracking_number', 10, 2);
    function wf_pklist_hide_tracking_number($hide_on_empty_fields, $template_type)
    {
    	if($template_type=='shippinglabel')
    	{
    		$hide_on_empty_fields[]='wfte_invoice_number';
    	}
    	return $hide_on_empty_fields;
    }
    
    add_filter('wf_pklist_alter_find_replace','wt_pklist_hide_invoice_number',10,5);
    function wt_pklist_hide_invoice_number($find_replace, $template_type, $order, $box_packing, $order_package)
    {
    	if($template_type=='shippinglabel')
    	{
    		$find_replace['[wfte_invoice_number]']='';
    	}
    	return $find_replace;
    }
    Thread Starter jazzydanuk

    (@jazzydanuk)

    Awesome, thanks a million ??
    Any chance you could add the code to also remove the weight?
    Thanks again

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Font not printing correctly’ is closed to new replies.