{# In the default template on Foxycarts github, they pass in the billing_address into their address include as 'address', hence setting the address variable here #}
{% set address = billing_address %}
Registration Information |
First Name |
{{ address.first_name }} |
Last Name |
{{ address.last_name }} |
{% if address.company %}
Company Name |
{{ address.company }} |
{% endif %}
{% if custom_fields.Member.value %}
RCASF Member |
Yes |
{% endif %}
{% if address.phone %}
Phone Number |
{{ address.phone }} |
{% endif %}
Email Address |
{{ customer_email }} |
Billing Address |
{{ address.address1 }},
{{ address.address2 }}
{% if address.country_name %}
{% if address.city %}
{{ address.city }}
{% endif %}
{% if address.region %}
{% if address.city %},
{% endif %}
{{ address.region }}
{% endif %}
{% if address.postal_code %}
{{ address.postal_code }}
{% endif %}
{% endif %}
|
{% set types = { "Tournament_Angler": 0, "Tournament_NonAngler": 0, "Tournament_JrAngler": 0, "Tournament_JrNonAngler": 0 } %}
{% for item in items %}
{% for key in types|keys %}
{% if item.parent_code == key %}
{% set newType = { (key) : (types[key] + 1) } %}
{% set types = types|merge(newType) %}
{% endif %}
{% endfor %}
{% endfor %}
Purchase Information |
Total Purchase |
{{ total_order|money_format }} |
{% if types.Tournament_Angler > 0 %}
# of Adult Angler |
{{ types.Tournament_Angler }} |
{% endif %}
{% if types.Tournament_NonAngler > 0 %}
# of Non-Fishing Adult |
{{ types.Tournament_NonAngler }} |
{% endif %}
{% if types.Tournament_JrAngler > 0 %}
# of Youth Angler |
{{ types.Tournament_JrAngler }} |
{% endif %}
{% if types.Tournament_JrNonAngler > 0 %}
# of Non-Fishing Youth |
{{ types.Tournament_JrNonAngler }} |
{% endif %}