Integration with PDF Invoices & Packing Slips for WooCommerce
-
Hello,
kudos again for your wonderful plugin.
Would it be possible to add an integration with PDF Invoices & Packing Slips for WooCommerce?
You could do it with something like this:
add_action( 'wpo_wcpdf_after_billing_address',function( $type,$pdf_order ){ if( function_exists( 'alg_wc_eu_vat_get_field_id' ) ){ $vat_id = get_post_meta( $pdf_order->ID, '_' . alg_wc_eu_vat_get_field_id(), true ); if( $vat_id && !empty( $vat_id ) ){ ?><div class="eu-vat"><?php echo $vat_id; ?></div><?php } } },10,2 );
(The function alg_wc_eu_vat_get_field_id is of your plugin, so you can also remove the existence check if you put it in your plugin).
In my case, I solved it with the code above, but it would be great if this or something similar is integrated into your plugin.
PDF Invoices & Packing Slips has more than 300000 active installations, and all those users see the invoice always without the EU VAT of the customer if they use your plugin.
Have a great day!
Jose
- The topic ‘Integration with PDF Invoices & Packing Slips for WooCommerce’ is closed to new replies.