Shortcode not working in PDF invoice template
-
Hello,
I use this plugin in combination with the WooCommerce PDF Invoices & Packing Slips Professional. I’m aware of the fact that the VAT number is displayed by default on the invoice but I want to add some content by checking if it’s a B2B or B2C order.
So I thought i use the short code [VAT Number] and check if the output of the shortcode is empty or not. But when I add the shortcode in the template with:
<?php do_shortcode( '[VAT Number]' ); ?>The output is empty. Any suggestions? Or is there something I do wrong?
Thank you for your help, great plugin!
The topic ‘Shortcode not working in PDF invoice template’ is closed to new replies.