products.tpl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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. <span>{$product.pricing.montly} </span>{$LANG.pricingCycleShort.monthly}
  178. {*
  179. {assign var="ccurrency" value=$product.pricing.minprice.price->getCurrency()}
  180. <span class="prefix" style="color:#2368AD;">{$ccurrency["prefix"]}</span>&nbsp;
  181. <span class="cost" style="color:#2368AD;">{$product.pricing.minprice.price->toNumeric()}</span>&nbsp;
  182. <span class="suffix" style="color:#2368AD;" >{$ccurrency["suffix"]}</span>
  183. <span class="cycle">
  184. {if $product.pricing.minprice.cycle eq "monthly"}
  185. /{$LANG.pricingCycleShort.monthly}
  186. {elseif $product.pricing.minprice.cycle eq "quarterly"}
  187. /{$LANG.pricingCycleShort.quarterly}
  188. {elseif $product.pricing.minprice.cycle eq "semiannually"}
  189. /{$LANG.pricingCycleShort.semiannually}
  190. {elseif $product.pricing.minprice.cycle eq "annually"}
  191. /{$LANG.pricingCycleShort.annually}
  192. {elseif $product.pricing.minprice.cycle eq "biennially"}
  193. /{$LANG.pricingCycleShort.biennially}
  194. {elseif $product.pricing.minprice.cycle eq "triennially"}
  195. /{$LANG.pricingCycleShort.triennially}
  196. {/if}
  197. </span>*}
  198. {/if}
  199. {if $product.pricing.minprice.setupFee}
  200. <div class="small text-muted">({$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee})</div>
  201. {/if}
  202. </td>
  203. </tr>
  204. <!-- <tr> <td> <br /></td> </tr> -->
  205. <tr>
  206. <td> <!-- Product Details -->
  207. <table class="plan-features collapse" id="PlanLists1" style="display:unset;">
  208. {foreach from=$product.features key=feature item=value}
  209. <tr>
  210. <td style="padding-right: 13px;"><b>{$feature}:</b></td>
  211. <td>
  212. {if $value == "Ja"}
  213. <i class="far fa-check-square" style="font-size:14px"></i>
  214. {elseif $value == "Nein"}
  215. <i class="far fa-square" style="font-size:14px"></i>
  216. {elseif $value == "Optional"}
  217. <i class="fas fa-plus" style="font-size:14px"></i>
  218. {else}
  219. {$value}
  220. {/if}
  221. </td>
  222. </tr>
  223. {/foreach}
  224. </table>
  225. {*
  226. <ul class="plan-features collapse" id="PlanLists1">
  227. {foreach from=$product.features key=feature item=value}
  228. <li>TD {$feature} <b>{$value}</b></li>
  229. {/foreach}
  230. </ul>
  231. *}
  232. {if $product.isFeatured}
  233. <!-- Popular plan sticker -->
  234. <div class="sticker-wrapper">
  235. <div class="sticker">
  236. {$LANG.featuredProduct}
  237. </div>
  238. </div>
  239. <!-- //End popular plan sticker-->
  240. {/if}
  241. </td>
  242. </tr>
  243. </table>
  244. {if $product.pricing.type eq 'free'}
  245. {if (count($clientActiveFree) + count($clientCardFree)) > (1 + (int)$clientsdetails.notes|strstr:"AddTrials="|truncate:11:""|replace:"AddTrials=":"")}
  246. <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;">
  247. {$LANG.request}
  248. </a>
  249. {elseif in_array($product.pid, $clientPids) && !in_array($product.pid, $clientActiveFree)}
  250. <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;">
  251. {$LANG.tryagain}
  252. </a>
  253. {elseif in_array($product.pid, $clientCardFree)}
  254. <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;">
  255. {$LANG.alreadyincard}
  256. </a>
  257. {elseif in_array($product.pid, $clientActiveFree)}
  258. <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">
  259. {$LANG.alreadyactive}
  260. </a>
  261. {else}
  262. <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">
  263. {$LANG.ordernowbutton}
  264. </a>
  265. {/if}
  266. {else}
  267. <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">
  268. {$LANG.ordernowbutton}
  269. </a>
  270. {/if}
  271. </table>
  272. </div>
  273. {/foreach}
  274. </div>
  275. <!-- </div> -->
  276. </div>
  277. {if count($productGroup.features) > 0}
  278. <div class="space-30"></div>
  279. <div class="block-s3">
  280. <div class="text-center">
  281. <h2 class="no-margin">{$LANG.orderForm.includedWithPlans}</h2>
  282. </div>
  283. </div>
  284. <hr class="separator"></hr>
  285. <div class="cart-features no-margin-top">
  286. <div class="includes-features">
  287. <ul class="list-features">
  288. {foreach $productGroup.features as $features}
  289. <li>{$features.feature}</li>
  290. {/foreach}
  291. </ul>
  292. </div>
  293. </div>
  294. {/if}
  295. </div>
  296. </div>
  297. </div>
  298. {if file_exists("templates/orderforms/{$carttpl}/layouts/foot.tpl")}
  299. {include file="templates/orderforms/{$carttpl}/layouts/foot.tpl"}
  300. {/if}
  301. <script type="text/javascript">
  302. $(document).ready(function() {
  303. $(".pricing-box").owlCarousel({
  304. {if count($products) == 1}
  305. responsive:{
  306. 0:{
  307. items:1,
  308. }
  309. }
  310. {elseif count($products) == 2}
  311. responsive:{
  312. 0:{
  313. items:1,
  314. },
  315. 768:{
  316. items:2,
  317. }
  318. }
  319. {elseif count($products) == 3}
  320. responsive:{
  321. 0:{
  322. items:1,
  323. },
  324. 768:{
  325. items:2,
  326. },
  327. 992:{
  328. items:3,
  329. }
  330. }
  331. {else}
  332. responsive:{
  333. 0:{
  334. items:1,
  335. },
  336. 768:{
  337. items:2,
  338. },
  339. 992:{
  340. items:3,
  341. },
  342. 1200:{
  343. items:4,
  344. }
  345. }
  346. {/if}
  347. });
  348. });
  349. function redirectToCartPage()
  350. {
  351. var path = jQuery('#gidForm').val();
  352. if (path) {
  353. window.location.href = path;
  354. }
  355. }
  356. </script>
  357. <!-- End of Template: orderforms/thurdata/products.tpl -->