Skip to content

Instantly share code, notes, and snippets.

@trueqap
Created November 20, 2018 12:51
Show Gist options
  • Save trueqap/447512b81caa1361a901b43bab086e4d to your computer and use it in GitHub Desktop.
Save trueqap/447512b81caa1361a901b43bab086e4d to your computer and use it in GitHub Desktop.
add_filter('wc_szamlazz_xml','wc_szamlazz_xml_vat_number',10,2);
function wc_szamlazz_xml_vat_number($xml,$order) {
//Adószám a YITH WooCommerce EU VAT által tárolva
$adoszam = $order->get_meta( 'yweu_billing_vat', true );
//Ha van adószám, MAA az áfakulcs minden tételnél
if($adoszam) {
//Adószám feltüntetése
$xml->vevo->adoszam = $adoszam;
}
return $xml;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment