Hi @jazzydanuk,
Please try using this plugin. It is also a shipping document solution from Webtoffee.
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
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;
}
Awesome, thanks a million 🙂
Any chance you could add the code to also remove the weight?
Thanks again