Add fields to checkout form

Hi, My client wants me to add two fields in the “checkout” form if the person ordering does not have an account (and therefore buying will create an account for them).

Choosing your password
At the moment, if I uncheck the box “When creating an account, send the new user a link to set their password” in the WooCommerce settings, at no time is the password asked so the person will have to do “forgotten password” the next time they want to order. So, I would like to know if it is possible to add a “password” field to the checkout form in order to ask the person buying to choose their password right away when creating the account.

Attach a PDF
Also, my client wants to add a “browse” field in the checkout form so that the buyer can attach a PDF to their profile. Again, I need to add a field in the checkout form but for the buyer’s profile.

I tried some code that adds fields in the “user_register” form, it works but the problem is that it adds the fields in the “register” modal, not in the checkout form as desired.

Is it possible to do this? Add custom fields in the checkout form?

Thanks for your help!

Hi,

Unfortunately, there’s no such feature; it would require a custom implementation. Also, please note that this page is completely made on the WooCommerce side. Please check the solution in this topic: How to edit checkout page - #3 by andrii

​I hope this is helpful to you.

Thanks for your help!

Unfortunately, there is no way to achieve this because it’s the WooCommerce Checkout Block, which isn’t editable. I’ll need to find an alternative solution, such as recreating this form on another page without using Gutenberg blocks.

I appreciate your time!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.