twredtaur
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Head, Footer and Post Injections] Can’t add code to “home page only”Oh thanks for ur effort Stefano.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Vat Number on InvoiceThanks for reply again. Your support is truly priceless. So, i checked name of my custom order fields, and for VAT Number – it’s _billing_vat. So i make this hook and added this to template-function :
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_delivery_date', 10, 2 ); function wpo_wcpdf_delivery_date ($template_type, $order) { global $wpo_wcpdf; if ($template_type == 'invoice') { ?> <tr class="vat_billing"> <th>Numer NIP:</th> <td><?php $wpo_wcpdf->custom_field('_billing_vat'); ?></td> </tr> <?php } }And… it’s work 😀 I got VAT number on Invoice, but after order data. Any chance to move this number after shipping details (column where i can see customer data) ? I don’t see any hook postions related with this column 🙁 Cheers
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Vat Number on InvoiceThanks for fast reply!
So i just need to add to custom template this snippet ? :
<?php $wpo_wcpdf->custom_field('vat'); ?>
Viewing 3 replies - 1 through 3 (of 3 total)