User Syntax
User Syntax is similar to Field Syntax in the way it allows us to get data. The User fields however are not related to a module (that we can create), instead they are related to the individual user fields found in the User Manager.
Available User Information Fields:
Using these will return the information stored in the User Manager for the current logged in user.
- [User: first_name]
- [User: last_name]
- [User: alias]
- [User: title]
- [User: email]
- [User: address]
- [User: phone]
- [User: extension]
Following along with our previous Field Syntax example, we will now incorporate User Syntax:
Example:
Hello [Field: contact_first_name], today ([Field: contact_birthday]) is your birthday!
Here is a coupon code for 10% off your next order.
Sincerely,
[User: first_name] [User: last_name]
Phone: [User: phone] Ext: [User: extension]
Example Output:
Hello Joe, today (11/12/2012) is your birthday!
Here is a coupon code for 10% off your next order.
Sincerely,
BretLund