products.tpl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. {debug}
  2. {include file="orderforms/{$carttpl}/common.tpl"}
  3. <!-- Start of Template: orderforms/thurdata/products.tpl -->
  4. {*
  5. {debug}
  6. *}
  7. {if count($products) < 4}
  8. <style rel="stylesheet" type="text/css">
  9. @media (min-width: 1400px) {
  10. #order-clouder {
  11. {if count($products) == 1}
  12. margin: 0 auto; max-width: 25%; width: 25%;
  13. {elseif count($products) == 2}
  14. margin: 0 auto; max-width: 50%; width: 50%;
  15. {elseif count($products) == 3}
  16. margin: 0 auto; max-width: 75%; width: 75%;
  17. {else}
  18. {/if}
  19. }
  20. }
  21. @media (min-width: 992px) and (max-width: 1399px) {
  22. #order-clouder {
  23. {if count($products) == 1}
  24. margin: 0 auto; max-width: 33%; width: 33%;
  25. {elseif count($products) == 2}
  26. margin: 0 auto; max-width: 75%; width: 75%;
  27. {else}
  28. {/if}
  29. }
  30. }
  31. </style>
  32. {/if}
  33. {if file_exists("templates/orderforms/{$carttpl}/layouts/head.tpl")}
  34. {include file="templates/orderforms/{$carttpl}/layouts/head.tpl"}
  35. {/if}
  36. <div id="order-standard_cart">
  37. <div class="row">
  38. <div class="col-md-12">
  39. {if file_exists("templates/orderforms/{$carttpl}/layouts/head.tpl")}
  40. {else}
  41. <div class="header-lined">
  42. <h1>
  43. {$productGroup.name}
  44. </h1>
  45. {if $productGroup.headline}
  46. <h4 class="text-muted">{$productGroup.headline}</h4>
  47. {/if}
  48. {if $productGroup.tagline}
  49. <p class="text-muted">{$productGroup.tagline}</p>
  50. {/if}
  51. </div>
  52. {/if}
  53. <div class="TM-categories-options justify-content-center" style="padding-bottom:20px">
  54. <form>
  55. <select name="gid" id="gidForm" onchange="javascript:redirectToCartPage()" class="form-control">
  56. <optgroup label="Product Categories">
  57. {foreach key=num item=productgroup from=$productgroups}
  58. <option value="{$productgroup.routePath}"{if $gid eq $productgroup.gid} selected="selected"{/if}>{$productgroup.name}</option>
  59. {/foreach}
  60. </optgroup>
  61. <optgroup label="Actions">
  62. {if $loggedin}
  63. <option value="{$WEB_ROOT}/cart.php?gid=addons"{if $gid eq "addons"} selected{/if}>{$LANG.cartproductaddons}</option>
  64. {if $renewalsenabled}
  65. <option value="{$WEB_ROOT}/cart.php?gid=renewals"{if $gid eq "renewals"} selected{/if}>{$LANG.domainrenewals}</option>
  66. {/if}
  67. {/if}
  68. {if $registerdomainenabled}
  69. <option value="{$WEB_ROOT}/cart.php?gid=registerdomain"{if $domain eq "register"} selected{/if}>{$LANG.navregisterdomain}</option>
  70. {/if}
  71. {if $transferdomainenabled}
  72. <option value="{$WEB_ROOT}/cart.php?gid=transferdomain"{if $domain eq "transfer"} selected{/if}>{$LANG.transferinadomain}</option>
  73. {/if}
  74. <option value="{$WEB_ROOT}/cart.php?a=view"{if $action eq "view"} selected{/if}>{$LANG.viewcart}</option>
  75. </optgroup>
  76. </select>
  77. </form>
  78. <br />
  79. <br />
  80. </div>
  81. {if $errormessage}
  82. <div class="alert alert-danger">
  83. {$errormessage}
  84. </div>
  85. {elseif !$productGroup}
  86. <div class="alert alert-info">
  87. {lang key='orderForm.selectCategory'}
  88. </div>
  89. {/if}
  90. </div>
  91. <style>
  92. .flickity-slider {
  93. height: 100%;
  94. min-height: 100%;
  95. }
  96. .flickity-slider > div {
  97. min-height: 100%;
  98. }
  99. .flickity-page-dots {
  100. top: -30px;
  101. bottom: 0%;
  102. }
  103. .carousel-cell {
  104. height: 100%
  105. }
  106. .prefix {
  107. font-size:150%;
  108. font-family: Roboto;
  109. }
  110. .cost {
  111. font-size:250%;
  112. font-family: Roboto;
  113. font-weight:800;
  114. }
  115. .suffix {
  116. font-size:250%;
  117. font-weight:600;
  118. }
  119. .cycle {
  120. font-size:150%;
  121. font-family: Roboto;
  122. }
  123. </style>
  124. <div class="col-md-12">
  125. <div id="order-clouder" style="max-width:unset;width:unset;">
  126. <!-- <div id="products" class="cros-pricing-container"> -->
  127. {if $products|@count < 3}
  128. <div class="carousel" style="position:absolute;top:0px;left:0px;bottom:0px;right:0px;" data-flickity='{ "groupCells": true, "adaptiveHeight": true, "autoPlay": false, "prevNextButtons": false, "pageDots": false }'>
  129. {else}
  130. <div class="carousel" style="position:absolute;top:0px;left:0px;bottom:0px;right:0px;" data-flickity='{ "groupCells": true, "adaptiveHeight": true, "autoPlay": false, "prevNextButtons": false }'>
  131. {/if}
  132. {foreach $products as $key => $product}
  133. <div class="carousell-cell" style="width:325px;height:100%;margin-right:25px;padding-left:20px;padding-right:20px;padding-bottom:20px;border:1px solid silver;border-radius:8px;" id="product{$product@iteration}">
  134. <!-- <div class="carousell-cell" style="width:325px;height:100% !important; margin-right:25px;border:1px solid silver;border-radius:8px;" id="product{$product@iteration}"> -->
  135. <table border="0" style="display: inline-table; table-layout:fixed; width:100%; visibility:visible;" cellpadding="0" cellspacing="5">
  136. <tr style="height:140px;">
  137. <td valign="top" style="max-height:140px !important;"> <!-- Title and description -->
  138. <div style="overflow:hidden;max-height:140px !important;">
  139. <h4 id="product{$product@iteration}-name" style="font-weight:700; font-family:Roboto; color:#2368AD;">{$product.name}</h4>
  140. {if $product.featuresdesc}
  141. {$product.featuresdesc}
  142. {else}
  143. <br />
  144. {/if}
  145. </div>
  146. </td>
  147. </tr>
  148. {if $product.bid}
  149. <tr>
  150. <td> <!-- Price Simple -->
  151. {$LANG.bundledeal}
  152. {if $product.displayprice}
  153. <span class="text-secondary bolder" style="font-size: 33px;">{$product.displayPriceSimple}</span>
  154. {/if}
  155. </td>
  156. </tr>
  157. {/if}
  158. <tr style="height:60px;">
  159. <td> <!-- Price -->
  160. {if $product.bid}
  161. {elseif $product.paytype eq "free"}
  162. <mark style="font-size:160%;background-color:#2368AD;">{$LANG.orderfree}</mark>
  163. {elseif $product.paytype eq "onetime"}
  164. <span>{$product.pricing.onetime} </span>{$LANG.orderpaymenttermonetime}
  165. {else}
  166. {*
  167. {if $product.pricing.hasconfigoptions}
  168. {$LANG.from}
  169. {/if}
  170. *}
  171. {assign var="ccurrency" value=$product.pricing.minprice.price->getCurrency()}
  172. <span class="prefix" style="color:#2368AD;">{$ccurrency["prefix"]}</span>&nbsp;
  173. <span class="cost" style="color:#2368AD;">{$product.pricing.minprice.price->toNumeric()}</span>&nbsp;
  174. <span class="suffix" style="color:#2368AD;" >{$ccurrency["suffix"]}</span>
  175. <span class="cycle">
  176. {if $product.pricing.minprice.cycle eq "monthly"}
  177. /{$LANG.pricingCycleShort.monthly}
  178. {elseif $product.pricing.minprice.cycle eq "quarterly"}
  179. /{$LANG.pricingCycleShort.quarterly}
  180. {elseif $product.pricing.minprice.cycle eq "semiannually"}
  181. /{$LANG.pricingCycleShort.semiannually}
  182. {elseif $product.pricing.minprice.cycle eq "annually"}
  183. /{$LANG.pricingCycleShort.annually}
  184. {elseif $product.pricing.minprice.cycle eq "biennially"}
  185. /{$LANG.pricingCycleShort.biennially}
  186. {elseif $product.pricing.minprice.cycle eq "triennially"}
  187. /{$LANG.pricingCycleShort.triennially}
  188. {/if}
  189. </span>
  190. {/if}
  191. {if $product.pricing.minprice.setupFee}
  192. <div class="small text-muted">({$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee})</div>
  193. {/if}
  194. </td>
  195. </tr>
  196. <!-- <tr> <td> <br /></td> </tr> -->
  197. <tr>
  198. <td> <!-- Product Details -->
  199. <table class="plan-features collapse" id="PlanLists1" style="display:unset;">
  200. {foreach from=$product.features key=feature item=value}
  201. <tr>
  202. <td style="padding-right: 13px;"><b>{$feature}:</b></td>
  203. <td>
  204. {if $value == "Ja"}
  205. <i class="far fa-check-square" style="font-size:14px"></i>
  206. {elseif $value == "Nein"}
  207. <i class="far fa-square" style="font-size:14px"></i>
  208. {elseif $value == "Optional"}
  209. <i class="fas fa-plus" style="font-size:14px"></i>
  210. {else}
  211. {$value}
  212. {/if}
  213. </td>
  214. </tr>
  215. {/foreach}
  216. </table>
  217. {*
  218. <ul class="plan-features collapse" id="PlanLists1">
  219. {foreach from=$product.features key=feature item=value}
  220. <li>TD {$feature} <b>{$value}</b></li>
  221. {/foreach}
  222. </ul>
  223. *}
  224. {if $product.isFeatured}
  225. <!-- Popular plan sticker -->
  226. <div class="sticker-wrapper">
  227. <div class="sticker">
  228. {$LANG.featuredProduct}
  229. </div>
  230. </div>
  231. <!-- //End popular plan sticker-->
  232. {/if}
  233. </td>
  234. </tr>
  235. </table>
  236. {if ($product.pricing.type eq 'free') && in_array($product.pid, $clientPids)}
  237. <a href="{$WEB_ROOT}/submitticket.php?step=2&deptid=1&subject={$LANG.tryagain} {$product.name}" class="btn btn-primary btn-block" style="position:absolute; left:20px; bottom:10px; right:20px; height:40px; width:unset;padding-top:6.5px;">
  238. {$LANG.tryagain}
  239. </a>
  240. {else}
  241. <a href="{$WEB_ROOT}/cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-primary btn-block" style="position:absolute; left:20px; bottom:10px; right:20px; height:40px; width:unset;padding-top:6.5px;" id="product{$product@iteration}-order-button">
  242. {$LANG.ordernowbutton}
  243. </a>
  244. {/if}
  245. </table>
  246. </div>
  247. {/foreach}
  248. </div>
  249. <!-- </div> -->
  250. </div>
  251. {if count($productGroup.features) > 0}
  252. <div class="space-30"></div>
  253. <div class="block-s3">
  254. <div class="text-center">
  255. <h2 class="no-margin">{$LANG.orderForm.includedWithPlans}</h2>
  256. </div>
  257. </div>
  258. <hr class="separator"></hr>
  259. <div class="cart-features no-margin-top">
  260. <div class="includes-features">
  261. <ul class="list-features">
  262. {foreach $productGroup.features as $features}
  263. <li>{$features.feature}</li>
  264. {/foreach}
  265. </ul>
  266. </div>
  267. </div>
  268. {/if}
  269. </div>
  270. </div>
  271. </div>
  272. {if file_exists("templates/orderforms/{$carttpl}/layouts/foot.tpl")}
  273. {include file="templates/orderforms/{$carttpl}/layouts/foot.tpl"}
  274. {/if}
  275. <script type="text/javascript">
  276. $(document).ready(function() {
  277. $(".pricing-box").owlCarousel({
  278. {if count($products) == 1}
  279. responsive:{
  280. 0:{
  281. items:1,
  282. }
  283. }
  284. {elseif count($products) == 2}
  285. responsive:{
  286. 0:{
  287. items:1,
  288. },
  289. 768:{
  290. items:2,
  291. }
  292. }
  293. {elseif count($products) == 3}
  294. responsive:{
  295. 0:{
  296. items:1,
  297. },
  298. 768:{
  299. items:2,
  300. },
  301. 992:{
  302. items:3,
  303. }
  304. }
  305. {else}
  306. responsive:{
  307. 0:{
  308. items:1,
  309. },
  310. 768:{
  311. items:2,
  312. },
  313. 992:{
  314. items:3,
  315. },
  316. 1200:{
  317. items:4,
  318. }
  319. }
  320. {/if}
  321. });
  322. });
  323. function redirectToCartPage()
  324. {
  325. var path = jQuery('#gidForm').val();
  326. if (path) {
  327. window.location.href = path;
  328. }
  329. }
  330. </script>
  331. <!-- End of Template: orderforms/thurdata/products.tpl -->