{% if autodebit %}{% if invoice.autodebit_date_formatted %}Auto debit is enabled for your account, so we'll automatically process the card you have on file on {invoice.autodebit_date_formatted} unless payment has been applied sooner.{% else %}If you would like us to automatically charge your card, please log in to your account at http://{client_url} to set up auto debit.{% endif %}{% else %}If you would like us to automatically charge your card, please log in to your account at https://{client_url} to set up auto debit.{% endif %}
I'm wondering why the {else} statement is in there twice. When I remove the second one, I get the following error:
Question
NETLINK
Hello!
I have the following in my invoice template:
I'm wondering why the {else} statement is in there twice. When I remove the second one, I get the following error:
"Template parse error: endfor tag doesn't exist"
I'm just trying to understand the logic.
Thanks!
3 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.