diff --git a/src/templates/_components/app/summary-cart.twig b/src/templates/_components/app/summary-cart.twig index 65ff3ac..0a4a11e 100644 --- a/src/templates/_components/app/summary-cart.twig +++ b/src/templates/_components/app/summary-cart.twig @@ -16,6 +16,34 @@ {% endif %} + {% if not cart.shippingAddressId %} + {% if craft.fostercheckout.getOption('enableEstimatedShipping') %} + {% include 'foster-checkout/_components/app/estimated-shipping' %} + {% endif %} + + {% if craft.fostercheckout.getOption('enableFreeShippingMessage') %} +

+ {{ 'Add'|t('foster-checkout') }} + $24.15 + {{ 'for FREE shipping, or choose FREE Ship to Store.'|t('foster-checkout') }} +

+ {% endif %} + + {% else %} +
+
{{ 'Shipping & handling'|t('foster-checkout') }}
+
{{ cart.totalShippingCostAsCurrency }}
+
+ {% endif %} + + +
+
{{ 'Estimated tax'|t('foster-checkout') }}
+
{{ cart.totalTaxAsCurrency }}
+
+ + {% include 'foster-checkout/_components/app/coupon-code' %} + {% if craft.giftVoucher is defined %} {# Check for applied / redeemed gift card vouchers in orders #} @@ -24,7 +52,7 @@ {% if voucherCodes|length >= 1 %}
-

{{ 'Redeemed Gift Vouchers'|t('foster-checkout') }}

+

{{ 'Gift cards applied'|t('foster-checkout') }}

{% for code in voucherCodes %} @@ -36,14 +64,14 @@ {{ actionInput('gift-voucher/cart/remove-code') }} @@ -58,34 +86,6 @@ {% endif %} - {% if not cart.shippingAddressId %} - {% if craft.fostercheckout.getOption('enableEstimatedShipping') %} - {% include 'foster-checkout/_components/app/estimated-shipping' %} - {% endif %} - - {% if craft.fostercheckout.getOption('enableFreeShippingMessage') %} -

- {{ 'Add'|t('foster-checkout') }} - $24.15 - {{ 'for FREE shipping, or choose FREE Ship to Store.'|t('foster-checkout') }} -

- {% endif %} - - {% else %} -
-
{{ 'Shipping & handling'|t('foster-checkout') }}
-
{{ cart.totalShippingCostAsCurrency }}
-
- {% endif %} - - -
-
{{ 'Estimated tax'|t('foster-checkout') }}
-
{{ cart.totalTaxAsCurrency }}
-
- - {% include 'foster-checkout/_components/app/coupon-code' %} - {% if step|default('') != 'payment' %}
{{ 'Estimated total'|t('foster-checkout') }}
diff --git a/src/templates/checkout/payment.twig b/src/templates/checkout/payment.twig index efb41d1..62ae374 100644 --- a/src/templates/checkout/payment.twig +++ b/src/templates/checkout/payment.twig @@ -186,7 +186,6 @@ {% if craft.giftVoucher is defined %} -

@@ -245,6 +244,25 @@

+ + + + {# Check for applied / redeemed gift card vouchers in orders #} + + {% set voucherCodes = craft.giftVoucher.getVoucherCodes() %} + + {% if voucherCodes|length >= 1 %} +
+ + {% for code in voucherCodes %} + +
+

{{ 'Gift cards currently applied to your order'|t('foster-checkout') }}: {{ code }} ({{ craft.giftVoucher.codes().codeKey(code).one().currentAmount | currency }})

+
+ + {% endfor %} +
+ {% endif %}
{% endif %}