Support » Plugin: Checkout Field Editor (Checkout Manager) for WooCommerce » Name fields are not preset

  • Resolved



    I refer to this thread I found:

    I have exactly the opposite problem:
    The first & last name field in the billing “area” are not set from the currently logged in user. They are empty.

    How is the normal behaviour? These fields are only set when the user has submitted an order – for a new one nothing is preset.

    For the moment the clients are really confused as they have to enter their name again.


    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ThemeHigh


    We have checked on your website and couldn’t find our plugin. We believe that you are not using our plugin. Could you please verify the author of the checkout field editor plugin that you are using on your website.

    Thank you!

    As I cannot upload anything here, I do it like this:

    Checkout Field Editor for WooCommerce
    Settings | Deactivate
    Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
    Version 1.3.9 | By ThemeHigh | View details

    It is the copied text from the plugin dashboard. In my eyes I am using your plugin and it is active.

    Plugin Author ThemeHigh


    We are not able to recreate the issue from our side. We have checked the issue by placing a test order and could see that when we try to place another order the First name and Last name are getting pre-filled.

    Could you please verify once again from your side?

    Thank you!

    No, it is not pre-filled. Even clients send me emails where they complain why they should enter their name again.
    I have checked it in 5 European countries on FF, IE, Safari, Chrome and Opera with cleared cache and cookies: The same. It is not pre-filled.

    I deleted your user so you can register again. Please, send me a video so I see when you add a product into the shopping cart and enter the checkout page that the 2 fields get pre-filled.

    Thank you

    Plugin Author ThemeHigh


    We believe that the issue that you are facing is the first name and last name provided in the registration form not getting pre-populated on the checkout page when the customer tries to place an order.

    By default in WooCommerce checkout, the first name and last name is populated only if the billing_first_name and billing_last_name fields of user meta is filled or the account registration is done from the checkout page. Otherwise, these fields will be blank in checkout. Our plugin uses the fields saved in user meta and accesses these values to pre-populate the checkout fields.

    So when you save the user registration form in website, the field values should be either updated as user meta with same field names as WooCommerce checkout fields or you can use the following function to get an idea to populate fields based on your user registration form (The following function will access first name and last name fields from user meta and populate checkout fields. Please change this code according to your requirement).

    function populate_specific_checkout_field($input, $key ) {
    	global $current_user;
    	switch( $key ) {
    		case 'billing_first_name':
    		case 'shipping_first_name':
    			return $current_user->first_name;// return the first name from your settings
    		case 'billing_last_name':
    		case 'shipping_last_name':
    			return $current_user->last_name; //Return the last name from settings
    add_filter('woocommerce_checkout_get_value', 'populate_specific_checkout_field', 15, 2 );

    Hope this will help.

    Thank you!

    Yes, I confirm, your hack fixes the issue. Thank you!

    Out of curiosity: What is the default behavior in WooCommerce checkout process? What is wrong on my site, that it doesn’t work without your code?

    Plugin Author ThemeHigh


    The issue that you are facing is not related to our plugin. Even after deactivating our plugin you will get the same issue.

    There are different types of User Registration options available.

    1. WordPress User Registration Form.

    While registering through WordPress registration form, the WooCommerce billing fields won’t be initially available. The fields available are entirely different from the billing fields. So after registering a user, when they go to the checkout page then the default fields (first name and last name) won’t get pre-filled.

    2. WooCommerce User Registration Form.

    This registration option (create an account) is part of the WooCommerce checkout page. The billing fields will get saved in the database when you place the order. So when the customer came back the fields will get pre-filled with the previous order details.

    3. Custom User Registration Form (In your case).

    The field name used in the registration form is different from WooCommerce billing fields and are saved to a different location. So mapping is not done hence you faced this issue.

    In short, the mapping of these fields was not done.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Name fields are not preset’ is closed to new replies.