products.tpl 13 KB

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