Skip Navigation

[Résolu] type how to add a custom user field to woocommerce checkout process

This support ticket is created Il y a 8 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 réponse, has 2 voix.

Last updated by Luo Yang Il y a 8 années et 1 mois.

Assisted by: Luo Yang.

Auteur
Publications
#374782

I have created with types 2 custom user field (text and date)
those two field show up when i view the user profile
but i what those two field to shop up on the woocommerce checkout process

question : how do i add my two custom field (date and text) to the bottom of the woocommerce checkout process, below additional information

thanks

#374838

Dear marc,

It depends on where do you want display the custom user fields, if they are outputting from content, then you can try with Types shortcode, for example:
[types usermeta="birthdate" style="text" format="F j, Y" user_is_author="true"][/types]

If you need display with PHP codes, you can try like this:
types_render_usermeta_field( "my-field", array( "user_current" => true ) );

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield
https://toolset.com/documentation/customizing-sites-using-php/functions/#date
click "Repeater attributes, User attributes, Usage examples" link, you will be able to see the example codes for displaying custom user fields.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.