Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.