All Collections
Multi-Platform Subscription App (Not for Shopify)
Notifications & Emails Settings
How to add custom profile questions & answers to your email templates.
How to add custom profile questions & answers to your email templates.

This article shows how to add custom profile questions / answers to PayWhirl email templates.

Larry Brager avatar
Written by Larry Brager
Updated over a week ago

PayWhirl's email template system is built on Twig, which is very similar to other popular template languages like FreeMarker, Liquid by Shopify and/or "Stencil" by Bigcommerce. It allows you to customize and personalize your emails with data from your account.

Many businesses want to include the answers to profile questions in their PayWhirl email(s), which are sent from their account. In the example below, I'm going to show you how to edit the default 'new subscription email' to add profile questions from your account.

  • First navigate to the Email Template page

  • Create a new "new subscription" template

  • Click edit template and scroll down to where you want to place the questions and include this code:

<p>Your answers:</p>
{% for question in profile_questions %}
<p>
<strong>{{ question.label }}</strong><br/>
{{ question.answer }}
</p>
{% endfor %}
</div>

Note: The email preview you see will have random questions and answers, it will not show actual customer data until you run a test transaction.

Related Articles:

Please let us know if you have any questions. 

Sincerely,
The PayWhirl Team

Did this answer your question?