Support » Plugin: PDF Invoices & Packing Slips for WooCommerce » Woocommerce Checkout Field Editor

  • Resolved EX3

    (@ex3)


    Hi !

    I already use your plugin but face – like many others – some difficulties to add a custom field generated by the Wootheme plugin Wocommerce Checkout Field Editor.

    I added a custom field bill_vat with a label VAT.
    I would like to display this under the billing address in a cpu of Simple template you included in your plugin folder.

    Thank you for your prompt reply.

    Damien

    https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter EX3

    (@ex3)

    Screening the FAQ’s and other topics , I found this snippet :
    <?php $wpo_wcpdf->custom_field(‘custom_fieldname’, ‘Custom field:’, true); ?>
    I am not sure where to place it.

    Damien

    Plugin Contributor Ewout

    (@pomegranate)

    Hi Damien,
    You can place it anywhere you want the custom field contents to appear! DO make sure to copy the Simple template to your (child)theme folder first! Otherwise the changes will be overwritten when you update the plugin.

    <?php $wpo_wcpdf->custom_field('bill_vat', 'VAT:', true); ?>

    should probably work.

    Ewout

    Thread Starter EX3

    (@ex3)

    Hi Ewout !

    Your prompt support is fully appreciated. Thank you for that.
    I indeed edited the php file where I wanted the custom field to appear : it works perfectly !

    Damien

    Thread Starter EX3

    (@ex3)

    Hi Ewout

    I changed the status a little bit too quickly. The label appears exactly where I want but the recorder data (values) didn’t…

    Damien

    Plugin Contributor Ewout

    (@pomegranate)

    In that case you need to find out the name of the custom field – I cannot see that from here! It could be _bill_vat, billing_vat or _billing_vat.
    If it’s not hidden field data (which gets a leading underscore like in my suggestions), then it will show up under the Custom Fields tab of the Edit Order Screen. You need the name under which it is listed there!

    http://docs.woothemes.com/document/checkout-field-editor/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce Checkout Field Editor’ is closed to new replies.