Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Last active June 14, 2018 06:00
Show Gist options
  • Save wtmujeebu/40797f24ef1b56a2af27d645cddf0aa4 to your computer and use it in GitHub Desktop.
Save wtmujeebu/40797f24ef1b56a2af27d645cddf0aa4 to your computer and use it in GitHub Desktop.
Add VAT number to the Shipment documents From Address using WebToffee Print invoice and packing slip plugin
add_filter( 'wf_alter_shipmentlabel_from_address', 'wf_new_shipping_from_address_format',10,3 );
function wf_new_shipping_from_address_format($original_address_format,$order,$from_address)
{
$original_address_format .= '<br/>';
$original_address_format .= 'GSTIN:';
$original_address_format .= '12345676787';
$original_address_format .= '<br/>';
return $original_address_format;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment