Display Custom Field.
-
Hello,
We are using the Wocommerce Checkout Form Plugin to add more fields to the checkout, and we have included an “Additional Field” Name: “Gift Message” which is a text field.
We would like to print this extra field on the invoice when we create it from the order, however, it is not functioning, we have also utilized your provided filter:
add_filter('wf_pklist_product_table_additional_column_val', 'wt_pklist_add_custom_col_vl', 10, 6); function wt_pklist_add_custom_col_vl($column_data, $template_type, $columns_key, $_product, $order_item, $order) { if ($columns_key == 'new_col') { $column_data = 'Column data'; } return $column_data; }
Column_Key is “additional_”, and we’ve added it to functions.php to output this custom field. However, it does not print that custom field on the invoice.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display Custom Field.’ is closed to new replies.