• Resolved anggaprawira

    (@anggaprawira)


    hello i want to ask, i add a custom field to my order admin, name of the field is “Nomor SO” with adding this code to function.php

    //add custom field on order from admin
    // Backend: Display editable custom billing fields
    add_filter( ‘woocommerce_admin_billing_fields’ , ‘order_admin_custom_fields’ );
    function order_admin_custom_fields( $fields ) {
    global $the_order;

    $fields[‘nomor_so’] = array(
    ‘label’ => __( ‘Nomor SO’, ‘woocommerce’ ),
    ‘show’ => true,
    ‘wrapper_class’ => ‘form-field-wide’,
    ‘style’ => ”,
    );
    return $fields;
    }

    how can i add this custom field to display it on pdf invoices and pdf packing slip? i want to add it under the payment method and shipping method. thankyou

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Custom field in PDF invoices’ is closed to new replies.