Option Description in Email Templates

Hi there,

I am looking for a way to reference option description in the email template.

The use case is selection of cancellation policy by host, where they can select 14-day Cancellation policy option and in the booking confirmation email, I want to include the description for that option:

I can reference option title using something like %listing.cancellation_policy% but how can I reference its description to show more details?

Thanks,

Jovica

Hi,

Unfortunately, there’s no such feature, it would require a custom implementation. If you are familiar with coding or have a developer, we can provide general guidance. Let us know if it works for you.

Thanks Andrii,

Please provide general guidance.

Please try using hivepress/v1/emails/booking_confirm_user filter hook, this way you can filter the email configuration ($email_args) and change the $email_args['body'] in any way, adding details not supported in the default tokens. For example, you can use the second argument of the callback you add to this hook ($email) to get the listing $email->get_tokens()['listing'] and fetch any details from it.

You can also find some sample snippets here Search results for 'hivepress/v1/emails' - HivePress Community

Hope this helps

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