• Hi there,

    read your FAQ, but could not fix the following.

    1. Via the WooCheckout plugin we made an extra filed in our orderpage: PO-nummer.
    2. The number is shown in the field PO-nummer in the backend
    3. When we make a pdf with your nice plugin and use the proper format, the field PO-nummer and the value is not shown.
    4. I made a local template and used first (after payment-method):

    <?php $wpo_wcpdf->custom_field(‘PO_nummer’, ‘PO-nummer:’); ?>

    5. It showed no results. And second i tried:

    <tr class=”PO-nummer”>
    <th><?php _e( ‘PO-nummer:’, ‘wpo_wcpdf’ ); ?></th>
    <td><?php $wpo_wcpdf->PO_nummer(); ?></td>
    </tr>

    BUt also no PO-number on the invoice.

    6. What is the proper way to insert this? IF it cannot be done with the free version, can it easily (without going into the source code) be done?

    Regards,

    Gerjon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Gerjon,
    You can find instructions for adding custom fields in the documentation:
    Displaying a custom field
    Your attempt at 4. should work, but you used ‘PO_nummer’ instead of the ‘PO-nummer’ you identified in 1./2. Probably a typo, and unfortunately our computers are not smart enough for typos yet ??
    If it still doesn’t work, check this guide: Finding WooCommerce Custom Fields
    I recommend using the action hook method from the link above instead of creating a custom template just for this purpose.

    Hope that helps!
    Ewout

    Thread Starter cookcook

    (@cookcook)

    Thanks! i will try that. En je naam klinkt Nederlands, dus goed weekend ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘use additonal field in pdf’ is closed to new replies.