summary-table.tpl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <form method="post" action="{$smarty.server.PHP_SELF}?a=view">
  2. <div class="panel panel-default cart-item">
  3. <div class="panel-heading">
  4. <div class="row">
  5. <div class="{if $showqtyoptions || $showAddonQtyOptions}col-6{else}col-7{/if}">
  6. <strong class="fw-500">{$LANG.orderForm.productOptions}</strong>
  7. </div>
  8. {if $showqtyoptions || $showAddonQtyOptions}
  9. <div class="col-sm-2 text-center">
  10. <strong class="fw-500">{$LANG.orderForm.qty}</strong>
  11. </div>
  12. {/if}
  13. <div class="col">
  14. <strong class="fw-500">{$LANG.orderForm.priceCycle}</strong>
  15. </div>
  16. </div>
  17. </div>
  18. {foreach $products as $num => $product}
  19. <div class="panel-body">
  20. <div class="row">
  21. <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
  22. <span class="item-title">
  23. <span class="item-heading small text-muted mb-2">{$LANG.orderproduct}</span>
  24. <span class="fw-500 inline">{$product.productinfo.groupname} - {$product.productinfo.name}</span>
  25. {if $product.domain}
  26. <span class="item-domain">
  27. <i>{$product.domain}</i>
  28. </span>
  29. {/if}
  30. </span>
  31. {if $product.configoptions}
  32. <div class="item-addons">
  33. <div class="prod-addons-container configuration">
  34. {foreach key=confnum item=configoption from=$product.configoptions}
  35. <span class="item-group inline">{$configoption.name}: </span>
  36. <span class="item-name inline"> {if $configoption.type eq 1 || $configoption.type eq 2}{$configoption.option}{elseif $configoption.type eq 3}{if $configoption.qty}{$configoption.option}{else}{$LANG.no}{/if}{elseif $configoption.type eq 4}{$configoption.qty} x {$configoption.option}{/if}</span><br />
  37. {/foreach}
  38. </div>
  39. </div>
  40. {/if}
  41. </div>
  42. {if $showqtyoptions || $showAddonQtyOptions}
  43. <div class="col-2 item-qty{if !$product.allowqty} prod-qty-empty{/if}">
  44. {if $product.allowqty}
  45. <input type="number" name="qty[{$num}]" value="{$product.qty}" class="form-control text-center" min="0" />
  46. <button type="submit" class="btn btn-xs btn-default">
  47. {$LANG.orderForm.update}
  48. </button>
  49. {/if}
  50. </div>
  51. {/if}
  52. <div class="col item-price">
  53. <span class="pricing-heading small text-muted mb-2">{$LANG.orderprice}</span>
  54. <span>
  55. <strong>{$product.pricing.totalTodayExcludingTaxSetup}</strong><span class="cycle inline">{if $product.billingcycle !="free"}/{/if}{if $product.billingcycle =="onetime"}{$LANG.orderpaymenttermonetime}{elseif $product.billingcycle eq "monthly"}{$LANG.pricingCycleShort.monthly}{elseif $product.billingcycle eq "quarterly"}{$LANG.pricingCycleShort.quarterly}{elseif $product.billingcycle eq "semiannually"}{$LANG.pricingCycleShort.semiannually}{elseif $product.billingcycle eq "annually"}{$LANG.pricingCycleShort.annually}{elseif $product.billingcycle eq "biennially"}{$LANG.pricingCycleShort.biennially}{elseif $product.billingcycle eq "triennially"}{$LANG.pricingCycleShort.triennially}{/if}</span>
  56. </span>
  57. {if $product.pricing.productonlysetup}
  58. <small class="text-muted">+ {$product.pricing.productonlysetup->toPrefixed()} {$LANG.ordersetupfee}</small>
  59. {/if}
  60. {if $product.proratadate}<br /><small class="text-muted">({$LANG.orderprorata} {$product.proratadate})</small>{/if}
  61. </div>
  62. <div class="item-actions">
  63. <a href="{$WEB_ROOT}/cart.php?a=confproduct&i={$num}" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.edit}">
  64. <i class="fas fa-edit"></i>
  65. </a>
  66. <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('p', '{$num}')">
  67. <i class="fas fa-trash"></i>
  68. </button>
  69. </div>
  70. {if $product.addons}
  71. <div class="w-100"></div>
  72. <div class="item-addons col">
  73. <div class="prod-addons-container">
  74. {foreach $product.addons as $addonnum => $addon}
  75. <div class="row">
  76. <div class="{if $showqtyoptions || $showAddonQtyOptions}col-6{else}col-7{/if}">
  77. <span class="addon-item-group inline">
  78. {$LANG.orderaddon}:
  79. </span>
  80. <span class="addon-item-title inline">
  81. {$addon.name}
  82. </span>
  83. </div>
  84. {if $showqtyoptions || $showAddonQtyOptions}
  85. <div class="col-4 col-md-2 addon-item-qty{if $addon.allowqty !== 2} addon-qty-empty{/if}">
  86. {if $addon.allowqty === 2}
  87. <input type="number" name="paddonqty[{$num}][{$addonnum}]" value="{$addon.qty}" class="form-control text-center" min="0" />
  88. <button type="submit" class="btn btn-xs btn-default">
  89. {$LANG.orderForm.update}
  90. </button>
  91. {/if}
  92. </div>
  93. {/if}
  94. <div class="col addon-item-price">
  95. {if $addon.billingcycle != "free"}
  96. <span>{$addon.totaltoday}<span class="cycle inline">/{if $addon.billingcycle =="free"}{$LANG.orderpaymenttermfree}{elseif $addon.billingcycle =="onetime"}{$LANG.orderpaymenttermonetime}{elseif $addon.billingcycle eq "monthly"}{$LANG.pricingCycleShort.monthly}{elseif $addon.billingcycle eq "quarterly"}{$LANG.pricingCycleShort.quarterly}{elseif $addon.billingcycle eq "semiannually"}{$LANG.pricingCycleShort.semiannually}{elseif $addon.billingcycle eq "annually"}{$LANG.pricingCycleShort.annually}{elseif $addon.billingcycle eq "biennially"}{$LANG.pricingCycleShort.biennially}{elseif $addon.billingcycle eq "triennially"}{$LANG.pricingCycleShort.triennially}{/if}</span></span>
  97. {else}
  98. -
  99. {/if}
  100. {if $addon.setup}<small class="text-muted">+ {$addon.setup->toPrefixed()} {$LANG.ordersetupfee}</small>{/if}
  101. {if $addon.isProrated}<br /><small class="text-muted">({$LANG.orderprorata} {$addon.prorataDate})</small>{/if}
  102. </div>
  103. </div>
  104. {/foreach}
  105. </div>
  106. </div>
  107. {/if}
  108. </div>
  109. </div>
  110. {/foreach}
  111. {foreach $addons as $num => $addon}
  112. <div class="panel-body">
  113. <div class="row">
  114. <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
  115. <span class="item-title">
  116. <span class="fw-500 inline">{$addon.name} - {$addon.productname}</span>
  117. {if $addon.domainname}
  118. <span class="item-domain">
  119. <i>{$addon.domainname}</i>
  120. </span>
  121. {/if}
  122. </span>
  123. {if $addon.setup}
  124. <span class="item-setup">
  125. {$addon.setup} {$LANG.ordersetupfee}
  126. </span>
  127. {/if}
  128. </div>
  129. {if $showqtyoptions || $showAddonQtyOptions}
  130. <div class="col-2 item-qty{if $addon.allowqty !== 2} prod-qty-empty{/if}">
  131. {if $addon.allowqty === 2}
  132. <input type="number" name="addonqty[{$num}]" value="{$addon.qty}" class="form-control text-center" min="0" />
  133. <button type="submit" class="btn btn-xs">
  134. {$LANG.orderForm.update}
  135. </button>
  136. {/if}
  137. </div>
  138. {/if}
  139. <div class="col item-price">
  140. {if $addon.billingcycle != "free"}
  141. <span>{$addon.totaltoday}<span class="cycle inline">/{if $addon.billingcycle =="free"}{$LANG.orderpaymenttermfree}{elseif $addon.billingcycle =="onetime"}{$LANG.orderpaymenttermonetime}{elseif $addon.billingcycle eq "monthly"}{$LANG.pricingCycleShort.monthly}{elseif $addon.billingcycle eq "quarterly"}{$LANG.pricingCycleShort.quarterly}{elseif $addon.billingcycle eq "semiannually"}{$LANG.pricingCycleShort.semiannually}{elseif $addon.billingcycle eq "annually"}{$LANG.pricingCycleShort.annually}{elseif $addon.billingcycle eq "biennially"}{$LANG.pricingCycleShort.biennially}{elseif $addon.billingcycle eq "triennially"}{$LANG.pricingCycleShort.triennially}{/if}</span></span>
  142. {else}
  143. -
  144. {/if}
  145. {if $addon.setup}<small class="text-muted">{$addon.setup->toPrefixed()} {$LANG.ordersetupfee}</small>{/if}
  146. {if $addon.isProrated}<br /><br /><small class="text-muted">({$LANG.orderprorata} {$addon.prorataDate})</small>{/if}
  147. </div>
  148. <div class="item-actions">
  149. <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('a', '{$num}')">
  150. <i class="fas fa-trash"></i>
  151. </button>
  152. </div>
  153. </div>
  154. </div>
  155. {/foreach}
  156. {foreach $domains as $num => $domain}
  157. <div class="panel-body">
  158. <div class="row">
  159. <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
  160. <span class="item-title">
  161. {if $domain.type eq "register"}<span class="fw-500 inline">{$LANG.orderdomainregistration}</span>{else}<span class="fw-500 inline">{$LANG.orderdomaintransfer}</span>{/if}
  162. {if $domain.domain}
  163. <span class="item-domain">
  164. {$domain.domain}
  165. </span>
  166. {/if}
  167. </span>
  168. <div class="item-addons">
  169. <div class="prod-addons-container configuration">
  170. {if $domain.dnsmanagement}{$LANG.domaindnsmanagement}<br />{/if}
  171. {if $domain.emailforwarding}{$LANG.domainemailforwarding}<br />{/if}
  172. {if $domain.idprotection}{$LANG.domainidprotection}<br />{/if}
  173. </div>
  174. </div>
  175. </div>
  176. {if $showqtyoptions || $showAddonQtyOptions}
  177. <div class="prod-qty prod-qty-empty col-2">
  178. </div>
  179. {/if}
  180. <div class="col item-price">
  181. {if count($domain.pricing) == 1 || $domain.type == 'transfer'}
  182. <span class="inline strong" name="{$domain.domain}Price">{$domain.price}</span>
  183. <span class="cycle inline">{$domain.shortYearsLanguage}</span>
  184. <span class="renewal cycle">
  185. {if isset($domain.renewprice)}<small class="text-muted">{lang key='domainrenewalprice'}</small> <span class="renewal-price">{$domain.renewprice->toPrefixed()}{$domain.shortRenewalYearsLanguage}{/if}</span>
  186. </span>
  187. {else}
  188. <span classs="d-none" name="{$domain.domain}Price"></span>
  189. <div class="dropdown">
  190. <button class="btn btn-default p-2 dropdown-toggle" type="button" id="{$domain.domain}Pricing" name="{$domain.domain}Pricing" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
  191. <strong>{$domain.price}</strong>/{$domain.regperiod}{$domain.yearsLanguage}
  192. <span class="caret"></span>
  193. </button>
  194. <ul class="dropdown-menu" aria-labelledby="{$domain.domain}Pricing">
  195. {foreach $domain.pricing as $years => $price}
  196. <li>
  197. <a class="dropdown-item" href="#" onclick="selectDomainPeriodInCartCustom('{$domain.domain}', '{$price.register}', {$years}, '{if $years == 1}{lang key='orderForm.year'}{else}{lang key='orderForm.years'}{/if}');return false;">
  198. {$years} {if $years == 1}{lang key='orderForm.year'}{else}{lang key='orderForm.years'}{/if} @ {$price.register}
  199. </a>
  200. </li>
  201. {/foreach}
  202. </ul>
  203. </div>
  204. <span class="renewal cycle">
  205. <small class="text-muted">{lang key='domainrenewalprice'}</small> <span class="renewal-price">{if isset($domain.renewprice)}{$domain.renewprice->toPrefixed()}{$domain.shortRenewalYearsLanguage}{/if}</span>
  206. </span>
  207. {/if}
  208. </div>
  209. <div class="item-actions">
  210. <a href="{$WEB_ROOT}/cart.php?a=confdomains" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.edit}">
  211. <i class="fas fa-edit"></i>
  212. </a>
  213. <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('d', '{$num}')">
  214. <i class="fas fa-trash"></i>
  215. </button>
  216. </div>
  217. </div>
  218. </div>
  219. {/foreach}
  220. {foreach $renewalsByType['services'] as $num => $service}
  221. <div class="panel-body">
  222. <div class="row">
  223. <div class="col-sm-7">
  224. <span class="item-title fw-500">
  225. {lang key='renewService.titleAltSingular'}
  226. </span>
  227. <span class="item-group">
  228. {$service.name}
  229. </span>
  230. <span class="item-domain">
  231. {$service.domainName}
  232. </span>
  233. </div>
  234. <div class="col item-price">
  235. <span>{$service.recurringBeforeTax}</span>
  236. <span class="cycle">{$service.billingCycle}</span>
  237. </div>
  238. <div class="item-actions">
  239. <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('r','{$num}','service')">
  240. <i class="fas fa-trash"></i>
  241. </button>
  242. </div>
  243. </div>
  244. </div>
  245. {/foreach}
  246. {foreach $renewalsByType['domains'] as $num => $domain}
  247. <div class="panel-body">
  248. <div class="row">
  249. <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
  250. <span class="item-title fw-500">
  251. {$LANG.domainrenewal}
  252. </span>
  253. <span class="item-domain">
  254. {$domain.domain}
  255. </span>
  256. <div class="item-addons">
  257. <div class="prod-addons-container configuration">
  258. {if $domain.dnsmanagement}{$LANG.domaindnsmanagement}<br />{/if}
  259. {if $domain.emailforwarding}{$LANG.domainemailforwarding}<br />{/if}
  260. {if $domain.idprotection}{$LANG.domainidprotection}<br />{/if}
  261. </div>
  262. </div>
  263. </div>
  264. {if $showqtyoptions || $showAddonQtyOptions}
  265. <div class="prod-qty prod-qty-empty col-2">
  266. </div>
  267. {/if}
  268. <div class="col item-price">
  269. <span>{$domain.price}</span>
  270. <span class="cycle">{$domain.regperiod} {$LANG.orderyears}</span>
  271. </div>
  272. <div class="item-actions">
  273. <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('r','{$num}','domain')">
  274. <i class="fas fa-trash"></i>
  275. </button>
  276. </div>
  277. </div>
  278. </div>
  279. {/foreach}
  280. {foreach $upgrades as $num => $upgrade}
  281. <div class="panel-body">
  282. <div class="row">
  283. <div class="items{if $showqtyoptions || $showAddonQtyOptions} col-6{else} col-7{/if}">
  284. <span class="item-title">
  285. {$LANG.upgrade}
  286. </span>
  287. <span class="item-group">
  288. {if $upgrade->type == 'service'}
  289. {$upgrade->originalProduct->productGroup->name}<br>{$upgrade->originalProduct->name} => {$upgrade->newProduct->name}
  290. {elseif $upgrade->type == 'addon'}
  291. {$upgrade->originalAddon->name} => {$upgrade->newAddon->name}
  292. {/if}
  293. </span>
  294. <span class="item-domain">
  295. {if $upgrade->type == 'service'}
  296. {$upgrade->service->domain}
  297. {/if}
  298. </span>
  299. </div>
  300. {if $showqtyoptions || $showUpgradeQtyOptions}
  301. <div class="col-2 item-qty{if !$upgrade->allowMultipleQuantities} prod-qty-empty{/if}">
  302. {if $upgrade->allowMultipleQuantities}
  303. <input type="number" name="upgradeqty[{$num}]" value="{$upgrade->qty}" class="form-control text-center" min="{$upgrade->minimumQuantity}" />
  304. <button type="submit" class="btn btn-xs">
  305. {$LANG.orderForm.update}
  306. </button>
  307. {/if}
  308. </div>
  309. {/if}
  310. <div class="col item-price">
  311. <span>{$upgrade->newRecurringAmount}</span>
  312. <span class="cycle">{$upgrade->localisedNewCycle}</span>
  313. </div>
  314. <div class="item-actions">
  315. <button type="button" class="btn btn-icon" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="{$LANG.orderForm.remove}" onclick="removeItem('u', '{$num}')">
  316. <i class="fas fa-trash"></i>
  317. </button>
  318. </div>
  319. </div>
  320. {if $upgrade->totalDaysInCycle > 0}
  321. <div class="row row-upgrade-credit">
  322. <div class="col-sm-7">
  323. <span class="item-group">
  324. {$LANG.upgradeCredit}
  325. </span>
  326. <div class="upgrade-calc-msg">
  327. {lang key="upgradeCreditDescription" daysRemaining=$upgrade->daysRemaining totalDays=$upgrade->totalDaysInCycle}
  328. </div>
  329. </div>
  330. <div class="col-sm-4 item-price">
  331. <span>-{$upgrade->creditAmount}</span>
  332. </div>
  333. </div>
  334. {/if}
  335. </div>
  336. {/foreach}
  337. <div class="panel-footer white">
  338. <div class="d-flex align-items-center space-between">
  339. <span>
  340. <a href="{$WEB_ROOT}/cart.php" class="btn btn-default btn-xs" id="continueShopping">
  341. <i class="fas fa-reply"></i>
  342. <span>{$LANG.orderForm.continueShopping}</span>
  343. </a>
  344. {if $taxenabled && !$loggedin}
  345. <a data-toggle="modal" data-target="#estimate-taxes" class="btn btn-default btn-xs" href="#">{$LANG.orderForm.estimateTaxes}</a>
  346. {/if}
  347. </span>
  348. <button type="button" class="btn btn-default btn-xs" id="btnEmptyCart">
  349. <i class="fas fa-trash"></i>
  350. <span>{$LANG.emptycart}</span>
  351. </button>
  352. </div>
  353. </div>
  354. </div>
  355. </form>