• Resolved pt.rodicio

    (@ptrodicio)


    Hi there, Uli.

    I’m trying to display a PGSK billing custom field (vat number) on a pdf invoice genereated through other plugin (PDF Invoice and Packaging Slips.)

    Apparently, is as simple as adding
    <?php $wpo_wcpdf->custom_field(‘custom_fieldname’, ‘Vat:’, true); ?>
    to the pdf template.

    How do I know for sure the custom field name? I’ve tried with the one on the “field name” column (billing_nif_prueba) like this
    <?php $wpo_wcpdf->custom_field(‘billing_nif_prueba’, ‘Vat:’, true); ?>
    and it does not work (neither does ‘nif_prueba’ or ‘custom_billing_nif_prueba’).

    Am I doing somethign wrong?

    Thanks and kind regards,

    Pablo.

    https://wordpress.org/plugins/woocommerce-poor-guys-swiss-knife/

Viewing 1 replies (of 1 total)
  • Thread Starter pt.rodicio

    (@ptrodicio)

    Once again, sorry for bothering you unnecessarily. It is solved.

    I look for the custom field in the database and found out that it had an underscore before the name. It is no “billing_nif_prueba” but “_billing_nif_prueba”, and now everything works fine.

Viewing 1 replies (of 1 total)

The topic ‘Custom field name’ is closed to new replies.