-
Notifications
You must be signed in to change notification settings - Fork 64
/
ordersummary.tpl
179 lines (173 loc) · 8.48 KB
/
ordersummary.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{if $producttotals}
<span class="product-name">{if $producttotals.allowqty && $producttotals.qty > 1}{$producttotals.qty} x {/if}{$producttotals.productinfo.name}</span>
<span class="product-group">{$producttotals.productinfo.groupname}</span>
<div class="clearfix">
<span class="pull-left float-left">{$producttotals.productinfo.name}</span>
<span class="pull-right float-right">{$producttotals.pricing.baseprice}</span>
</div>
{foreach $producttotals.configoptions as $configoption}
{if $configoption}
<div class="clearfix">
<span class="pull-left float-left"> » {$configoption.name}: {$configoption.optionname}</span>
<span class="pull-right float-right">{$configoption.recurring}{if $configoption.setup} + {$configoption.setup} {$LANG.ordersetupfee}{/if}</span>
</div>
{/if}
{/foreach}
{foreach $producttotals.addons as $addon}
<div class="clearfix">
<span class="pull-left float-left">+ {$addon.name}</span>
<span class="pull-right float-right">{$addon.recurring}</span>
</div>
{/foreach}
{if $producttotals.pricing.setup || $producttotals.pricing.recurring || $producttotals.pricing.addons}
<div class="summary-totals">
{if $producttotals.pricing.setup}
<div class="clearfix">
<span class="pull-left float-left">{$LANG.cartsetupfees}:</span>
<span class="pull-right float-right">{$producttotals.pricing.setup}</span>
</div>
{/if}
{foreach from=$producttotals.pricing.recurringexcltax key=cycle item=recurring}
<div class="clearfix">
<span class="pull-left float-left">{$cycle}:</span>
<span class="pull-right float-right">{$recurring}</span>
</div>
{/foreach}
{if $producttotals.pricing.tax1}
<div class="clearfix">
<span class="pull-left float-left">{$carttotals.taxname} @ {$carttotals.taxrate}%:</span>
<span class="pull-right float-right">{$producttotals.pricing.tax1}</span>
</div>
{/if}
{if $producttotals.pricing.tax2}
<div class="clearfix">
<span class="pull-left float-left">{$carttotals.taxname2} @ {$carttotals.taxrate2}%:</span>
<span class="pull-right float-right">{$producttotals.pricing.tax2}</span>
</div>
{/if}
</div>
{/if}
<div class="total-due-today">
<span class="amt">{$producttotals.pricing.totaltoday}</span>
<span>{$LANG.ordertotalduetoday}</span>
</div>
{elseif !empty($renewals) || !empty($serviceRenewals)}
{if !empty($serviceRenewals)}
{if !empty($carttotals.renewalsByType.services)}
<span class="product-name">{lang key='renewService.titleAltPlural'}</span>
{foreach $carttotals.renewalsByType.services as $serviceId => $serviceRenewal}
<div class="clearfix" id="cartServiceRenewal{$serviceId}">
<div class="pull-left float-left">
<div>
{$serviceRenewal.name}
</div>
<div>
{$serviceRenewal.domainName}
</div>
</div>
<div class="pull-right float-right">
<div>
{$serviceRenewal.billingCycle}
</div>
<div>
{$serviceRenewal.recurringBeforeTax}
<a onclick="removeItem('r','{$serviceId}','service'); return false;" href="#" id="linkCartRemoveServiceRenewal{$serviceId}">
<i class="fas fa-fw fa-trash-alt"></i>
</a>
</div>
</div>
</div>
{/foreach}
{/if}
{if !empty($carttotals.renewalsByType.addons)}
<span class="product-name">{lang key='renewServiceAddon.titleAltPlural'}</span>
{foreach $carttotals.renewalsByType.addons as $serviceAddonId => $serviceAddonRenewal}
<div class="clearfix" id="cartServiceAddonRenewal{$serviceAddonId}">
<div class="pull-left float-left">
<div>
{$serviceAddonRenewal.name}
</div>
<div>
{$serviceAddonRenewal.domainName}
</div>
</div>
<div class="pull-right float-right">
<div>
{$serviceAddonRenewal.billingCycle}
</div>
<div>
{$serviceAddonRenewal.recurringBeforeTax}
<a onclick="removeItem('r','{$serviceAddonId}','addon'); return false;" href="#" id="linkCartRemoveServiceAddonRenewal{$serviceAddonId}">
<i class="fas fa-fw fa-trash-alt"></i>
</a>
</div>
</div>
</div>
{/foreach}
{/if}
{elseif !empty($renewals) && !empty($carttotals.renewalsByType.domains)}
<span class="product-name">{lang key='domainrenewals'}</span>
{foreach $carttotals.renewalsByType.domains as $domainId => $renewal}
<div class="clearfix" id="cartDomainRenewal{$domainId}">
<span class="pull-left float-left">
{$renewal.domain} - {$renewal.regperiod} {if $renewal.regperiod == 1}{lang key='orderForm.year'}{else}{lang key='orderForm.years'}{/if}
</span>
<span class="pull-right float-right">
{$renewal.priceBeforeTax}
<a onclick="removeItem('r','{$domainId}','domain'); return false;" href="#" id="linkCartRemoveDomainRenewal{$domainId}">
<i class="fas fa-fw fa-trash-alt"></i>
</a>
</span>
</div>
{if $renewal.dnsmanagement}
<div class="clearfix">
<span class="pull-left float-left">+ {lang key='domaindnsmanagement'}</span>
</div>
{/if}
{if $renewal.emailforwarding}
<div class="clearfix">
<span class="pull-left float-left">+ {lang key='domainemailforwarding'}</span>
</div>
{/if}
{if $renewal.idprotection}
<div class="clearfix">
<span class="pull-left float-left">+ {lang key='domainidprotection'}</span>
</div>
{/if}
{if $renewal.hasGracePeriodFee}
<div class="clearfix">
<span class="pull-left float-left">+ {lang key='domainRenewal.graceFee'}</span>
</div>
{/if}
{if $renewal.hasRedemptionGracePeriodFee}
<div class="clearfix">
<span class="pull-left float-left">+ {lang key='domainRenewal.redemptionFee'}</span>
</div>
{/if}
{/foreach}
{/if}
<div class="summary-totals">
<div class="clearfix">
<span class="pull-left float-left">{lang key='ordersubtotal'}:</span>
<span class="pull-right float-right">{$carttotals.subtotal}</span>
</div>
{if ($carttotals.taxrate && $carttotals.taxtotal) || ($carttotals.taxrate2 && $carttotals.taxtotal2)}
{if $carttotals.taxrate}
<div class="clearfix">
<span class="pull-left float-left">{$carttotals.taxname} @ {$carttotals.taxrate}%:</span>
<span class="pull-right float-right">{$carttotals.taxtotal}</span>
</div>
{/if}
{if $carttotals.taxrate2}
<div class="clearfix">
<span class="pull-left float-left">{$carttotals.taxname2} @ {$carttotals.taxrate2}%:</span>
<span class="pull-right float-right">{$carttotals.taxtotal2}</span>
</div>
{/if}
{/if}
</div>
<div class="total-due-today">
<span class="amt">{$carttotals.total}</span>
<span>{lang key='ordertotalduetoday'}</span>
</div>
{/if}