In the email editor the following tokens are shown as available:
• For Booking Declined:
%user_name%, %listing_title%, %booking_dates%, %booking_url%, %decline_reason%, %user%, %vendor%, %listing%, %booking%
• For Message Received:
%user_name%, %message_url%, %message_text%, %message%, %sender%, %recipient%
But in practice only the simple tokens (like %user_name%, %listing_title%, %booking_dates%, %message_text%) work.
The object tokens (%user%, %vendor%, %listing%, %booking%, %message%, %sender%, %recipient%) just appear literally in the emails (not replaced).
Question: Is this expected behaviour, a temporary bug, or do these object tokens always require custom filters/snippets to
Thanks for the request. Yes, the objects work in a way that in order to use them, you need to add the field name of the object with a dot notation, e.g. %listing.title% and so on. Also, you can use any custom attribute using this approach.
We will update the guide docs in the future to make it clearer.
Tokens that contain details and use an underscore are precise and can be used directly. Tokens that only include the object name, such as %vendor% or %user%, require additional labels in order to display the specific fields you need.
Object fields correspond either to model fields or attribute fields. For example, in the case of a booking, you can use placeholders such as %booking.title% or %booking.note%. Model field names can be found in the code, while attribute field names can be found directly in your Attributes settings. We understand that looking into the code to find model fields can be quite technical and sometimes challenging, so please feel free to reach out if you need help.
If you describe the desired email text outcome and provide a sample, we can help you create the correct template.
Thank you for your detailed explanation about object tokens and dot notation.
I’m currently working on email templates for the Messages extension and I need to display the sender’s name as well.
I tried these tokens but they don’t work (they remain as plain text):
• %sender.displayname%
• %sender.name%
• %sender_user.name%
• %sender_user.email%
Could you please tell me the correct object token (with dot notation) for the sender field in Messages emails, or confirm if an additional filter/snippet is required?
Do you know where I can find the list of all token available in format %object.precision% ?
I tried to generate listing title with the token %listing% but it doesn’t work and I would like to do the same thing with the meta title SEO for each listing thanks to HivePress extension SEO.
I am not sure what you mean, because I’m new here and I’m also asking for help myself If you are asking about tokens, I honestly have no idea, but of course I would also like to know more since I’m planning to set up SEO myself.