news filed extra
-
THANKS A LOR FOR HELPING!
Hi there! Needing some help again! My cliente need to obligate the customer to inform what kind oh card he needs to pay with (its 3 options); It is already at the site, but is not working (the data are note being printed at the PRINT INVOICE) – I tried to adapt a function as bellow, knowing the name of the field, just like that. Also a print of the form and the PRINT INVOICE where I want to show the extra field: https://telecris.app/wp-content/uploads/2024/06/print-invoice.png
function example_custom_order_fields22( $fields, $order ) {
$new_fields = array();
if( get_post_meta( $order->id, 'billing_wooccm12', true ) ) {
$new_fields['billing_wooccm12'] = array(
'label' => 'ID:',
'value' => get_post_meta( $order->id, 'billing_wooccm12', true )
);
}
return array_merge( $fields, $new_fields );
}
add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields22', 10, 2 );The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.