style-1.tpl 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. {if count($products) < 4}
  2. <style rel="stylesheet" type="text/css">
  3. @media (min-width: 1400px) {
  4. #order-clouder {
  5. {if $products|@count == 1}
  6. margin: 0 auto; max-width: 25%; width: 25%;
  7. {elseif $products|@count == 2}
  8. margin: 0 auto; max-width: 50%; width: 50%;
  9. {elseif $products|@count == 3}
  10. margin: 0 auto; max-width: 75%; width: 75%;
  11. {else}
  12. {/if}
  13. }
  14. }
  15. @media (min-width: 992px) and (max-width: 1399px) {
  16. #order-clouder {
  17. {if $products|@count == 1}
  18. margin: 0 auto; max-width: 33%; width: 33%;
  19. {elseif $products|@count == 2}
  20. margin: 0 auto; max-width: 75%; width: 75%;
  21. {else}
  22. {/if}
  23. }
  24. }
  25. </style>
  26. {/if}
  27. <div id="order-standard_cart">
  28. <div class="row">
  29. <div class="col-md-12">
  30. <div class="d-flex aling-items-center justify-content-center text-center">
  31. <div class="header-lined mb-3">
  32. <h1>
  33. {$productGroup.name}
  34. </h1>
  35. {if $productGroup.headline}
  36. <div class="text-muted mt-2">{$productGroup.headline}</div>
  37. {/if}
  38. {if $productGroup.tagline}
  39. <div class="text-muted mt-2">{$productGroup.tagline}</div>
  40. {/if}
  41. </div>
  42. </div>
  43. {if $showSidebarToggle}
  44. <div class="TM-categories-options d-flex justify-content-center">
  45. <a data-toggle="modal" data-target="#cat-opt" class="btn btn-primary btn-xs mb-2">
  46. <i class="fas fa-search-plus"></i> {$LANG.showMenu}
  47. </a>
  48. </div>
  49. <hr class="separator">
  50. {/if}
  51. {if $errormessage}
  52. <div class="alert alert-danger">
  53. {$errormessage}
  54. </div>
  55. {elseif !$productGroup}
  56. <div class="alert alert-info">
  57. {lang key='orderForm.selectCategory'}
  58. </div>
  59. {/if}
  60. </div>
  61. <div class="col-md-12">
  62. <div id="order-clouder">
  63. <div id="products" class="cros-pricing-container">
  64. <div class="owl-carousel pricing-box no-padding-top">
  65. {foreach $products as $key => $product}
  66. {$idPrefix = ($product.bid) ? ("bundle"|cat:$product.bid) : ("product"|cat:$product.pid)}
  67. <div class="slide-item" id="{$idPrefix}">
  68. <div class="cros-pricing-table light fixed-height {if $product.isFeatured}active{/if}">
  69. <h4 id="{$idPrefix}-name">{$product.name}
  70. {if $product.stockControlEnabled}
  71. <span class="small text-muted">
  72. <br />{$product.qty} {$LANG.orderavailable}
  73. </span>
  74. {/if}
  75. </h4>
  76. {if $product.featuresdesc}<div class="desc mb-0">{$product.featuresdesc}</div>{else}{/if}
  77. <div id="{$idPrefix}-price">
  78. {if $product.bid}
  79. <div class="small text-muted">{$LANG.bundledeal}</div>
  80. {if $product.displayprice}
  81. <span class="text-secondary bolder" style="font-size: 33px;">{$product.displayPriceSimple}</span>
  82. {/if}
  83. {/if}
  84. <div class="price d-block">
  85. {if $product.bid}
  86. {elseif $product.paytype eq "free"}
  87. <mark>{$LANG.orderfree}</mark>
  88. {elseif $product.paytype eq "onetime"}
  89. <span class="cost">{$product.pricing.minprice.simple}</span><br />{$LANG.orderpaymenttermonetime}
  90. {else}
  91. {if $product.pricing.hasconfigoptions}
  92. {$LANG.from}<br />
  93. {/if}
  94. <span class="cost">{$product.pricing.minprice.price}</span>
  95. <span class="cycle">{if $product.pricing.minprice.cycle eq "monthly"}
  96. /{$LANG.pricingCycleShort.monthly}
  97. {elseif $product.pricing.minprice.cycle eq "quarterly"}
  98. /{$LANG.pricingCycleShort.quarterly}
  99. {elseif $product.pricing.minprice.cycle eq "semiannually"}
  100. /{$LANG.pricingCycleShort.semiannually}
  101. {elseif $product.pricing.minprice.cycle eq "annually"}
  102. /{$LANG.pricingCycleShort.annually}
  103. {elseif $product.pricing.minprice.cycle eq "biennially"}
  104. /{$LANG.pricingCycleShort.biennially}
  105. {elseif $product.pricing.minprice.cycle eq "triennially"}
  106. /{$LANG.pricingCycleShort.triennially}
  107. {/if}</span>
  108. {/if}
  109. </div>
  110. {if $product.pricing.minprice.setupFee}
  111. <div class="small text-muted">+ ({$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee})</div>
  112. {/if}
  113. </div>
  114. <a href="{if $themesettings.orderform.orderopc != ""}{$WEB_ROOT}/cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}{else}{$product.productUrl}{/if}" class="btn btn-primary btn-block" style="margin-top: 10px;" id="{$idPrefix}-order-button"{if $product.hasRecommendations} data-has-recommendations="1"{/if}>
  115. {$LANG.ordernowbutton}
  116. </a>
  117. <p class="PriceList-toggle collapsed" data-toggle="collapse" data-target="#PlanLists1">
  118. <span>Details</span>
  119. </p>
  120. <ul class="plan-features collapse" id="PlanLists1">
  121. {foreach $product.features as $feature => $value}
  122. <li id="{$idPrefix}-feature{$value@iteration}"><b>{$value}</b> {$feature}</li>
  123. {/foreach}
  124. </ul>
  125. {if $product.freedomain neq ""}
  126. <div class="mt-1 p-2 border rounded small text-muted text-center white border-secondary">{lang key="orderfreedomainonly"}</div>
  127. {/if}
  128. {if $product.isFeatured}
  129. <!-- Popular plan sticker -->
  130. <div class="sticker-wrapper">
  131. <div class="sticker">
  132. {$LANG.featuredProduct}
  133. </div>
  134. </div>
  135. <!-- //End popular plan sticker-->
  136. {/if}
  137. </div>
  138. </div>
  139. {/foreach}
  140. </div>
  141. </div>
  142. </div>
  143. {if $productGroup.features|@count > 0}
  144. <div class="space-30"></div>
  145. <div class="block-s3 p-0">
  146. <div class="text-center">
  147. <h2 class="no-margin h3">{$LANG.orderForm.includedWithPlans}</h2>
  148. </div>
  149. </div>
  150. <hr class="separator"></hr>
  151. <div class="cart-features no-margin-top">
  152. <div class="includes-features">
  153. <ul class="list-features">
  154. {foreach $productGroup.features as $features}
  155. <li>{$features.feature}</li>
  156. {/foreach}
  157. </ul>
  158. </div>
  159. </div>
  160. {/if}
  161. </div>
  162. </div>
  163. </div>
  164. {include file="orderforms/{$carttpl}/categories-options.tpl"}
  165. {include file="orderforms/{$carttpl}/recommendations-modal.tpl"}
  166. <script>
  167. $(document).ready(function() {
  168. $(".pricing-box").owlCarousel({
  169. {if $products|@count == 1}
  170. responsive:{
  171. 0:{
  172. items:1,
  173. }
  174. }
  175. {elseif $products|@count == 2}
  176. responsive:{
  177. 0:{
  178. items:1,
  179. },
  180. 768:{
  181. items:2,
  182. }
  183. }
  184. {elseif $products|@count == 3}
  185. responsive:{
  186. 0:{
  187. items:1,
  188. },
  189. 768:{
  190. items:2,
  191. },
  192. 992:{
  193. items:3,
  194. }
  195. }
  196. {else}
  197. responsive:{
  198. 0:{
  199. items:1,
  200. },
  201. 768:{
  202. items:2,
  203. },
  204. 992:{
  205. items:3,
  206. },
  207. 1200:{
  208. items:4,
  209. }
  210. }
  211. {/if}
  212. });
  213. });
  214. jQuery('.select2-single').select2();
  215. function redirectToCartPage()
  216. {
  217. var path = jQuery('#gidForm').val();
  218. if (path) {
  219. window.location.href = path;
  220. }
  221. }
  222. </script>