katycomputer Posted November 19, 2018 Report Posted November 19, 2018 When editing "Email Template Invoice Delivery (Unpaid)" {payment_url} is not showing up as an Available Tags. Shouldn't it be an option? Quote
0 katycomputer Posted November 21, 2018 Author Report Posted November 21, 2018 We see the same issue with "Edit Email Template Payment Declined (Credit Card)", no {payment_url}. Can this be added? It seems like we would all like to give our clients as many methods to pay as is possible. Quote
0 Tyson Posted November 21, 2018 Report Posted November 21, 2018 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. Quote
Question
katycomputer
When editing "Email Template Invoice Delivery (Unpaid)" {payment_url} is not showing up as an Available Tags. Shouldn't it be an option?
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.