Custom text display on invoice, based on Vat number by Country
-
Hello there! I liked the plugin very much!
Also really nice that it is compatible with the Woocommerce EU VAT Assistant.I just have one minor question, because one thing i can get to work;
In the Netherlands, we have to display a certain text on the invoice between businesses from another Eu country (our government demands it).I CAN display this text on my custom invoice template, i have based this on the Vat number:
<?php $wpo_wcpdf->custom_field('vat_number', 'tabel II, onderdeel a, post 6, Wet OB') ?>
So it always displays when Vat number is filled in, that is great!Only now comes the trick, it doesn’t need to show on the base country of the shop, in this case the Netherlands. SO i had this, before the custom vat_number field:
<?php if ( WC()->countries->countries[ $order->shipping_country ] != 'NL') : ?> <?php $wpo_wcpdf->custom_field('vat_number', 'tabel II, onderdeel a, post 6, Wet OB') ?> <?php endif; ?>
But it doesn’t effect the display, can you help me out?
- The topic ‘Custom text display on invoice, based on Vat number by Country’ is closed to new replies.