Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Vat number – WooCommerce Eu Vat & B2B

  • Resolved rashkoff


    I’m using a plugin for VAT number and want to have the vat number on pdf invoice
    This is the example from the plugin author but seems to not work…

    If you are using the WooCommerce PDF Invoices & Packing Slips by Wp Overnight plugin to generate invoices and you want to report the user Vat number associated to the order, simply modify the template you are using (usually is the templates/Simple/invoice.php) and use the following snippet of code:

    < ?php
    global $wcev_order_model;
    $vat_number = $wcev_order_model->get_vat_number($order_id);
    ? >
    To retrieve the Vat number. $order_id is the id of the order you want to retrieve the field.

    Can you help me to have the right code?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ewout


    The code snippet looks fine to me, I don’t see why this wouldn’t work.
    If you are expecting the vat number to print (the current code snippet only retrieves the $vat_number value), you could replace:

    $vat_number = $wcev_order_model->get_vat_number($order_id);


    echo $wcev_order_model->get_vat_number($order_id);

    hope that helps!

    Thread Starter rashkoff


    Now is ok.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Vat number – WooCommerce Eu Vat & B2B’ is closed to new replies.