products.tpl 14 KB

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