Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter 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 Contributor 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 4 years, 9 months ago by alexmigf.
    Thread Starter johnegg

    (@johnegg)

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

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @johnegg

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

    Thread Starter johnegg

    (@johnegg)

    Super! Works great thanks

    Plugin Contributor 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.