• ResolvedPlugin Author Odido

    (@odido)


    Nevermind, I was able to add it. Thanks again for making the plugin super simple to read. I’m not a programmer, but managed to do it 🙂

    using this reference,
    https://wordpress.org/support/topic/add-vat-number-to-invoice/

    `
    add_filter( ‘wf_pklist_modify_order_date’,
    ‘wf_add_vat_number_in_invoice’,10,3 ); function wf_add_vat_number_in_invoice($order_date, $order, $action) { $vatnumber=’VAT Number:’ . get_post_meta((WC()->version < ‘2.7.0’) ? $order->id : $order->get_id(),’_vat_number’,true); return $order_date.'<br/>’.$vatnumber;
    }
    `

    For VAT I’m using the plugin https://woocommerce.com/products/eu-vat-number/

    I added the following to your code:

    case “_vat_number”:
    $adlib_bestelldaten[‘rechnung_vat’]=ersetzeSonderzeichen($wertPost->meta_value);
    break;
    and

    fwrite($datei,”\t\t\t\t\t\t\t\t<VAT>”.$adlib_bestelldaten[‘rechnung_vat’].”</VAT>\n”);

    Thx for your contribution Sagar
    Oliver

The topic ‘Adding VAT for export’ is closed to new replies.