WooCommerce Checkout Editor - Mapping custom fields to User Info in back-end

Hi Team

I’ve added some custom checkout fields within Billing to WooCommerce via your extension, and all looks well on the front end. However the new fields aren’t mapping anywhere that I can see in the back-end - specifically under the User tab (where it shows Billing Address information for each User).

Note: using WooCommerce Memberships and Subscriptions as well.

I require this custom checkout information to be mapped somewhere in the back-end, as its Member-specific information (eg. ABN number of the company that each Member works for), and Secondary Contact Information - so we can report on this etc.

Am I missing where this information is being mapped to?

Cheers,
Sam

Hi, there!

The data is supposed to be displayed in the Order Details under Billing Details/Shipping Details.

Checking here in development mode the custom fields are displaying only labels, not the value. Could you confirm this behavior?

If that’s the case, we confirm the bug, possibly related to some WooCommerce update that altered the behavior and we weren’t aware until you pointed out.

We’re investigating the bug and will release a fix soon.

Thanks!

Hi Rafael

Yep, It’s only pulling through the labels on the front-end under Billing Details per below screenshot (“ABN” should really be showing a number that has been input - however, would be great to allow the option to show Label or Value - for private info like tax numbers etc.):

However, this ABN field isn’t mapping into the User Area, in the wordpress back-end anywhere to view either. See below there’s no ‘ABN’ field sitting within the User Billing Information:

Also, I’d actually (in my specific circumstance of course) that I’m able to add Fields into the ‘Extra Fields’ section of Checkout Manager, and these map into a separate tab from “Addresses” in the front-end (maybe Account Details?), and map into an ‘Account Details’ or ‘Additional Information’ section in the back-end within the User Area? Could be a decent long-term option…?

Will send a separate response with login details to my site for review.

Cheers,
Sam

Hi there,

Thank you for detailed information. I will ask our development team to take a look on this and follow up the case.

Thank you.

Hi, @grannysam11 !

Thanks for your patience. It took sometime to debug the issue.

We’ll release a fix in a new version soon. Until there, you can adjust manually to see your info.

  • Edit the file: wp-content/plugins/tco-woo-checkout-editor/includes/tco_woo_checkout.woo.functions.php.
  • Starting at line 392 you have a foreach block. Change to the following:
            foreach( $fields as $field) {
                if($show_label){
                    if(isset($all_fields[$field])){
                        $field_label = $all_fields[$field]['label'];
                        $replace .= "\n <strong>$field_label</strong> : {{$field}}";
                    }else{
                        $replace .= "\n{{$field}}";
                    }
                }else{
                    $replace .= "\n{{$field}}";
                }

            }

The replacement should fix the visualization of the data in any place that displays the address (checkout, order details).

Thanks!

I have the same issue. Is this going to be fixed soon? I assume this workaround would have to be redone every time there is an update until then?

Actually, I just tried this and it did not make a difference. The only way I can get the field value to show up is to make it an extra field, instead of part of the billing or shipping areas. Not ideal. It shows the field label on emails and in the order dashboard, but no field value.

Hi!

See, I’m not part of ThemeCo anymore. This thread is quite old, so I suggest you to create a new ticket and link this one so the (awesome) support team will give the deserved attention.

Thanks!

Rafael

Hi @noizepro,

I would suggest you create a separate thread and provide all the details on it for further investigation.

Thanks