Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Extra checkout field not appearing in pdf

Viewing 6 replies - 1 through 6 (of 6 total)
  • johnegg

    (@johnegg)

    EDIT: I managed to gte this displaying using
    <?php $this->custom_field(“billing_vat”); ?>

    However who do I conditionally show the “VAT:” Label next to it? So if user enters vat then the label will show

    cheers
    john

    Plugin Support alexmigf

    (@alexmigf)

    Hello @johnegg

    Try this:

    if( $billing_vat = $this->get_custom_field('billing_vat') ) {
    	echo '<div><label>VAT: </label>'.$billing_vat.'</div>';
    }
    • This reply was modified 8 months ago by alexmigf.
    johnegg

    (@johnegg)

    Great thanks. It shows the number but doesn’t seem to show the label?

    Plugin Support alexmigf

    (@alexmigf)

    Hello @johnegg

    I have updated the snippet above, can you test again please?

    johnegg

    (@johnegg)

    Super! Works great thanks

    Plugin Support alexmigf

    (@alexmigf)

    You’re welcome 🙂

    Have a nice day!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Extra checkout field not appearing in pdf’ is closed to new replies.