upgradesummary.tpl 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {*
  2. **********************************************************
  3. * Developed by: Team Theme Metro
  4. * Website: http://www.thememetro.com
  5. **********************************************************
  6. *}
  7. <div class="card">
  8. <div class="card-body">
  9. {if $promoerror}
  10. {include file="$template/includes/alert.tpl" type="error" msg=$promoerror textcenter=true}
  11. {/if}
  12. {if $promorecurring}
  13. {include file="$template/includes/alert.tpl" type="info"
  14. msg="{lang key='recurringpromodesc'}"|sprintf2:$promorecurring textcenter=true}
  15. {/if}
  16. <div class="alert alert-block alert-info text-center">
  17. {lang key='upgradecurrentconfig'}: <strong>{$groupname} - {$productname}</strong>{if $domain} ({$domain}){/if}
  18. </div>
  19. <table class="table table-striped">
  20. <thead>
  21. <tr>
  22. <th width="60%">{lang key='orderdesc'}</th>
  23. <th width="40%" class="text-center">{lang key='orderprice'}</th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. {foreach $upgrades as $upgrade}
  28. {if $type eq "package"}
  29. <tr>
  30. <td><input type="hidden" name="pid" value="{$upgrade.newproductid}" /><input type="hidden" name="billingcycle" value="{$upgrade.newproductbillingcycle}" />{$upgrade.oldproductname} => {$upgrade.newproductname}</td>
  31. <td class="text-center">{$upgrade.price}</td>
  32. </tr>
  33. {elseif $type eq "configoptions"}
  34. <tr>
  35. <td>{$upgrade.configname}: {$upgrade.originalvalue} => {$upgrade.newvalue}</td>
  36. <td class="text-center">{$upgrade.price}</td>
  37. </tr>
  38. {/if}
  39. {/foreach}
  40. <tr class="masspay-total">
  41. <td class="text-right">{lang key='ordersubtotal'}:</td>
  42. <td class="text-center">{$subtotal}</td>
  43. </tr>
  44. {if $promodesc}
  45. <tr class="masspay-total">
  46. <td class="text-right">{$promodesc}:</td>
  47. <td class="text-center">{$discount}</td>
  48. </tr>
  49. {/if}
  50. {if $taxrate}
  51. <tr class="masspay-total">
  52. <td class="text-right">{$taxname} @ {$taxrate}%:</td>
  53. <td class="text-center">{$tax}</td>
  54. </tr>
  55. {/if}
  56. {if $taxrate2}
  57. <tr class="masspay-total">
  58. <td class="text-right">{$taxname2} @ {$taxrate2}%:</td>
  59. <td class="text-center">{$tax2}</td>
  60. </tr>
  61. {/if}
  62. <tr class="masspay-total">
  63. <td class="text-right">{lang key='ordertotalduetoday'}:</td>
  64. <td class="text-center">{$total}</td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. {if $type eq "package"}
  69. {include file="$template/includes/alert.tpl" type="warning" msg="{lang key='upgradeproductlogic'}"|cat:' ('|cat:$upgrade.daysuntilrenewal|cat:' '|cat:"{lang key='days'}"|cat:')' textcenter=true}
  70. {/if}
  71. <div class="row">
  72. <div class="col-sm-6">
  73. <form method="post" action="{$smarty.server.PHP_SELF}" role="form">
  74. <input type="hidden" name="step" value="2" />
  75. <input type="hidden" name="type" value="{$type}" />
  76. <input type="hidden" name="id" value="{$id}" />
  77. {if $type eq "package"}
  78. <input type="hidden" name="pid" value="{$upgrades.0.newproductid}" />
  79. <input type="hidden" name="billingcycle" value="{$upgrades.0.newproductbillingcycle}" />
  80. {/if}
  81. <h4>{lang key='orderpromotioncode'}</h4>
  82. {foreach $configoptions as $cid => $value}
  83. <input type="hidden" name="configoption[{$cid}]" value="{$value}" />
  84. {/foreach}
  85. <div class="input-group">
  86. <input class="form-control" type="text" name="promocode" placeholder="{lang key='orderpromotioncode'}" width="40"
  87. {if $promocode}value="{$promocode} - {$promodesc}" disabled="disabled"{/if}>
  88. {if $promocode}
  89. <div class="input-group-append">
  90. <button type="submit" name="removepromo" class="btn btn-danger">
  91. {lang key='orderdontusepromo'}
  92. </button>
  93. </div>
  94. {else}
  95. <div class="input-group-append">
  96. <button type="submit" class="btn btn-success">
  97. {lang key='orderpromovalidatebutton'}
  98. </button>
  99. </div>
  100. {/if}
  101. </div>
  102. </form>
  103. </div>
  104. <div class="col-sm-6">
  105. <form method="post" action="{$smarty.server.PHP_SELF}">
  106. <input type="hidden" name="step" value="3" />
  107. <input type="hidden" name="type" value="{$type}" />
  108. <input type="hidden" name="id" value="{$id}" />
  109. {if $type eq "package"}
  110. <input type="hidden" name="pid" value="{$upgrades.0.newproductid}" />
  111. <input type="hidden" name="billingcycle" value="{$upgrades.0.newproductbillingcycle}" />
  112. {/if}
  113. {foreach $configoptions as $cid => $value}
  114. <input type="hidden" name="configoption[{$cid}]" value="{$value}" />
  115. {/foreach}
  116. {if $promocode}<input type="hidden" name="promocode" value="{$promocode}">{/if}
  117. <h4>{lang key='orderpaymentmethod'}</h4>
  118. <div class="form-group">
  119. <select name="paymentmethod" id="inputPaymentMethod" class="form-control custom-select">
  120. {if $allowgatewayselection}
  121. <option value="none">{lang key='paymentmethoddefault'}</option>
  122. {/if}
  123. {foreach $gateways as $gateway}
  124. <option value="{$gateway.sysname}"{if $gateway.sysname eq $selectedgateway} selected="selected"{/if}>{$gateway.name}</option>
  125. {/foreach}
  126. </select>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="form-actions">
  131. <button type="submit" class="btn btn-primary btn-block" id="btnOrderContinue">
  132. {lang key='continue'} <i class="fas fa-arrow-right"></i>
  133. </button>
  134. </div>
  135. </form>
  136. </div>
  137. </div>