Jump to content
  • 0

Edit Email Template Invoice Delivery (Unpaid) - Available Tags: {payment_url}


Question

2 answers to this question

Recommended Posts

  • 0
Posted

You should take a look at the email template documentation for reference with what email tags are available to each template. You may also want to look at the "Additional Tags" section of the templates since the tags listed in Blesta are a subset of those that may be available to the email depending on data available when it is sent.

Some email templates, like the "Invoice Delivery (Unpaid)" and "Invoice Delivery (Paid)" templates, are sent for potentially multiple invoices. Since the payment_url tag only applies to one specific invoice, the payment_url tag is attached to each invoice individually, i.e., the tag is {invoice.payment_url} when you iterate over the invoices, e.g.:

If there is an {invoices} tag available, then you may have a payment_url value available:

{% for invoice in invoices %}
Invoice ID: {invoice.id_code}
Amount Due: {invoice.due}
Pay now at https://{invoice.payment_url}.
{% endfor %}

The "Payment Declined (Credit Card)" email template doesn't have an {invoices} tag available to it, possibly because the invoices aren't available at the point the email is sent. However, that is something we can look into adding. I'd be curious to know if others would find it useful as well.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...