aditional fields.
-
Hi!, i am trying about aditional fields on functions.php
add_filter( ‘woocommerce_checkout_fields’ , ‘woocommerce_checkout_field_editor’ );
// Our hooked in function – $fields is passed via the filter!
function woocommerce_checkout_field_editor( $fields ) {
$fields[‘billing’][‘billing_field_invoice_email’] = array(
‘label’ => __(‘Invoice Email’, ‘woocommerce’),
‘placeholder’ => _x(‘Invoice Email’, ‘placeholder’, ‘woocommerce’),
‘required’ => false
);
return $fields;
}But the field doesnt update on edit address of my-account page
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘aditional fields.’ is closed to new replies.