Force users to always complete profile after registering

Hi,

I think it might be helpful to force users to always complete their profile after registering if there are mandatory fields in their profile.

How it works now is that a new user can log in and is only forced to complete his profile if he clicks on Add Listing.

The issue is:

  • A new user registers and verifies email (let’s say he registered as USER_A)
  • This new user does not want to upload a listing, but only place a booking from another user (so he remains a subscriber)
  • When placing a booking and reaching the checkout, the Woocommerce “First name” field is mandatory, and will be empty because this user did not fill out his first name

This creates three “problems”:

  • The user will have to fill out a first name every time he reaches the checkout
  • Even if the user fills out the First name field on checkout, the person receiving the booking will not see it, and will see his real username (USER_A), which is not ideal
  • If people use plugins to customize Woocommerce, it can create many more problems. I used to hide (not deactivate) the whole Billing section because I didn’t need it (since it would automatically take email and first name from Hivepress user settings). In this case, if USER_A reaches the checkout and tries to confirm and place the order, it will give an error “Billing first name required”, but he will have no access to edit the First name field because they are all hidden. There are many other situations that could generate conflicts if customizing Woocommerce

Even if the “problems” don’t seem very big, in general I don’t see a good reason not to force users to fill out their basic mandatory fields before using the site. Normally this will only be the first name anyways.

Hope this is helpful

Thanks
J

Hi,

Please note that the complete profile is already mandatory for regular users, for them the profile form is the regular form. That is, if you set the user attribute in Users > Attributes and mark it as required and editable, it will be displayed in the register form, and you will not be able to register if you do not fill in this field.

Also, there is a vendor profile form, if you have this feature enabled How to add a vendor registration form - HivePress Help Center, or if the user is trying to add a listing, then the vendor profile form is needed because the user is trying to become a vendor (get a public vendor profile and add a listing), then vendor fields will be required.

That is, all users cannot be redirected to the complete profile form, because HivePress has two types of users, vendors and regular. But, if you have such a flow, you can solve it by somehow redirecting all users to the complete profile or using PHP snippets.

​I hope this is helpful to you.