Skip Navigation

[Resolved] cannot output first and last name in notofication mail

This support ticket is created 5 years, 8 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Nigel 5 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#1213058

Hello

I created a user registration form. In case of the notification mail I cannot output the user's first and last name.
In the form I use this:

[cred_field field="last_name" class="form-control" output="bootstrap" required="true"]

In notification mail:

[wpv-user field="last_name" user_id="%%USER_USERID%%"]

This is not working. The strange thing is that if I add it from Fields and Views button it adds this code:

[wpv-user field="user_lastname" user_id="%%USER_USERID%%"]

The filed name is different. But neither works. All other user fields work.

#1213124

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jozsef

I did some testing and was able to reproduce the problem just as you describe it.

I have escalated this so my colleagues can debug further, and I'll let you know when I have any progress to report.

#1213152

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jozsef

The documentation is wrong.

Instead of user_id="%%USER_USERID%% please use id="%%USER_USERID%%.

I tested that and it worked.

I've made a number of suggestions about how this should be improved (not least, fixing the documentation), but in the meantime making that change will resolve the problem.

#1213156

Hi Nigel

Thanks for the quick response. For the user fileds it is working like in the documentation:

[types usermeta='site' user_is_author='true' user_id="%%USER_USERID%%"][/types]
#1213159

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Good to know, thank you, I'll add that clarification to the internal ticket I created.

#1213184

Your solution is working. Thank you!

#1213707

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Good. We'll update the documentation to clarify what is required.