forked from TheMaxium69/SolidServ-WHMCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upgradesummary.tpl
144 lines (131 loc) · 6.71 KB
/
upgradesummary.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
<div class="card">
<div class="card-body">
{if $promoerror}
{include file="$template/includes/alert.tpl" type="error" msg=$promoerror textcenter=true}
{/if}
{if $promorecurring}
{include file="$template/includes/alert.tpl" type="info"
msg="{lang key='recurringpromodesc'}"|sprintf2:$promorecurring textcenter=true}
{/if}
<div class="alert alert-block alert-info text-center">
{lang key='upgradecurrentconfig'}: <strong>{$groupname} - {$productname}</strong>{if $domain} ({$domain}){/if}
</div>
<table class="table table-striped">
<thead>
<tr>
<th width="60%">{lang key='orderdesc'}</th>
<th width="40%" class="text-center">{lang key='orderprice'}</th>
</tr>
</thead>
<tbody>
{foreach $upgrades as $upgrade}
{if $type eq "package"}
<tr>
<td><input type="hidden" name="pid" value="{$upgrade.newproductid}" /><input type="hidden" name="billingcycle" value="{$upgrade.newproductbillingcycle}" />{$upgrade.oldproductname} => {$upgrade.newproductname}</td>
<td class="text-center">{$upgrade.price}</td>
</tr>
{elseif $type eq "configoptions"}
<tr>
<td>{$upgrade.configname}: {$upgrade.originalvalue} => {$upgrade.newvalue}</td>
<td class="text-center">{$upgrade.price}</td>
</tr>
{/if}
{/foreach}
<tr class="masspay-total">
<td class="text-right">{lang key='ordersubtotal'}:</td>
<td class="text-center">{$subtotal}</td>
</tr>
{if $promodesc}
<tr class="masspay-total">
<td class="text-right">{$promodesc}:</td>
<td class="text-center">{$discount}</td>
</tr>
{/if}
{if $taxrate}
<tr class="masspay-total">
<td class="text-right">{$taxname} @ {$taxrate}%:</td>
<td class="text-center">{$tax}</td>
</tr>
{/if}
{if $taxrate2}
<tr class="masspay-total">
<td class="text-right">{$taxname2} @ {$taxrate2}%:</td>
<td class="text-center">{$tax2}</td>
</tr>
{/if}
<tr class="masspay-total">
<td class="text-right">{lang key='ordertotalduetoday'}:</td>
<td class="text-center">{$total}</td>
</tr>
</tbody>
</table>
{if $type eq "package"}
{include file="$template/includes/alert.tpl" type="warning" msg="{lang key='upgradeproductlogic'}"|cat:' ('|cat:$upgrade.daysuntilrenewal|cat:' '|cat:"{lang key='days'}"|cat:')' textcenter=true}
{/if}
<div class="row">
<div class="col-sm-6">
<form method="post" action="{$smarty.server.PHP_SELF}" role="form">
<input type="hidden" name="step" value="2" />
<input type="hidden" name="type" value="{$type}" />
<input type="hidden" name="id" value="{$id}" />
{if $type eq "package"}
<input type="hidden" name="pid" value="{$upgrades.0.newproductid}" />
<input type="hidden" name="billingcycle" value="{$upgrades.0.newproductbillingcycle}" />
{/if}
<h2>{lang key='orderpromotioncode'}</h2>
{foreach $configoptions as $cid => $value}
<input type="hidden" name="configoption[{$cid}]" value="{$value}" />
{/foreach}
<div class="input-group">
<input class="form-control" type="text" name="promocode" placeholder="{lang key='orderpromotioncode'}" width="40"
{if $promocode}value="{$promocode} - {$promodesc}" disabled="disabled"{/if}>
{if $promocode}
<div class="input-group-append">
<button type="submit" name="removepromo" class="btn btn-danger">
{lang key='orderdontusepromo'}
</button>
</div>
{else}
<div class="input-group-append">
<button type="submit" class="btn btn-success">
{lang key='orderpromovalidatebutton'}
</button>
</div>
{/if}
</div>
</form>
</div>
<div class="col-sm-6">
<form method="post" action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="step" value="3" />
<input type="hidden" name="type" value="{$type}" />
<input type="hidden" name="id" value="{$id}" />
{if $type eq "package"}
<input type="hidden" name="pid" value="{$upgrades.0.newproductid}" />
<input type="hidden" name="billingcycle" value="{$upgrades.0.newproductbillingcycle}" />
{/if}
{foreach $configoptions as $cid => $value}
<input type="hidden" name="configoption[{$cid}]" value="{$value}" />
{/foreach}
{if $promocode}<input type="hidden" name="promocode" value="{$promocode}">{/if}
<h2>{lang key='orderpaymentmethod'}</h2>
<div class="form-group">
<select name="paymentmethod" id="inputPaymentMethod" class="form-control custom-select">
{if $allowgatewayselection}
<option value="none">{lang key='paymentmethoddefault'}</option>
{/if}
{foreach $gateways as $gateway}
<option value="{$gateway.sysname}"{if $gateway.sysname eq $selectedgateway} selected="selected"{/if}>{$gateway.name}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="form-group text-center">
<button type="submit" class="btn btn-primary" id="btnOrderContinue">
{lang key='continue'} <i class="fas fa-arrow-right"></i>
</button>
</div>
</form>
</div>
</div>