• Resolved Jose

    (@giuse)


    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

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

    (@omardabbas)

    Hey @giuse

    Thanks a lot for the feedback, happy to know you’re enjoying the plugin.

    You’re absolutely right, I get this request (for that particular plugin) from time to time, let me review this and include it in the next update ??

    Will update you when it’s out.

    Omar

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Hey @giuse

    Please update to 2.8.2, VAT will automatically be included in the invoice from now on

    Let us know if it’s all is good, and feel free to give the plugin a rating & review if you think it deserves it ??

    Omar

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integration with PDF Invoices & Packing Slips for WooCommerce’ is closed to new replies.