products.tpl 13 KB

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