Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% block messaging %}
- {{ parent() }}
- <!-- customized link message -->
- {% set has_download = false %}
- {% set download_url = 'http://www.yourdownloadlinkhere.com/' %}
- {% for item in items %}
- {% if item.category == 'Your download category here' %}
- {% set has_download = true %}
- {% set download_url = download_url ~ 'linktofile' ~ item.code ~ '.zip' %}
- {% endif %}
- {% endfor %}
- {% if has_download %}
- <div id="fc-messages" class="fc-receipt__section">
- <div class="fc-alert fc-alert--success">
- <a href="{{ download_url }}">Download your records</a>
- </div>
- </div>
- {% endif %}
- <!-- /customized link message -->
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement