• Resolved RuthVant

    (@ruthvant)


    Hello

    I can see that a user can update their VAT number in their profile, but I need admin to be able to update in the user profile in the backend, is there an easy way to do this or can you give me the information I need to code the field name manually?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diego

    (@daigo75)

    Hi Ruth,
    If you are referring to the Admin > Users > Your Profile page, adding the VAT number to it should be simple enough. Here’s a filter that should do the trick.

    add_filter('woocommerce_customer_meta_fields', function($fields) {
      $fields['billing']['fields']['vat_number'] = array(
        'label' => __( 'VAT Number', 'woocommerce' ),
        'description' => '',
      );
      return $fields;
    }, 10, 1);

    I will take note this for a future update of the EU VAT Assistant. It could be convenient to have such field in the User Profile page, out of the box.

    Note
    The VAT number in the User Profile page won’t validated by the EU VAT Assistant. This is because the validation occurs at checkout, using the billing country at the moment of purchase.

    Plugin Author Diego

    (@daigo75)

    Hi Ruth,
    As anticipated, we added the feature you requested to the EU VAT Assistant 1.7.17.180106, due to be released today. Once that version becomes available, you will no longer need to use the custom filter I sent you. ??

    Thread Starter RuthVant

    (@ruthvant)

    That’s great thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I need to show in admin user profile’ is closed to new replies.