PageRenderTime 54ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/tools/smarty_v2/compile/%%97^97C^97CE002B%%product.tpl.php

http://marocmall.googlecode.com/
PHP | 829 lines | 774 code | 45 blank | 10 comment | 225 complexity | 05a893e7eacae976a34b9541fc8b5628 MD5 | raw file
Possible License(s): LGPL-2.1

Large files files are truncated, but you can click here to view the full file

  1. <?php /* Smarty version 2.6.20, created on 2011-11-28 14:44:50
  2. compiled from C:%5CD%5Cprestashop/themes/prestashop/product.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 28, false),array('modifier', 'html_entity_decode', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 33, false),array('modifier', 'floatval', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 34, false),array('modifier', 'intval', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 35, false),array('modifier', 'escape', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 49, false),array('modifier', 'default', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 51, false),array('modifier', 'date_format', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 59, false),array('modifier', 'addslashes', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 111, false),array('modifier', 'htmlspecialchars', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 166, false),array('modifier', 'cat', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 217, false),array('modifier', 'convertAndFormatPrice', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 289, false),array('modifier', 'truncate', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 449, false),array('modifier', 'strip_tags', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 452, false),array('modifier', 'stripslashes', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 518, false),array('function', 'l', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 102, false),array('function', 'convertPrice', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 255, false),array('function', 'math', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 296, false),array('function', 'displayWtPrice', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 455, false),array('function', 'counter', 'C:\\D\\prestashop/themes/prestashop/product.tpl', 492, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <?php if (count($this->_tpl_vars['errors']) == 0): ?>
  11. <script type="text/javascript">
  12. // <![CDATA[
  13. // PrestaShop internal settings
  14. var currencySign = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencySign'])) ? $this->_run_mod_handler('html_entity_decode', true, $_tmp, 2, "UTF-8") : html_entity_decode($_tmp, 2, "UTF-8")); ?>
  15. ';
  16. var currencyRate = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencyRate'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)); ?>
  17. ';
  18. var currencyFormat = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencyFormat'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  19. ';
  20. var currencyBlank = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencyBlank'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  21. ';
  22. var taxRate = <?php echo ((is_array($_tmp=$this->_tpl_vars['tax_rate'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)); ?>
  23. ;
  24. var jqZoomEnabled = <?php if ($this->_tpl_vars['jqZoomEnabled']): ?>true<?php else: ?>false<?php endif; ?>;
  25. //JS Hook
  26. var oosHookJsCodeFunctions = new Array();
  27. // Parameters
  28. var id_product = '<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->id)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  29. ';
  30. var productHasAttributes = <?php if (isset ( $this->_tpl_vars['groups'] )): ?>true<?php else: ?>false<?php endif; ?>;
  31. var quantitiesDisplayAllowed = <?php if ($this->_tpl_vars['display_qties'] == 1): ?>true<?php else: ?>false<?php endif; ?>;
  32. var quantityAvailable = <?php if ($this->_tpl_vars['display_qties'] == 1 && $this->_tpl_vars['product']->quantity): ?><?php echo $this->_tpl_vars['product']->quantity; ?>
  33. <?php else: ?>0<?php endif; ?>;
  34. var allowBuyWhenOutOfStock = <?php if ($this->_tpl_vars['allow_oosp'] == 1): ?>true<?php else: ?>false<?php endif; ?>;
  35. var availableNowValue = '<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->available_now)) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes', 'UTF-8') : smarty_modifier_escape($_tmp, 'quotes', 'UTF-8')); ?>
  36. ';
  37. var availableLaterValue = '<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->available_later)) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes', 'UTF-8') : smarty_modifier_escape($_tmp, 'quotes', 'UTF-8')); ?>
  38. ';
  39. var productPriceTaxExcluded = <?php echo ((is_array($_tmp=@$this->_tpl_vars['product']->getPriceWithoutReduct(true))) ? $this->_run_mod_handler('default', true, $_tmp, 'null') : smarty_modifier_default($_tmp, 'null')); ?>
  40. - <?php echo $this->_tpl_vars['product']->ecotax; ?>
  41. ;
  42. var reduction_percent = <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction'] && $this->_tpl_vars['product']->specificPrice['reduction_type'] == 'percentage'): ?><?php echo $this->_tpl_vars['product']->specificPrice['reduction']*100; ?>
  43. <?php else: ?>0<?php endif; ?>;
  44. var reduction_price = <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction'] && $this->_tpl_vars['product']->specificPrice['reduction_type'] == 'amount'): ?><?php echo $this->_tpl_vars['product']->specificPrice['reduction']; ?>
  45. <?php else: ?>0<?php endif; ?>;
  46. var specific_price = <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['price']): ?><?php echo $this->_tpl_vars['product']->specificPrice['price']; ?>
  47. <?php else: ?>0<?php endif; ?>;
  48. var specific_currency = <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['id_currency']): ?>true<?php else: ?>false<?php endif; ?>;
  49. var group_reduction = '<?php echo $this->_tpl_vars['group_reduction']; ?>
  50. ';
  51. var default_eco_tax = <?php echo $this->_tpl_vars['product']->ecotax; ?>
  52. ;
  53. var ecotaxTax_rate = <?php echo $this->_tpl_vars['ecotaxTax_rate']; ?>
  54. ;
  55. var currentDate = '<?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %H:%M:%S') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %H:%M:%S')); ?>
  56. ';
  57. var maxQuantityToAllowDisplayOfLastQuantityMessage = <?php echo $this->_tpl_vars['last_qties']; ?>
  58. ;
  59. var noTaxForThisProduct = <?php if ($this->_tpl_vars['no_tax'] == 1): ?>true<?php else: ?>false<?php endif; ?>;
  60. var displayPrice = <?php echo $this->_tpl_vars['priceDisplay']; ?>
  61. ;
  62. var productReference = '<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->reference)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  63. ';
  64. var productAvailableForOrder = <?php if (( isset ( $this->_tpl_vars['restricted_country_mode'] ) && $this->_tpl_vars['restricted_country_mode'] ) || $this->_tpl_vars['PS_CATALOG_MODE']): ?>'0'<?php else: ?>'<?php echo $this->_tpl_vars['product']->available_for_order; ?>
  65. '<?php endif; ?>;
  66. var productShowPrice = '<?php if (! $this->_tpl_vars['PS_CATALOG_MODE']): ?><?php echo $this->_tpl_vars['product']->show_price; ?>
  67. <?php else: ?>0<?php endif; ?>';
  68. var productUnitPriceRatio = '<?php echo $this->_tpl_vars['product']->unit_price_ratio; ?>
  69. ';
  70. var idDefaultImage = <?php if (isset ( $this->_tpl_vars['cover']['id_image_only'] )): ?><?php echo $this->_tpl_vars['cover']['id_image_only']; ?>
  71. <?php else: ?>0<?php endif; ?>;
  72. // Customizable field
  73. var img_ps_dir = '<?php echo $this->_tpl_vars['img_ps_dir']; ?>
  74. ';
  75. var customizationFields = new Array();
  76. <?php $this->assign('imgIndex', 0); ?>
  77. <?php $this->assign('textFieldIndex', 0); ?>
  78. <?php $_from = $this->_tpl_vars['customizationFields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['customizationFields'] = array('total' => count($_from), 'iteration' => 0);
  79. if ($this->_foreach['customizationFields']['total'] > 0):
  80. foreach ($_from as $this->_tpl_vars['field']):
  81. $this->_foreach['customizationFields']['iteration']++;
  82. ?>
  83. <?php $this->assign('key', "pictures_".($this->_tpl_vars['product']->id)."_".($this->_tpl_vars['field']['id_customization_field'])); ?>
  84. customizationFields[<?php echo ((is_array($_tmp=($this->_foreach['customizationFields']['iteration']-1))) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  85. ] = new Array();
  86. customizationFields[<?php echo ((is_array($_tmp=($this->_foreach['customizationFields']['iteration']-1))) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  87. ][0] = '<?php if (((is_array($_tmp=$this->_tpl_vars['field']['type'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) == 0): ?>img<?php echo $this->_tpl_vars['imgIndex']++; ?>
  88. <?php else: ?>textField<?php echo $this->_tpl_vars['textFieldIndex']++; ?>
  89. <?php endif; ?>';
  90. customizationFields[<?php echo ((is_array($_tmp=($this->_foreach['customizationFields']['iteration']-1))) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  91. ][1] = <?php if (((is_array($_tmp=$this->_tpl_vars['field']['type'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) == 0 && isset ( $this->_tpl_vars['pictures'][$this->_tpl_vars['key']] ) && $this->_tpl_vars['pictures'][$this->_tpl_vars['key']]): ?>2<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['field']['required'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  92. <?php endif; ?>;
  93. <?php endforeach; endif; unset($_from); ?>
  94. // Images
  95. var img_prod_dir = '<?php echo $this->_tpl_vars['img_prod_dir']; ?>
  96. ';
  97. var combinationImages = new Array();
  98. <?php if (isset ( $this->_tpl_vars['combinationImages'] )): ?>
  99. <?php $_from = $this->_tpl_vars['combinationImages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['f_combinationImages'] = array('total' => count($_from), 'iteration' => 0);
  100. if ($this->_foreach['f_combinationImages']['total'] > 0):
  101. foreach ($_from as $this->_tpl_vars['combinationId'] => $this->_tpl_vars['combination']):
  102. $this->_foreach['f_combinationImages']['iteration']++;
  103. ?>
  104. combinationImages[<?php echo $this->_tpl_vars['combinationId']; ?>
  105. ] = new Array();
  106. <?php $_from = $this->_tpl_vars['combination']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['f_combinationImage'] = array('total' => count($_from), 'iteration' => 0);
  107. if ($this->_foreach['f_combinationImage']['total'] > 0):
  108. foreach ($_from as $this->_tpl_vars['image']):
  109. $this->_foreach['f_combinationImage']['iteration']++;
  110. ?>
  111. combinationImages[<?php echo $this->_tpl_vars['combinationId']; ?>
  112. ][<?php echo ($this->_foreach['f_combinationImage']['iteration']-1); ?>
  113. ] = <?php echo ((is_array($_tmp=$this->_tpl_vars['image']['id_image'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  114. ;
  115. <?php endforeach; endif; unset($_from); ?>
  116. <?php endforeach; endif; unset($_from); ?>
  117. <?php endif; ?>
  118. combinationImages[0] = new Array();
  119. <?php if (isset ( $this->_tpl_vars['images'] )): ?>
  120. <?php $_from = $this->_tpl_vars['images']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['f_defaultImages'] = array('total' => count($_from), 'iteration' => 0);
  121. if ($this->_foreach['f_defaultImages']['total'] > 0):
  122. foreach ($_from as $this->_tpl_vars['image']):
  123. $this->_foreach['f_defaultImages']['iteration']++;
  124. ?>
  125. combinationImages[0][<?php echo ($this->_foreach['f_defaultImages']['iteration']-1); ?>
  126. ] = <?php echo $this->_tpl_vars['image']['id_image']; ?>
  127. ;
  128. <?php endforeach; endif; unset($_from); ?>
  129. <?php endif; ?>
  130. // Translations
  131. var doesntExist = '<?php echo smartyTranslate(array('s' => 'The product does not exist in this model. Please choose another.','js' => 1), $this);?>
  132. ';
  133. var doesntExistNoMore = '<?php echo smartyTranslate(array('s' => 'This product is no longer in stock','js' => 1), $this);?>
  134. ';
  135. var doesntExistNoMoreBut = '<?php echo smartyTranslate(array('s' => 'with those attributes but is available with others','js' => 1), $this);?>
  136. ';
  137. var uploading_in_progress = '<?php echo smartyTranslate(array('s' => 'Uploading in progress, please wait...','js' => 1), $this);?>
  138. ';
  139. var fieldRequired = '<?php echo smartyTranslate(array('s' => 'Please fill in all required fields, then save the customization.','js' => 1), $this);?>
  140. ';
  141. <?php if (isset ( $this->_tpl_vars['groups'] )): ?>
  142. // Combinations
  143. <?php $_from = $this->_tpl_vars['combinations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  144. foreach ($_from as $this->_tpl_vars['idCombination'] => $this->_tpl_vars['combination']):
  145. ?>
  146. addCombination(<?php echo ((is_array($_tmp=$this->_tpl_vars['idCombination'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  147. , new Array(<?php echo $this->_tpl_vars['combination']['list']; ?>
  148. ), <?php echo $this->_tpl_vars['combination']['quantity']; ?>
  149. , <?php echo $this->_tpl_vars['combination']['price']; ?>
  150. , <?php echo $this->_tpl_vars['combination']['ecotax']; ?>
  151. , <?php echo $this->_tpl_vars['combination']['id_image']; ?>
  152. , '<?php echo ((is_array($_tmp=$this->_tpl_vars['combination']['reference'])) ? $this->_run_mod_handler('addslashes', true, $_tmp) : addslashes($_tmp)); ?>
  153. ', <?php echo $this->_tpl_vars['combination']['unit_impact']; ?>
  154. , <?php echo $this->_tpl_vars['combination']['minimal_quantity']; ?>
  155. );
  156. <?php endforeach; endif; unset($_from); ?>
  157. // Colors
  158. <?php if (count($this->_tpl_vars['colors']) > 0): ?>
  159. <?php if ($this->_tpl_vars['product']->id_color_default): ?>var id_color_default = <?php echo ((is_array($_tmp=$this->_tpl_vars['product']->id_color_default)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  160. ;<?php endif; ?>
  161. <?php endif; ?>
  162. <?php endif; ?>
  163. //]]>
  164. </script>
  165. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  166. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
  167. $this->_tpl_vars = $_smarty_tpl_vars;
  168. unset($_smarty_tpl_vars);
  169. ?>
  170. <div id="primary_block" class="clearfix">
  171. <h1><?php echo ((is_array($_tmp=$this->_tpl_vars['product']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  172. </h1>
  173. <?php if (isset ( $this->_tpl_vars['adminActionDisplay'] ) && $this->_tpl_vars['adminActionDisplay']): ?>
  174. <div id="admin-action">
  175. <p><?php echo smartyTranslate(array('s' => 'This product is not visible to your customers.'), $this);?>
  176. <input type="hidden" id="admin-action-product-id" value="<?php echo $this->_tpl_vars['product']->id; ?>
  177. " />
  178. <input type="submit" value="<?php echo smartyTranslate(array('s' => 'Publish'), $this);?>
  179. " class="exclusive" onclick="submitPublishProduct('<?php echo $this->_tpl_vars['base_dir']; ?>
  180. <?php echo $_GET['ad']; ?>
  181. ', 0)"/>
  182. <input type="submit" value="<?php echo smartyTranslate(array('s' => 'Back'), $this);?>
  183. " class="exclusive" onclick="submitPublishProduct('<?php echo $this->_tpl_vars['base_dir']; ?>
  184. <?php echo $_GET['ad']; ?>
  185. ', 1)"/>
  186. </p>
  187. <div class="clear" ></div>
  188. <p id="admin-action-result"></p>
  189. </p>
  190. </div>
  191. <?php endif; ?>
  192. <?php if (isset ( $this->_tpl_vars['confirmation'] ) && $this->_tpl_vars['confirmation']): ?>
  193. <p class="confirmation">
  194. <?php echo $this->_tpl_vars['confirmation']; ?>
  195. </p>
  196. <?php endif; ?>
  197. <!-- right infos-->
  198. <div id="pb-right-column">
  199. <!-- product img-->
  200. <div id="image-block">
  201. <?php if ($this->_tpl_vars['have_image']): ?>
  202. <img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['cover']['id_image'],'large'); ?>
  203. "
  204. <?php if ($this->_tpl_vars['jqZoomEnabled']): ?>class="jqzoom" alt="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['cover']['id_image'],'thickbox'); ?>
  205. "<?php else: ?> title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  206. " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  207. " <?php endif; ?> id="bigpic" width="<?php echo $this->_tpl_vars['largeSize']['width']; ?>
  208. " height="<?php echo $this->_tpl_vars['largeSize']['height']; ?>
  209. " />
  210. <?php else: ?>
  211. <img src="<?php echo $this->_tpl_vars['img_prod_dir']; ?>
  212. <?php echo $this->_tpl_vars['lang_iso']; ?>
  213. -default-large.jpg" id="bigpic" alt="" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['cover']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  214. " width="<?php echo $this->_tpl_vars['largeSize']['width']; ?>
  215. " height="<?php echo $this->_tpl_vars['largeSize']['height']; ?>
  216. " />
  217. <?php endif; ?>
  218. </div>
  219. <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) > 0): ?>
  220. <!-- thumbnails -->
  221. <div id="views_block" <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) < 2): ?>class="hidden"<?php endif; ?>>
  222. <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) > 3): ?><span class="view_scroll_spacer"><a id="view_scroll_left" class="hidden" title="<?php echo smartyTranslate(array('s' => 'Other views'), $this);?>
  223. " href="javascript:{}"><?php echo smartyTranslate(array('s' => 'Previous'), $this);?>
  224. </a></span><?php endif; ?>
  225. <div id="thumbs_list">
  226. <ul id="thumbs_list_frame">
  227. <?php if (isset ( $this->_tpl_vars['images'] )): ?>
  228. <?php $_from = $this->_tpl_vars['images']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['thumbnails'] = array('total' => count($_from), 'iteration' => 0);
  229. if ($this->_foreach['thumbnails']['total'] > 0):
  230. foreach ($_from as $this->_tpl_vars['image']):
  231. $this->_foreach['thumbnails']['iteration']++;
  232. ?>
  233. <?php $this->assign('imageIds', ($this->_tpl_vars['product']->id)."-".($this->_tpl_vars['image']['id_image'])); ?>
  234. <li id="thumbnail_<?php echo $this->_tpl_vars['image']['id_image']; ?>
  235. ">
  236. <a href="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['imageIds'],'thickbox'); ?>
  237. " rel="other-views" class="thickbox <?php if (($this->_foreach['thumbnails']['iteration'] <= 1)): ?>shown<?php endif; ?>" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['image']['legend'])) ? $this->_run_mod_handler('htmlspecialchars', true, $_tmp) : htmlspecialchars($_tmp)); ?>
  238. ">
  239. <img id="thumb_<?php echo $this->_tpl_vars['image']['id_image']; ?>
  240. " src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['imageIds'],'medium'); ?>
  241. " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['image']['legend'])) ? $this->_run_mod_handler('htmlspecialchars', true, $_tmp) : htmlspecialchars($_tmp)); ?>
  242. " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
  243. " width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
  244. " />
  245. </a>
  246. </li>
  247. <?php endforeach; endif; unset($_from); ?>
  248. <?php endif; ?>
  249. </ul>
  250. </div>
  251. <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) > 3): ?><a id="view_scroll_right" title="<?php echo smartyTranslate(array('s' => 'Other views'), $this);?>
  252. " href="javascript:{}"><?php echo smartyTranslate(array('s' => 'Next'), $this);?>
  253. </a><?php endif; ?>
  254. </div>
  255. <?php endif; ?>
  256. <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) > 1): ?><p class="align_center clear"><span id="wrapResetImages" style="display: none;"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  257. icon/cancel_16x18.gif" alt="<?php echo smartyTranslate(array('s' => 'Cancel'), $this);?>
  258. " width="16" height="18"/> <a id="resetImages" href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['product']); ?>
  259. " onclick="$('span#wrapResetImages').hide('slow');return (false);"><?php echo smartyTranslate(array('s' => 'Display all pictures'), $this);?>
  260. </a></span></p><?php endif; ?>
  261. <!-- usefull links-->
  262. <ul id="usefull_link_block">
  263. <?php if ($this->_tpl_vars['HOOK_EXTRA_LEFT']): ?><?php echo $this->_tpl_vars['HOOK_EXTRA_LEFT']; ?>
  264. <?php endif; ?>
  265. <li><a href="javascript:print();"><?php echo smartyTranslate(array('s' => 'Print'), $this);?>
  266. </a><br class="clear" /></li>
  267. <?php if ($this->_tpl_vars['have_image'] && ! $this->_tpl_vars['jqZoomEnabled']): ?>
  268. <li><span id="view_full_size" class="span_link"><?php echo smartyTranslate(array('s' => 'View full size'), $this);?>
  269. </span></li>
  270. <?php endif; ?>
  271. </ul>
  272. </div>
  273. <!-- left infos-->
  274. <div id="pb-left-column">
  275. <?php if ($this->_tpl_vars['product']->description_short || count($this->_tpl_vars['packItems']) > 0): ?>
  276. <div id="short_description_block">
  277. <?php if ($this->_tpl_vars['product']->description_short): ?>
  278. <div id="short_description_content" class="rte align_justify"><?php echo $this->_tpl_vars['product']->description_short; ?>
  279. </div>
  280. <?php endif; ?>
  281. <?php if ($this->_tpl_vars['product']->description): ?>
  282. <p class="buttons_bottom_block"><a href="javascript:{}" class="button"><?php echo smartyTranslate(array('s' => 'More details'), $this);?>
  283. </a></p>
  284. <?php endif; ?>
  285. <?php if (count($this->_tpl_vars['packItems']) > 0): ?>
  286. <h3><?php echo smartyTranslate(array('s' => 'Pack content'), $this);?>
  287. </h3>
  288. <?php $_from = $this->_tpl_vars['packItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  289. foreach ($_from as $this->_tpl_vars['packItem']):
  290. ?>
  291. <div class="pack_content">
  292. <?php echo $this->_tpl_vars['packItem']['pack_quantity']; ?>
  293. x <a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['packItem']['id_product'],$this->_tpl_vars['packItem']['link_rewrite'],$this->_tpl_vars['packItem']['category']); ?>
  294. "><?php echo ((is_array($_tmp=$this->_tpl_vars['packItem']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  295. </a>
  296. <p><?php echo $this->_tpl_vars['packItem']['description_short']; ?>
  297. </p>
  298. </div>
  299. <?php endforeach; endif; unset($_from); ?>
  300. <?php endif; ?>
  301. </div>
  302. <?php endif; ?>
  303. <?php if (isset ( $this->_tpl_vars['colors'] ) && $this->_tpl_vars['colors']): ?>
  304. <!-- colors -->
  305. <div id="color_picker">
  306. <p><?php echo smartyTranslate(array('s' => 'Pick a color:','js' => 1), $this);?>
  307. </p>
  308. <div class="clear"></div>
  309. <ul id="color_to_pick_list">
  310. <?php $_from = $this->_tpl_vars['colors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  311. foreach ($_from as $this->_tpl_vars['id_attribute'] => $this->_tpl_vars['color']):
  312. ?>
  313. <li><a id="color_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  314. " class="color_pick" style="background: <?php echo $this->_tpl_vars['color']['value']; ?>
  315. ;" onclick="updateColorSelect(<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  316. );$('#wrapResetImages').show('slow');" title="<?php echo $this->_tpl_vars['color']['name']; ?>
  317. "><?php if (file_exists ( ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['col_img_dir'])) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['id_attribute']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['id_attribute'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '.jpg') : smarty_modifier_cat($_tmp, '.jpg')) )): ?><img src="<?php echo $this->_tpl_vars['img_col_dir']; ?>
  318. <?php echo $this->_tpl_vars['id_attribute']; ?>
  319. .jpg" alt="<?php echo $this->_tpl_vars['color']['name']; ?>
  320. " width="20" height="20" /><?php endif; ?></a></li>
  321. <?php endforeach; endif; unset($_from); ?>
  322. </ul>
  323. <div class="clear"></div>
  324. </div>
  325. <?php endif; ?>
  326. <?php if (( $this->_tpl_vars['product']->show_price && ! isset ( $this->_tpl_vars['restricted_country_mode'] ) ) || isset ( $this->_tpl_vars['groups'] ) || $this->_tpl_vars['product']->reference || ( isset ( $this->_tpl_vars['HOOK_PRODUCT_ACTIONS'] ) && $this->_tpl_vars['HOOK_PRODUCT_ACTIONS'] )): ?>
  327. <!-- add to cart form-->
  328. <form id="buy_block" <?php if ($this->_tpl_vars['PS_CATALOG_MODE'] && ! isset ( $this->_tpl_vars['groups'] ) && $this->_tpl_vars['product']->quantity > 0): ?>class="hidden"<?php endif; ?> action="<?php echo $this->_tpl_vars['link']->getPageLink('cart.php'); ?>
  329. " method="post">
  330. <!-- hidden datas -->
  331. <p class="hidden">
  332. <input type="hidden" name="token" value="<?php echo $this->_tpl_vars['static_token']; ?>
  333. " />
  334. <input type="hidden" name="id_product" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->id)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  335. " id="product_page_product_id" />
  336. <input type="hidden" name="add" value="1" />
  337. <input type="hidden" name="id_product_attribute" id="idCombination" value="" />
  338. </p>
  339. <!-- prices -->
  340. <?php if ($this->_tpl_vars['product']->show_price && ! isset ( $this->_tpl_vars['restricted_country_mode'] ) && ! $this->_tpl_vars['PS_CATALOG_MODE']): ?>
  341. <p class="price">
  342. <?php if (! $this->_tpl_vars['priceDisplay'] || $this->_tpl_vars['priceDisplay'] == 2): ?>
  343. <?php $this->assign('productPrice', $this->_tpl_vars['product']->getPrice(true,@NULL,2)); ?>
  344. <?php $this->assign('productPriceWithoutRedution', $this->_tpl_vars['product']->getPriceWithoutReduct(false,@NULL)); ?>
  345. <?php elseif ($this->_tpl_vars['priceDisplay'] == 1): ?>
  346. <?php $this->assign('productPrice', $this->_tpl_vars['product']->getPrice(false,@NULL,2)); ?>
  347. <?php $this->assign('productPriceWithoutRedution', $this->_tpl_vars['product']->getPriceWithoutReduct(true,@NULL)); ?>
  348. <?php endif; ?>
  349. <?php if ($this->_tpl_vars['product']->on_sale): ?>
  350. <img src="<?php echo $this->_tpl_vars['img_dir']; ?>
  351. onsale_<?php echo $this->_tpl_vars['lang_iso']; ?>
  352. .gif" alt="<?php echo smartyTranslate(array('s' => 'On sale'), $this);?>
  353. " class="on_sale_img"/>
  354. <span class="on_sale"><?php echo smartyTranslate(array('s' => 'On sale!'), $this);?>
  355. </span>
  356. <?php elseif ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction'] && $this->_tpl_vars['productPriceWithoutRedution'] > $this->_tpl_vars['productPrice']): ?>
  357. <span class="discount"><?php echo smartyTranslate(array('s' => 'Reduced price!'), $this);?>
  358. </span>
  359. <?php endif; ?>
  360. <br />
  361. <span class="our_price_display">
  362. <?php if ($this->_tpl_vars['priceDisplay'] >= 0 && $this->_tpl_vars['priceDisplay'] <= 2): ?>
  363. <span id="our_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['productPrice']), $this);?>
  364. </span>
  365. <?php if ($this->_tpl_vars['tax_enabled'] && ( ( isset ( $this->_tpl_vars['display_tax_label'] ) && $this->_tpl_vars['display_tax_label'] == 1 ) || ! isset ( $this->_tpl_vars['display_tax_label'] ) )): ?>
  366. <?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo smartyTranslate(array('s' => 'tax excl.'), $this);?>
  367. <?php else: ?><?php echo smartyTranslate(array('s' => 'tax incl.'), $this);?>
  368. <?php endif; ?>
  369. <?php endif; ?>
  370. <?php endif; ?>
  371. </span>
  372. <?php if ($this->_tpl_vars['priceDisplay'] == 2): ?>
  373. <br />
  374. <span id="pretaxe_price"><span id="pretaxe_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']->getPrice(false,@NULL,2)), $this);?>
  375. </span>&nbsp;<?php echo smartyTranslate(array('s' => 'tax excl.'), $this);?>
  376. </span>
  377. <?php endif; ?>
  378. <br />
  379. </p>
  380. <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction']): ?>
  381. <p id="old_price"><span class="bold">
  382. <?php if ($this->_tpl_vars['priceDisplay'] >= 0 && $this->_tpl_vars['priceDisplay'] <= 2): ?>
  383. <?php if ($this->_tpl_vars['productPriceWithoutRedution'] > $this->_tpl_vars['productPrice']): ?>
  384. <span id="old_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['productPriceWithoutRedution']), $this);?>
  385. </span>
  386. <?php if ($this->_tpl_vars['tax_enabled'] && $this->_tpl_vars['display_tax_label'] == 1): ?>
  387. <?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo smartyTranslate(array('s' => 'tax excl.'), $this);?>
  388. <?php else: ?><?php echo smartyTranslate(array('s' => 'tax incl.'), $this);?>
  389. <?php endif; ?>
  390. <?php endif; ?>
  391. <?php endif; ?>
  392. <?php endif; ?>
  393. </span>
  394. </p>
  395. <?php endif; ?>
  396. <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction_type'] == 'percentage'): ?>
  397. <p id="reduction_percent"><?php echo smartyTranslate(array('s' => '(price reduced by'), $this);?>
  398. <span id="reduction_percent_display"><?php echo $this->_tpl_vars['product']->specificPrice['reduction']*100; ?>
  399. </span> %<?php echo smartyTranslate(array('s' => ')'), $this);?>
  400. </p>
  401. <?php endif; ?>
  402. <?php if (count($this->_tpl_vars['packItems'])): ?>
  403. <p class="pack_price"><?php echo smartyTranslate(array('s' => 'instead of'), $this);?>
  404. <span style="text-decoration: line-through;"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']->getNoPackPrice()), $this);?>
  405. </span></p>
  406. <br class="clear" />
  407. <?php endif; ?>
  408. <?php if ($this->_tpl_vars['product']->ecotax != 0): ?>
  409. <p class="price-ecotax"><?php echo smartyTranslate(array('s' => 'include'), $this);?>
  410. <span id="ecotax_price_display"><?php if ($this->_tpl_vars['priceDisplay'] == 2): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ecotax_tax_exc'])) ? $this->_run_mod_handler('convertAndFormatPrice', true, $_tmp) : Product::convertAndFormatPrice($_tmp)); ?>
  411. <?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ecotax_tax_inc'])) ? $this->_run_mod_handler('convertAndFormatPrice', true, $_tmp) : Product::convertAndFormatPrice($_tmp)); ?>
  412. <?php endif; ?></span> <?php echo smartyTranslate(array('s' => 'for green tax'), $this);?>
  413. <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction']): ?>
  414. <br /><?php echo smartyTranslate(array('s' => '(not impacted by the discount)'), $this);?>
  415. <?php endif; ?>
  416. </p>
  417. <?php endif; ?>
  418. <?php if (! empty ( $this->_tpl_vars['product']->unity ) && $this->_tpl_vars['product']->unit_price_ratio > 0.000000): ?>
  419. <?php echo smarty_function_math(array('equation' => "pprice / punit_price",'pprice' => $this->_tpl_vars['productPrice'],'punit_price' => $this->_tpl_vars['product']->unit_price_ratio,'assign' => 'unit_price'), $this);?>
  420. <p class="unit-price"><span id="unit_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['unit_price']), $this);?>
  421. </span> <?php echo smartyTranslate(array('s' => 'per'), $this);?>
  422. <?php echo ((is_array($_tmp=$this->_tpl_vars['product']->unity)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  423. </p>
  424. <?php endif; ?>
  425. <?php endif; ?>
  426. <?php if (isset ( $this->_tpl_vars['groups'] )): ?>
  427. <!-- attributes -->
  428. <div id="attributes">
  429. <?php $_from = $this->_tpl_vars['groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  430. foreach ($_from as $this->_tpl_vars['id_attribute_group'] => $this->_tpl_vars['group']):
  431. ?>
  432. <?php if (count($this->_tpl_vars['group']['attributes'])): ?>
  433. <p>
  434. <label for="group_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute_group'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  435. "><?php echo ((is_array($_tmp=$this->_tpl_vars['group']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  436. :</label>
  437. <?php $this->assign('groupName', "group_".($this->_tpl_vars['id_attribute_group'])); ?>
  438. <select name="<?php echo $this->_tpl_vars['groupName']; ?>
  439. " id="group_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute_group'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  440. " onchange="javascript:findCombination();<?php if (count($this->_tpl_vars['colors']) > 0): ?>$('#wrapResetImages').show('slow');<?php endif; ?>;">
  441. <?php $_from = $this->_tpl_vars['group']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  442. foreach ($_from as $this->_tpl_vars['id_attribute'] => $this->_tpl_vars['group_attribute']):
  443. ?>
  444. <option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  445. "<?php if (( isset ( $_GET[$this->_tpl_vars['groupName']] ) && ((is_array($_tmp=$_GET[$this->_tpl_vars['groupName']])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) == $this->_tpl_vars['id_attribute'] ) || $this->_tpl_vars['group']['default'] == $this->_tpl_vars['id_attribute']): ?> selected="selected"<?php endif; ?> title="<?php echo ((is_array($_tmp=$this->_tpl_vars['group_attribute'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  446. "><?php echo ((is_array($_tmp=$this->_tpl_vars['group_attribute'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  447. </option>
  448. <?php endforeach; endif; unset($_from); ?>
  449. </select>
  450. </p>
  451. <?php endif; ?>
  452. <?php endforeach; endif; unset($_from); ?>
  453. </div>
  454. <?php endif; ?>
  455. <p id="product_reference" <?php if (isset ( $this->_tpl_vars['groups'] ) || ! $this->_tpl_vars['product']->reference): ?>style="display: none;"<?php endif; ?>><label for="product_reference"><?php echo smartyTranslate(array('s' => 'Reference :'), $this);?>
  456. </label><span class="editable"><?php echo ((is_array($_tmp=$this->_tpl_vars['product']->reference)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  457. </span></p>
  458. <!-- quantity wanted -->
  459. <p id="quantity_wanted_p"<?php if (( ! $this->_tpl_vars['allow_oosp'] && $this->_tpl_vars['product']->quantity <= 0 ) || $this->_tpl_vars['virtual'] || ! $this->_tpl_vars['product']->available_for_order || $this->_tpl_vars['PS_CATALOG_MODE']): ?> style="display: none;"<?php endif; ?>>
  460. <label><?php echo smartyTranslate(array('s' => 'Quantity :'), $this);?>
  461. </label>
  462. <input type="text" name="qty" id="quantity_wanted" class="text" value="<?php if (isset ( $this->_tpl_vars['quantityBackup'] )): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['quantityBackup'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  463. <?php else: ?><?php if ($this->_tpl_vars['product']->minimal_quantity > 1): ?><?php echo $this->_tpl_vars['product']->minimal_quantity; ?>
  464. <?php else: ?>1<?php endif; ?><?php endif; ?>" size="2" maxlength="3" <?php if ($this->_tpl_vars['product']->minimal_quantity > 1): ?>onkeyup="checkMinimalQuantity(<?php echo $this->_tpl_vars['product']->minimal_quantity; ?>
  465. );"<?php endif; ?> />
  466. </p>
  467. <!-- minimal quantity wanted -->
  468. <p id="minimal_quantity_wanted_p"<?php if ($this->_tpl_vars['product']->minimal_quantity <= 1 || ! $this->_tpl_vars['product']->available_for_order || $this->_tpl_vars['PS_CATALOG_MODE']): ?> style="display: none;"<?php endif; ?>><?php echo smartyTranslate(array('s' => 'You must add '), $this);?>
  469. <b id="minimal_quantity_label"><?php echo $this->_tpl_vars['product']->minimal_quantity; ?>
  470. </b> <?php echo smartyTranslate(array('s' => ' as a minimum quantity to buy this product.'), $this);?>
  471. </p>
  472. <?php if ($this->_tpl_vars['product']->minimal_quantity > 1): ?>
  473. <script type="text/javascript">
  474. checkMinimalQuantity();
  475. </script>
  476. <?php endif; ?>
  477. <!-- availability -->
  478. <p id="availability_statut"<?php if (( $this->_tpl_vars['product']->quantity <= 0 && ! $this->_tpl_vars['product']->available_later && $this->_tpl_vars['allow_oosp'] ) || ( $this->_tpl_vars['product']->quantity > 0 && ! $this->_tpl_vars['product']->available_now ) || ! $this->_tpl_vars['product']->available_for_order || $this->_tpl_vars['PS_CATALOG_MODE']): ?> style="display: none;"<?php endif; ?>>
  479. <span id="availability_label"><?php echo smartyTranslate(array('s' => 'Availability:'), $this);?>
  480. </span>
  481. <span id="availability_value"<?php if ($this->_tpl_vars['product']->quantity <= 0): ?> class="warning_inline"<?php endif; ?>>
  482. <?php if ($this->_tpl_vars['product']->quantity <= 0): ?><?php if ($this->_tpl_vars['allow_oosp']): ?><?php echo $this->_tpl_vars['product']->available_later; ?>
  483. <?php else: ?><?php echo smartyTranslate(array('s' => 'This product is no longer in stock'), $this);?>
  484. <?php endif; ?><?php else: ?><?php echo $this->_tpl_vars['product']->available_now; ?>
  485. <?php endif; ?>
  486. </span>
  487. </p>
  488. <!-- number of item in stock -->
  489. <?php if (( $this->_tpl_vars['display_qties'] == 1 && ! $this->_tpl_vars['PS_CATALOG_MODE'] && $this->_tpl_vars['product']->available_for_order )): ?>
  490. <p id="pQuantityAvailable"<?php if ($this->_tpl_vars['product']->quantity <= 0): ?> style="display: none;"<?php endif; ?>>
  491. <span id="quantityAvailable"><?php echo ((is_array($_tmp=$this->_tpl_vars['product']->quantity)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  492. </span>
  493. <span <?php if ($this->_tpl_vars['product']->quantity > 1): ?> style="display: none;"<?php endif; ?> id="quantityAvailableTxt"><?php echo smartyTranslate(array('s' => 'item in stock'), $this);?>
  494. </span>
  495. <span <?php if ($this->_tpl_vars['product']->quantity == 1): ?> style="display: none;"<?php endif; ?> id="quantityAvailableTxtMultiple"><?php echo smartyTranslate(array('s' => 'items in stock'), $this);?>
  496. </span>
  497. </p>
  498. <?php endif; ?>
  499. <!-- Out of stock hook -->
  500. <?php if (! $this->_tpl_vars['allow_oosp']): ?>
  501. <p id="oosHook"<?php if ($this->_tpl_vars['product']->quantity > 0): ?> style="display: none;"<?php endif; ?>>
  502. <?php echo $this->_tpl_vars['HOOK_PRODUCT_OOS']; ?>
  503. </p>
  504. <?php endif; ?>
  505. <p class="warning_inline" id="last_quantities"<?php if (( $this->_tpl_vars['product']->quantity > $this->_tpl_vars['last_qties'] || $this->_tpl_vars['product']->quantity <= 0 ) || $this->_tpl_vars['allow_oosp'] || ! $this->_tpl_vars['product']->available_for_order || $this->_tpl_vars['PS_CATALOG_MODE']): ?> style="display: none;"<?php endif; ?> ><?php echo smartyTranslate(array('s' => 'Warning: Last items in stock!'), $this);?>
  506. </p>
  507. <?php if ($this->_tpl_vars['product']->online_only): ?>
  508. <p><?php echo smartyTranslate(array('s' => 'Online only'), $this);?>
  509. </p>
  510. <?php endif; ?>
  511. <p<?php if (( ! $this->_tpl_vars['allow_oosp'] && $this->_tpl_vars['product']->quantity <= 0 ) || ! $this->_tpl_vars['product']->available_for_order || ( isset ( $this->_tpl_vars['restricted_country_mode'] ) && $this->_tpl_vars['restricted_country_mode'] ) || $this->_tpl_vars['PS_CATALOG_MODE']): ?> style="display: none;"<?php endif; ?> id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="<?php echo smartyTranslate(array('s' => 'Add to cart'), $this);?>
  512. " class="exclusive" /></p>
  513. <?php if (isset ( $this->_tpl_vars['HOOK_PRODUCT_ACTIONS'] ) && $this->_tpl_vars['HOOK_PRODUCT_ACTIONS']): ?><?php echo $this->_tpl_vars['HOOK_PRODUCT_ACTIONS']; ?>
  514. <?php endif; ?>
  515. <div class="clear"></div>
  516. </form>
  517. <?php endif; ?>
  518. <?php if ($this->_tpl_vars['HOOK_EXTRA_RIGHT']): ?><?php echo $this->_tpl_vars['HOOK_EXTRA_RIGHT']; ?>
  519. <?php endif; ?>
  520. </div>
  521. </div>
  522. <?php if ($this->_tpl_vars['quantity_discounts']): ?>
  523. <!-- quantity discount -->
  524. <ul class="idTabs">
  525. <li><a style="cursor: pointer" class="selected"><?php echo smartyTranslate(array('s' => 'Quantity discount'), $this);?>
  526. </a></li>
  527. </ul>
  528. <div id="quantityDiscount">
  529. <table class="std">
  530. <tr>
  531. <?php $_from = $this->_tpl_vars['quantity_discounts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['quantity_discounts'] = array('total' => count($_from), 'iteration' => 0);
  532. if ($this->_foreach['quantity_discounts']['total'] > 0):
  533. foreach ($_from as $this->_tpl_vars['quantity_discount']):
  534. $this->_foreach['quantity_discounts']['iteration']++;
  535. ?>
  536. <th><?php echo ((is_array($_tmp=$this->_tpl_vars['quantity_discount']['quantity'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  537. <?php if (((is_array($_tmp=$this->_tpl_vars['quantity_discount']['quantity'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) > 1): ?>
  538. <?php echo smartyTranslate(array('s' => 'quantities'), $this);?>
  539. <?php else: ?>
  540. <?php echo smartyTranslate(array('s' => 'quantity'), $this);?>
  541. <?php endif; ?>
  542. </th>
  543. <?php endforeach; endif; unset($_from); ?>
  544. </tr>
  545. <tr>
  546. <?php $_from = $this->_tpl_vars['quantity_discounts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['quantity_discounts'] = array('total' => count($_from), 'iteration' => 0);
  547. if ($this->_foreach['quantity_discounts']['total'] > 0):
  548. foreach ($_from as $this->_tpl_vars['quantity_discount']):
  549. $this->_foreach['quantity_discounts']['iteration']++;
  550. ?>
  551. <td>
  552. <?php if ($this->_tpl_vars['quantity_discount']['price'] != 0 || $this->_tpl_vars['quantity_discount']['reduction_type'] == 'amount'): ?>
  553. -<?php echo Product::convertPrice(array('price' => ((is_array($_tmp=$this->_tpl_vars['quantity_discount']['real_value'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp))), $this);?>
  554. <?php else: ?>
  555. -<?php echo ((is_array($_tmp=$this->_tpl_vars['quantity_discount']['real_value'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)); ?>
  556. %
  557. <?php endif; ?>
  558. </td>
  559. <?php endforeach; endif; unset($_from); ?>
  560. </tr>
  561. </table>
  562. </div>
  563. <?php endif; ?>
  564. <?php echo $this->_tpl_vars['HOOK_PRODUCT_FOOTER']; ?>
  565. <!-- description and features -->
  566. <?php if ($this->_tpl_vars['product']->description || $this->_tpl_vars['features'] || $this->_tpl_vars['accessories'] || $this->_tpl_vars['HOOK_PRODUCT_TAB'] || $this->_tpl_vars['attachments']): ?>
  567. <div id="more_info_block" class="clear">
  568. <ul id="more_info_tabs" class="idTabs idTabsShort">
  569. <?php if ($this->_tpl_vars['product']->description): ?><li><a id="more_info_tab_more_info" href="#idTab1"><?php echo smartyTranslate(array('s' => 'More info'), $this);?>
  570. </a></li><?php endif; ?>
  571. <?php if ($this->_tpl_vars['features']): ?><li><a id="more_info_tab_data_sheet" href="#idTab2"><?php echo smartyTranslate(array('s' => 'Data sheet'), $this);?>
  572. </a></li><?php endif; ?>
  573. <?php if ($this->_tpl_vars['attachments']): ?><li><a id="more_info_tab_attachments" href="#idTab9"><?php echo smartyTranslate(array('s' => 'Download'), $this);?>
  574. </a></li><?php endif; ?>
  575. <?php if (isset ( $this->_tpl_vars['accessories'] ) && $this->_tpl_vars['accessories']): ?><li><a href="#idTab4"><?php echo smartyTranslate(array('s' => 'Accessories'), $this);?>
  576. </a></li><?php endif; ?>
  577. <?php echo $this->_tpl_vars['HOOK_PRODUCT_TAB']; ?>
  578. </ul>
  579. <div id="more_info_sheets" class="sheets align_justify">
  580. <?php if ($this->_tpl_vars['product']->description): ?>
  581. <!-- full description -->
  582. <div id="idTab1" class="rte"><?php echo $this->_tpl_vars['product']->description; ?>
  583. </div>
  584. <?php endif; ?>
  585. <?php if ($this->_tpl_vars['features']): ?>
  586. <!-- product's features -->
  587. <ul id="idTab2" class="bullet">
  588. <?php $_from = $this->_tpl_vars['features']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  589. foreach ($_from as $this->_tpl_vars['feature']):
  590. ?>
  591. <li><span><?php echo ((is_array($_tmp=$this->_tpl_vars['feature']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  592. </span> <?php echo ((is_array($_tmp=$this->_tpl_vars['feature']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  593. </li>
  594. <?php endforeach; endif; unset($_from); ?>
  595. </ul>
  596. <?php endif; ?>
  597. <?php if ($this->_tpl_vars['attachments']): ?>
  598. <ul id="idTab9" class="bullet">
  599. <?php $_from = $this->_tpl_vars['attachments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  600. foreach ($_from as $this->_tpl_vars['attachment']):
  601. ?>
  602. <li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('attachment.php',true); ?>
  603. ?id_attachment=<?php echo $this->_tpl_vars['attachment']['id_attachment']; ?>
  604. "><?php echo ((is_array($_tmp=$this->_tpl_vars['attachment']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  605. </a><br /><?php echo ((is_array($_tmp=$this->_tpl_vars['attachment']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  606. </li>
  607. <?php endforeach; endif; unset($_from); ?>
  608. </ul>
  609. <?php endif; ?>
  610. <?php if (isset ( $this->_tpl_vars['accessories'] ) && $this->_tpl_vars['accessories']): ?>
  611. <!-- accessories -->
  612. <ul id="idTab4" class="bullet">
  613. <div class="block products_block accessories_block clearfix">
  614. <div class="block_content">
  615. <ul>
  616. <?php $_from = $this->_tpl_vars['accessories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['accessories_list'] = array('total' => count($_from), 'iteration' => 0);
  617. if ($this->_foreach['accessories_list']['total'] > 0):
  618. foreach ($_from as $this->_tpl_vars['accessory']):
  619. $this->_foreach['accessories_list']['iteration']++;
  620. ?>
  621. <?php $this->assign('accessoryLink', $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['accessory']['id_product'],$this->_tpl_vars['accessory']['link_rewrite'],$this->_tpl_vars['accessory']['category'])); ?>
  622. <li class="ajax_block_product <?php if (($this->_foreach['accessories_list']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['accessories_list']['iteration'] == $this->_foreach['accessories_list']['total'])): ?>last_item<?php else: ?>item<?php endif; ?> product_accessories_description">
  623. <h5><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessoryLink'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  624. "><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['accessory']['name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 22, '...', true) : smarty_modifier_truncate($_tmp, 22, '...', true)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  625. </a></h5>
  626. <div class="product_desc">
  627. <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessoryLink'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  628. " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessory']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  629. " class="product_image"><img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['accessory']['link_rewrite'],$this->_tpl_vars['accessory']['id_image'],'medium'); ?>
  630. " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessory']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  631. " width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
  632. " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
  633. " /></a>
  634. <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessoryLink'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  635. " title="<?php echo smartyTranslate(array('s' => 'More'), $this);?>
  636. " class="product_description"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['accessory']['description_short'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 70, '...') : smarty_modifier_truncate($_tmp, 70, '...')); ?>
  637. </a>
  638. </div>
  639. <p class="product_accessories_price">
  640. <?php if ($this->_tpl_vars['accessory']['show_price'] && ! isset ( $this->_tpl_vars['restricted_country_mode'] ) && ! $this->_tpl_vars['PS_CATALOG_MODE']): ?><span class="price"><?php if ($this->_tpl_vars['priceDisplay'] != 1): ?><?php echo Product::displayWtPrice(array('p' => $this->_tpl_vars['accessory']['price']), $this);?>
  641. <?php else: ?><?php echo Product::displayWtPrice(array('p' => $this->_tpl_vars['accessory']['price_tax_exc']), $this);?>
  642. <?php endif; ?></span><?php endif; ?>
  643. <a class="button" href="<?php echo ((is_array($_tmp=$this->_tpl_vars['accessoryLink'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlal…

Large files files are truncated, but you can click here to view the full file