Jump to content
  • 0

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


katycomputer

Question

2 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...