From: Anthony Talarico Date: Mon, 15 Jan 2018 19:36:58 +0000 (-0500) Subject: fixing the wrapping issue with the discount totals in the cart summary X-Git-Tag: v1.0.0^2~56 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6ab4c81a15b2a8835669eaa2026a8ec8bb5be034;p=WP-Plugins%2Fglm-member-db-registrations.git fixing the wrapping issue with the discount totals in the cart summary cart summary discount totals were not rendering properly, totals were wrapping --- diff --git a/css/admin.css b/css/admin.css index 05e7751..ec8c9b7 100644 --- a/css/admin.css +++ b/css/admin.css @@ -255,7 +255,7 @@ span.glm-error { .glm-reg-cart-total{ - font-size: 22px; + font-size: 20px; text-align: center; padding: 5px; } diff --git a/css/front.css b/css/front.css index aa28a42..e2dc518 100644 --- a/css/front.css +++ b/css/front.css @@ -1068,7 +1068,7 @@ hr.glm-reg-class-separator{ border: none; } .glm-reg-cart-total{ - font-size: 22px; + font-size: 20px; } .glm-reg-cart-total-attendees{ font-size: 24px; diff --git a/views/front/registrations/cartSummary.html b/views/front/registrations/cartSummary.html index deb175b..f88a6dd 100644 --- a/views/front/registrations/cartSummary.html +++ b/views/front/registrations/cartSummary.html @@ -93,6 +93,7 @@ {/if} {/foreach} {/if} + {if $registrant.registrantDiscounts > 0}
@@ -115,7 +116,7 @@ {foreach $event.payCodes as $payCode}
- Discount Code: "{$payCode.code}", + Discount Code: "{$payCode.code}", {if $payCode.code_type == 'Free'}Free{/if} {if $payCode.code_type =='Amount'}${$payCode.amount|number_format:2}{/if} {if $payCode.code_type == 'Percent'}{$payCode.amount}%{/if} @@ -151,19 +152,23 @@
{if $cart.globalPayCodes} +
+ + {foreach $cart.globalPayCodes as $payCode}
-
- Discount Code: "{$payCode.code}", +
+ Discount Code: "{$payCode.code}", {if $payCode.code_type == 'Free'}Free{/if} {if $payCode.code_type =='Amount'}${$payCode.amount|number_format:2}{/if} {if $payCode.code_type == 'Percent'}{$payCode.amount}%{/if}
-
+
${$payCode.thisDiscount|number_format:2}
{/foreach} +
{/if} {if $cart.totalDiscounts > 0}