diff --git a/frontend/templates/notification/pledge_donation_credit/full.txt b/frontend/templates/notification/pledge_gift_credit/full.txt similarity index 100% rename from frontend/templates/notification/pledge_donation_credit/full.txt rename to frontend/templates/notification/pledge_gift_credit/full.txt diff --git a/frontend/templates/notification/pledge_donation_credit/notice.html b/frontend/templates/notification/pledge_gift_credit/notice.html similarity index 100% rename from frontend/templates/notification/pledge_donation_credit/notice.html rename to frontend/templates/notification/pledge_gift_credit/notice.html diff --git a/frontend/templates/notification/pledge_donation_credit/short.txt b/frontend/templates/notification/pledge_gift_credit/short.txt similarity index 100% rename from frontend/templates/notification/pledge_donation_credit/short.txt rename to frontend/templates/notification/pledge_gift_credit/short.txt diff --git a/frontend/templates/notification/purchase_complete/full.txt b/frontend/templates/notification/purchase_complete/full.txt index 54669b62..445be4c3 100644 --- a/frontend/templates/notification/purchase_complete/full.txt +++ b/frontend/templates/notification/purchase_complete/full.txt @@ -1,4 +1,4 @@ -{% load humanize %}{% ifequal transaction.host 'credit' %}Your Unglue.it transaction has completed and ${{transaction.max_amount|intcomma}} has been deducted from your Unglue.it credit balance. You have ${{request.user.credit.available|intcomma}} of credit left. {% else %}{% if transaction.max_amount > transaction.amount %}Your transaction for ${{transaction.max_amount|intcomma}} has completed. Your credit card has been charged ${{transaction.amount}} and the rest has been deducted from your unglue.it credit balance. You have ${{request.user.credit.available|intcomma}} of credit left. {% else %}Your Unglue.it credit card transaction has completed and your credit card has been charged ${{ transaction.amount|intcomma }}. {% endif %}{% endifequal %} +{% load humanize %}{% ifequal transaction.host 'credit' %}Your Unglue.it transaction has completed and ${{transaction.max_amount|default:"0"}} has been deducted from your Unglue.it credit balance. You have ${{transaction.user.credit.available|default:"0"}} of credit left. {% else %}{% if transaction.max_amount > transaction.amount %}Your transaction for ${{transaction.max_amount|default:"0"}} has completed. Your credit card has been charged ${{transaction.amount}} and the rest has been deducted from your unglue.it credit balance. You have ${{transaction.user.credit.available|default:"0"}} of credit left. {% else %}Your Unglue.it credit card transaction has completed and your credit card has been charged ${{ transaction.amount|default:"0" }}. {% endif %}{% endifequal %} {% ifequal transaction.offer.license 2 %}If you have not already done so, download your ebook at https://{{ current_site.domain }}{% url download transaction.campaign.work.id %} diff --git a/frontend/templates/notification/purchase_complete/notice.html b/frontend/templates/notification/purchase_complete/notice.html index 6e2c5ffb..c6716f4d 100644 --- a/frontend/templates/notification/purchase_complete/notice.html +++ b/frontend/templates/notification/purchase_complete/notice.html @@ -8,13 +8,13 @@ {% block comments_graphical %} {% ifequal transaction.host 'credit' %} Your Unglue.it transaction has completed and ${{transaction.max_amount|intcomma}} has been deducted from your Unglue.it credit balance. - You have ${{request.user.credit.available|intcomma}} of credit left. + You have ${{transaction.user.credit.available|default:"0"}} of credit left. {% else %} {% if transaction.max_amount > transaction.amount %} Your transaction for ${{transaction.max_amount|intcomma}} has completed. Your credit card has been charged ${{transaction.amount}} and the rest has been deducted from your unglue.it credit balance. - You have ${{request.user.credit.available|intcomma}} of credit left. + You have ${{transaction.user.credit.available|intcomma}} of credit left. {% else %} Your Unglue.it credit card transaction has completed and your credit card has been charged ${{ transaction.amount|intcomma }}. {% endif %} diff --git a/frontend/templates/trans_summary.html b/frontend/templates/trans_summary.html index 08374eb0..d961a76a 100644 --- a/frontend/templates/trans_summary.html +++ b/frontend/templates/trans_summary.html @@ -27,13 +27,13 @@ {% ifequal transaction.host 'credit' %} Amount: ${{transaction.max_amount|intcomma}}.
This amount has been deducted from your Unglue.it credit balance.
- You have ${{request.user.credit.available|intcomma}} of credit left.
+ You have ${{request.user.credit.available|default:"0"}} of credit left.
{% else %} Total: ${{transaction.max_amount|intcomma}}.
{% if transaction.max_amount > transaction.amount %} Your credit card has been charged ${{transaction.amount}}.
The rest has been deducted from your unglue.it credit balance.
- You have ${{request.user.credit.available|intcomma}} of credit left.
+ You have ${{request.user.credit.available|default:"0"}} of credit left.
{% else %} This amount has been charged to your credit card.
{% endif %}