• Resolved x-men01

    (@x-men01)


    hello, under PDF invoices–>General I found Extra field 1, Extra field 2, Extra field 3 . How can I add this field in my custom template?
    I have my custom template under this path:
    wp-content/themes/oceanwp-child/woocommerce/pdf/yourtemplate

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @x-men01,

    You can add these three fields with the following code:

    <?php $this->extra_1(); ?>
    <?php $this->extra_2(); ?>
    <?php $this->extra_3(); ?>

    With kind regards,

    Michael

    Thread Starter x-men01

    (@x-men01)

    so for example?

    <?php if ( $this->get_footer() ): ?>
    <div id=”footer”>
    <?php $this->footer(); ?>
    <?php $this->extra_1(); ?>
    <?php $this->extra_2(); ?>
    <?php $this->extra_3(); ?>
    </div><!– #letter-footer –>

    Plugin Contributor Ewout

    (@pomegranate)

    yes, although I would put them in their own divs (or in a table if you want three columns).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add Extra field 1’ is closed to new replies.