/tools/smarty_v2/compile/%%97^97C^97CE002B%%product.tpl.php
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
- <?php /* Smarty version 2.6.20, created on 2011-11-28 14:44:50
- compiled from C:%5CD%5Cprestashop/themes/prestashop/product.tpl */ ?>
- <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
- 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); ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php if (count($this->_tpl_vars['errors']) == 0): ?>
- <script type="text/javascript">
- // <![CDATA[
- // PrestaShop internal settings
- 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")); ?>
- ';
- var currencyRate = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencyRate'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)); ?>
- ';
- var currencyFormat = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencyFormat'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ';
- var currencyBlank = '<?php echo ((is_array($_tmp=$this->_tpl_vars['currencyBlank'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ';
- var taxRate = <?php echo ((is_array($_tmp=$this->_tpl_vars['tax_rate'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)); ?>
- ;
- var jqZoomEnabled = <?php if ($this->_tpl_vars['jqZoomEnabled']): ?>true<?php else: ?>false<?php endif; ?>;
- //JS Hook
- var oosHookJsCodeFunctions = new Array();
- // Parameters
- var id_product = '<?php echo ((is_array($_tmp=$this->_tpl_vars['product']->id)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ';
- var productHasAttributes = <?php if (isset ( $this->_tpl_vars['groups'] )): ?>true<?php else: ?>false<?php endif; ?>;
- var quantitiesDisplayAllowed = <?php if ($this->_tpl_vars['display_qties'] == 1): ?>true<?php else: ?>false<?php endif; ?>;
- var quantityAvailable = <?php if ($this->_tpl_vars['display_qties'] == 1 && $this->_tpl_vars['product']->quantity): ?><?php echo $this->_tpl_vars['product']->quantity; ?>
- <?php else: ?>0<?php endif; ?>;
- var allowBuyWhenOutOfStock = <?php if ($this->_tpl_vars['allow_oosp'] == 1): ?>true<?php else: ?>false<?php endif; ?>;
- 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')); ?>
- ';
- 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')); ?>
- ';
- 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')); ?>
- - <?php echo $this->_tpl_vars['product']->ecotax; ?>
- ;
- 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; ?>
- <?php else: ?>0<?php endif; ?>;
- 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']; ?>
- <?php else: ?>0<?php endif; ?>;
- var specific_price = <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['price']): ?><?php echo $this->_tpl_vars['product']->specificPrice['price']; ?>
- <?php else: ?>0<?php endif; ?>;
- var specific_currency = <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['id_currency']): ?>true<?php else: ?>false<?php endif; ?>;
- var group_reduction = '<?php echo $this->_tpl_vars['group_reduction']; ?>
- ';
- var default_eco_tax = <?php echo $this->_tpl_vars['product']->ecotax; ?>
- ;
- var ecotaxTax_rate = <?php echo $this->_tpl_vars['ecotaxTax_rate']; ?>
- ;
- 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')); ?>
- ';
- var maxQuantityToAllowDisplayOfLastQuantityMessage = <?php echo $this->_tpl_vars['last_qties']; ?>
- ;
- var noTaxForThisProduct = <?php if ($this->_tpl_vars['no_tax'] == 1): ?>true<?php else: ?>false<?php endif; ?>;
- var displayPrice = <?php echo $this->_tpl_vars['priceDisplay']; ?>
- ;
- 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')); ?>
- ';
- 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; ?>
- '<?php endif; ?>;
- var productShowPrice = '<?php if (! $this->_tpl_vars['PS_CATALOG_MODE']): ?><?php echo $this->_tpl_vars['product']->show_price; ?>
- <?php else: ?>0<?php endif; ?>';
- var productUnitPriceRatio = '<?php echo $this->_tpl_vars['product']->unit_price_ratio; ?>
- ';
- var idDefaultImage = <?php if (isset ( $this->_tpl_vars['cover']['id_image_only'] )): ?><?php echo $this->_tpl_vars['cover']['id_image_only']; ?>
- <?php else: ?>0<?php endif; ?>;
- // Customizable field
- var img_ps_dir = '<?php echo $this->_tpl_vars['img_ps_dir']; ?>
- ';
- var customizationFields = new Array();
- <?php $this->assign('imgIndex', 0); ?>
- <?php $this->assign('textFieldIndex', 0); ?>
- <?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);
- if ($this->_foreach['customizationFields']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['field']):
- $this->_foreach['customizationFields']['iteration']++;
- ?>
- <?php $this->assign('key', "pictures_".($this->_tpl_vars['product']->id)."_".($this->_tpl_vars['field']['id_customization_field'])); ?>
- customizationFields[<?php echo ((is_array($_tmp=($this->_foreach['customizationFields']['iteration']-1))) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ] = new Array();
- customizationFields[<?php echo ((is_array($_tmp=($this->_foreach['customizationFields']['iteration']-1))) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ][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']++; ?>
- <?php else: ?>textField<?php echo $this->_tpl_vars['textFieldIndex']++; ?>
- <?php endif; ?>';
- customizationFields[<?php echo ((is_array($_tmp=($this->_foreach['customizationFields']['iteration']-1))) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ][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)); ?>
- <?php endif; ?>;
- <?php endforeach; endif; unset($_from); ?>
- // Images
- var img_prod_dir = '<?php echo $this->_tpl_vars['img_prod_dir']; ?>
- ';
- var combinationImages = new Array();
- <?php if (isset ( $this->_tpl_vars['combinationImages'] )): ?>
- <?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);
- if ($this->_foreach['f_combinationImages']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['combinationId'] => $this->_tpl_vars['combination']):
- $this->_foreach['f_combinationImages']['iteration']++;
- ?>
- combinationImages[<?php echo $this->_tpl_vars['combinationId']; ?>
- ] = new Array();
- <?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);
- if ($this->_foreach['f_combinationImage']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['image']):
- $this->_foreach['f_combinationImage']['iteration']++;
- ?>
- combinationImages[<?php echo $this->_tpl_vars['combinationId']; ?>
- ][<?php echo ($this->_foreach['f_combinationImage']['iteration']-1); ?>
- ] = <?php echo ((is_array($_tmp=$this->_tpl_vars['image']['id_image'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- ;
- <?php endforeach; endif; unset($_from); ?>
- <?php endforeach; endif; unset($_from); ?>
- <?php endif; ?>
- combinationImages[0] = new Array();
- <?php if (isset ( $this->_tpl_vars['images'] )): ?>
- <?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);
- if ($this->_foreach['f_defaultImages']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['image']):
- $this->_foreach['f_defaultImages']['iteration']++;
- ?>
- combinationImages[0][<?php echo ($this->_foreach['f_defaultImages']['iteration']-1); ?>
- ] = <?php echo $this->_tpl_vars['image']['id_image']; ?>
- ;
- <?php endforeach; endif; unset($_from); ?>
- <?php endif; ?>
- // Translations
- var doesntExist = '<?php echo smartyTranslate(array('s' => 'The product does not exist in this model. Please choose another.','js' => 1), $this);?>
- ';
- var doesntExistNoMore = '<?php echo smartyTranslate(array('s' => 'This product is no longer in stock','js' => 1), $this);?>
- ';
- var doesntExistNoMoreBut = '<?php echo smartyTranslate(array('s' => 'with those attributes but is available with others','js' => 1), $this);?>
- ';
- var uploading_in_progress = '<?php echo smartyTranslate(array('s' => 'Uploading in progress, please wait...','js' => 1), $this);?>
- ';
- var fieldRequired = '<?php echo smartyTranslate(array('s' => 'Please fill in all required fields, then save the customization.','js' => 1), $this);?>
- ';
- <?php if (isset ( $this->_tpl_vars['groups'] )): ?>
- // Combinations
- <?php $_from = $this->_tpl_vars['combinations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['idCombination'] => $this->_tpl_vars['combination']):
- ?>
- addCombination(<?php echo ((is_array($_tmp=$this->_tpl_vars['idCombination'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- , new Array(<?php echo $this->_tpl_vars['combination']['list']; ?>
- ), <?php echo $this->_tpl_vars['combination']['quantity']; ?>
- , <?php echo $this->_tpl_vars['combination']['price']; ?>
- , <?php echo $this->_tpl_vars['combination']['ecotax']; ?>
- , <?php echo $this->_tpl_vars['combination']['id_image']; ?>
- , '<?php echo ((is_array($_tmp=$this->_tpl_vars['combination']['reference'])) ? $this->_run_mod_handler('addslashes', true, $_tmp) : addslashes($_tmp)); ?>
- ', <?php echo $this->_tpl_vars['combination']['unit_impact']; ?>
- , <?php echo $this->_tpl_vars['combination']['minimal_quantity']; ?>
- );
- <?php endforeach; endif; unset($_from); ?>
- // Colors
- <?php if (count($this->_tpl_vars['colors']) > 0): ?>
- <?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)); ?>
- ;<?php endif; ?>
- <?php endif; ?>
- <?php endif; ?>
- //]]>
- </script>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <div id="primary_block" class="clearfix">
- <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')); ?>
- </h1>
- <?php if (isset ( $this->_tpl_vars['adminActionDisplay'] ) && $this->_tpl_vars['adminActionDisplay']): ?>
- <div id="admin-action">
- <p><?php echo smartyTranslate(array('s' => 'This product is not visible to your customers.'), $this);?>
- <input type="hidden" id="admin-action-product-id" value="<?php echo $this->_tpl_vars['product']->id; ?>
- " />
- <input type="submit" value="<?php echo smartyTranslate(array('s' => 'Publish'), $this);?>
- " class="exclusive" onclick="submitPublishProduct('<?php echo $this->_tpl_vars['base_dir']; ?>
- <?php echo $_GET['ad']; ?>
- ', 0)"/>
- <input type="submit" value="<?php echo smartyTranslate(array('s' => 'Back'), $this);?>
- " class="exclusive" onclick="submitPublishProduct('<?php echo $this->_tpl_vars['base_dir']; ?>
- <?php echo $_GET['ad']; ?>
- ', 1)"/>
- </p>
- <div class="clear" ></div>
- <p id="admin-action-result"></p>
- </p>
- </div>
- <?php endif; ?>
- <?php if (isset ( $this->_tpl_vars['confirmation'] ) && $this->_tpl_vars['confirmation']): ?>
- <p class="confirmation">
- <?php echo $this->_tpl_vars['confirmation']; ?>
- </p>
- <?php endif; ?>
- <!-- right infos-->
- <div id="pb-right-column">
- <!-- product img-->
- <div id="image-block">
- <?php if ($this->_tpl_vars['have_image']): ?>
- <img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['cover']['id_image'],'large'); ?>
- "
- <?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'); ?>
- "<?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')); ?>
- " 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')); ?>
- " <?php endif; ?> id="bigpic" width="<?php echo $this->_tpl_vars['largeSize']['width']; ?>
- " height="<?php echo $this->_tpl_vars['largeSize']['height']; ?>
- " />
- <?php else: ?>
- <img src="<?php echo $this->_tpl_vars['img_prod_dir']; ?>
- <?php echo $this->_tpl_vars['lang_iso']; ?>
- -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')); ?>
- " width="<?php echo $this->_tpl_vars['largeSize']['width']; ?>
- " height="<?php echo $this->_tpl_vars['largeSize']['height']; ?>
- " />
- <?php endif; ?>
- </div>
- <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) > 0): ?>
- <!-- thumbnails -->
- <div id="views_block" <?php if (isset ( $this->_tpl_vars['images'] ) && count ( $this->_tpl_vars['images'] ) < 2): ?>class="hidden"<?php endif; ?>>
- <?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);?>
- " href="javascript:{}"><?php echo smartyTranslate(array('s' => 'Previous'), $this);?>
- </a></span><?php endif; ?>
- <div id="thumbs_list">
- <ul id="thumbs_list_frame">
- <?php if (isset ( $this->_tpl_vars['images'] )): ?>
- <?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);
- if ($this->_foreach['thumbnails']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['image']):
- $this->_foreach['thumbnails']['iteration']++;
- ?>
- <?php $this->assign('imageIds', ($this->_tpl_vars['product']->id)."-".($this->_tpl_vars['image']['id_image'])); ?>
- <li id="thumbnail_<?php echo $this->_tpl_vars['image']['id_image']; ?>
- ">
- <a href="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['imageIds'],'thickbox'); ?>
- " 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)); ?>
- ">
- <img id="thumb_<?php echo $this->_tpl_vars['image']['id_image']; ?>
- " src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']->link_rewrite,$this->_tpl_vars['imageIds'],'medium'); ?>
- " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['image']['legend'])) ? $this->_run_mod_handler('htmlspecialchars', true, $_tmp) : htmlspecialchars($_tmp)); ?>
- " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
- " width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
- " />
- </a>
- </li>
- <?php endforeach; endif; unset($_from); ?>
- <?php endif; ?>
- </ul>
- </div>
- <?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);?>
- " href="javascript:{}"><?php echo smartyTranslate(array('s' => 'Next'), $this);?>
- </a><?php endif; ?>
- </div>
- <?php endif; ?>
- <?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']; ?>
- icon/cancel_16x18.gif" alt="<?php echo smartyTranslate(array('s' => 'Cancel'), $this);?>
- " width="16" height="18"/> <a id="resetImages" href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['product']); ?>
- " onclick="$('span#wrapResetImages').hide('slow');return (false);"><?php echo smartyTranslate(array('s' => 'Display all pictures'), $this);?>
- </a></span></p><?php endif; ?>
- <!-- usefull links-->
- <ul id="usefull_link_block">
- <?php if ($this->_tpl_vars['HOOK_EXTRA_LEFT']): ?><?php echo $this->_tpl_vars['HOOK_EXTRA_LEFT']; ?>
- <?php endif; ?>
- <li><a href="javascript:print();"><?php echo smartyTranslate(array('s' => 'Print'), $this);?>
- </a><br class="clear" /></li>
- <?php if ($this->_tpl_vars['have_image'] && ! $this->_tpl_vars['jqZoomEnabled']): ?>
- <li><span id="view_full_size" class="span_link"><?php echo smartyTranslate(array('s' => 'View full size'), $this);?>
- </span></li>
- <?php endif; ?>
- </ul>
- </div>
- <!-- left infos-->
- <div id="pb-left-column">
- <?php if ($this->_tpl_vars['product']->description_short || count($this->_tpl_vars['packItems']) > 0): ?>
- <div id="short_description_block">
- <?php if ($this->_tpl_vars['product']->description_short): ?>
- <div id="short_description_content" class="rte align_justify"><?php echo $this->_tpl_vars['product']->description_short; ?>
- </div>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['product']->description): ?>
- <p class="buttons_bottom_block"><a href="javascript:{}" class="button"><?php echo smartyTranslate(array('s' => 'More details'), $this);?>
- </a></p>
- <?php endif; ?>
- <?php if (count($this->_tpl_vars['packItems']) > 0): ?>
- <h3><?php echo smartyTranslate(array('s' => 'Pack content'), $this);?>
- </h3>
- <?php $_from = $this->_tpl_vars['packItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['packItem']):
- ?>
- <div class="pack_content">
- <?php echo $this->_tpl_vars['packItem']['pack_quantity']; ?>
- 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']); ?>
- "><?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')); ?>
- </a>
- <p><?php echo $this->_tpl_vars['packItem']['description_short']; ?>
- </p>
- </div>
- <?php endforeach; endif; unset($_from); ?>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <?php if (isset ( $this->_tpl_vars['colors'] ) && $this->_tpl_vars['colors']): ?>
- <!-- colors -->
- <div id="color_picker">
- <p><?php echo smartyTranslate(array('s' => 'Pick a color:','js' => 1), $this);?>
- </p>
- <div class="clear"></div>
- <ul id="color_to_pick_list">
- <?php $_from = $this->_tpl_vars['colors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['id_attribute'] => $this->_tpl_vars['color']):
- ?>
- <li><a id="color_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- " class="color_pick" style="background: <?php echo $this->_tpl_vars['color']['value']; ?>
- ;" onclick="updateColorSelect(<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- );$('#wrapResetImages').show('slow');" title="<?php echo $this->_tpl_vars['color']['name']; ?>
- "><?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']; ?>
- <?php echo $this->_tpl_vars['id_attribute']; ?>
- .jpg" alt="<?php echo $this->_tpl_vars['color']['name']; ?>
- " width="20" height="20" /><?php endif; ?></a></li>
- <?php endforeach; endif; unset($_from); ?>
- </ul>
- <div class="clear"></div>
- </div>
- <?php endif; ?>
- <?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'] )): ?>
- <!-- add to cart form-->
- <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'); ?>
- " method="post">
- <!-- hidden datas -->
- <p class="hidden">
- <input type="hidden" name="token" value="<?php echo $this->_tpl_vars['static_token']; ?>
- " />
- <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)); ?>
- " id="product_page_product_id" />
- <input type="hidden" name="add" value="1" />
- <input type="hidden" name="id_product_attribute" id="idCombination" value="" />
- </p>
- <!-- prices -->
- <?php if ($this->_tpl_vars['product']->show_price && ! isset ( $this->_tpl_vars['restricted_country_mode'] ) && ! $this->_tpl_vars['PS_CATALOG_MODE']): ?>
- <p class="price">
- <?php if (! $this->_tpl_vars['priceDisplay'] || $this->_tpl_vars['priceDisplay'] == 2): ?>
- <?php $this->assign('productPrice', $this->_tpl_vars['product']->getPrice(true,@NULL,2)); ?>
- <?php $this->assign('productPriceWithoutRedution', $this->_tpl_vars['product']->getPriceWithoutReduct(false,@NULL)); ?>
- <?php elseif ($this->_tpl_vars['priceDisplay'] == 1): ?>
- <?php $this->assign('productPrice', $this->_tpl_vars['product']->getPrice(false,@NULL,2)); ?>
- <?php $this->assign('productPriceWithoutRedution', $this->_tpl_vars['product']->getPriceWithoutReduct(true,@NULL)); ?>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['product']->on_sale): ?>
- <img src="<?php echo $this->_tpl_vars['img_dir']; ?>
- onsale_<?php echo $this->_tpl_vars['lang_iso']; ?>
- .gif" alt="<?php echo smartyTranslate(array('s' => 'On sale'), $this);?>
- " class="on_sale_img"/>
- <span class="on_sale"><?php echo smartyTranslate(array('s' => 'On sale!'), $this);?>
- </span>
- <?php elseif ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction'] && $this->_tpl_vars['productPriceWithoutRedution'] > $this->_tpl_vars['productPrice']): ?>
- <span class="discount"><?php echo smartyTranslate(array('s' => 'Reduced price!'), $this);?>
- </span>
- <?php endif; ?>
- <br />
- <span class="our_price_display">
- <?php if ($this->_tpl_vars['priceDisplay'] >= 0 && $this->_tpl_vars['priceDisplay'] <= 2): ?>
- <span id="our_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['productPrice']), $this);?>
- </span>
- <?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'] ) )): ?>
- <?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo smartyTranslate(array('s' => 'tax excl.'), $this);?>
- <?php else: ?><?php echo smartyTranslate(array('s' => 'tax incl.'), $this);?>
- <?php endif; ?>
- <?php endif; ?>
- <?php endif; ?>
- </span>
- <?php if ($this->_tpl_vars['priceDisplay'] == 2): ?>
- <br />
- <span id="pretaxe_price"><span id="pretaxe_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']->getPrice(false,@NULL,2)), $this);?>
- </span> <?php echo smartyTranslate(array('s' => 'tax excl.'), $this);?>
- </span>
- <?php endif; ?>
- <br />
- </p>
- <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction']): ?>
- <p id="old_price"><span class="bold">
- <?php if ($this->_tpl_vars['priceDisplay'] >= 0 && $this->_tpl_vars['priceDisplay'] <= 2): ?>
- <?php if ($this->_tpl_vars['productPriceWithoutRedution'] > $this->_tpl_vars['productPrice']): ?>
- <span id="old_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['productPriceWithoutRedution']), $this);?>
- </span>
- <?php if ($this->_tpl_vars['tax_enabled'] && $this->_tpl_vars['display_tax_label'] == 1): ?>
- <?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo smartyTranslate(array('s' => 'tax excl.'), $this);?>
- <?php else: ?><?php echo smartyTranslate(array('s' => 'tax incl.'), $this);?>
- <?php endif; ?>
- <?php endif; ?>
- <?php endif; ?>
- <?php endif; ?>
- </span>
- </p>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction_type'] == 'percentage'): ?>
- <p id="reduction_percent"><?php echo smartyTranslate(array('s' => '(price reduced by'), $this);?>
- <span id="reduction_percent_display"><?php echo $this->_tpl_vars['product']->specificPrice['reduction']*100; ?>
- </span> %<?php echo smartyTranslate(array('s' => ')'), $this);?>
- </p>
- <?php endif; ?>
- <?php if (count($this->_tpl_vars['packItems'])): ?>
- <p class="pack_price"><?php echo smartyTranslate(array('s' => 'instead of'), $this);?>
- <span style="text-decoration: line-through;"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']->getNoPackPrice()), $this);?>
- </span></p>
- <br class="clear" />
- <?php endif; ?>
- <?php if ($this->_tpl_vars['product']->ecotax != 0): ?>
- <p class="price-ecotax"><?php echo smartyTranslate(array('s' => 'include'), $this);?>
- <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)); ?>
- <?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['ecotax_tax_inc'])) ? $this->_run_mod_handler('convertAndFormatPrice', true, $_tmp) : Product::convertAndFormatPrice($_tmp)); ?>
- <?php endif; ?></span> <?php echo smartyTranslate(array('s' => 'for green tax'), $this);?>
- <?php if ($this->_tpl_vars['product']->specificPrice && $this->_tpl_vars['product']->specificPrice['reduction']): ?>
- <br /><?php echo smartyTranslate(array('s' => '(not impacted by the discount)'), $this);?>
- <?php endif; ?>
- </p>
- <?php endif; ?>
- <?php if (! empty ( $this->_tpl_vars['product']->unity ) && $this->_tpl_vars['product']->unit_price_ratio > 0.000000): ?>
- <?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);?>
- <p class="unit-price"><span id="unit_price_display"><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['unit_price']), $this);?>
- </span> <?php echo smartyTranslate(array('s' => 'per'), $this);?>
- <?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')); ?>
- </p>
- <?php endif; ?>
- <?php endif; ?>
- <?php if (isset ( $this->_tpl_vars['groups'] )): ?>
- <!-- attributes -->
- <div id="attributes">
- <?php $_from = $this->_tpl_vars['groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['id_attribute_group'] => $this->_tpl_vars['group']):
- ?>
- <?php if (count($this->_tpl_vars['group']['attributes'])): ?>
- <p>
- <label for="group_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute_group'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- "><?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')); ?>
- :</label>
- <?php $this->assign('groupName', "group_".($this->_tpl_vars['id_attribute_group'])); ?>
- <select name="<?php echo $this->_tpl_vars['groupName']; ?>
- " id="group_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute_group'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- " onchange="javascript:findCombination();<?php if (count($this->_tpl_vars['colors']) > 0): ?>$('#wrapResetImages').show('slow');<?php endif; ?>;">
- <?php $_from = $this->_tpl_vars['group']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['id_attribute'] => $this->_tpl_vars['group_attribute']):
- ?>
- <option value="<?php echo ((is_array($_tmp=$this->_tpl_vars['id_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- "<?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')); ?>
- "><?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')); ?>
- </option>
- <?php endforeach; endif; unset($_from); ?>
- </select>
- </p>
- <?php endif; ?>
- <?php endforeach; endif; unset($_from); ?>
- </div>
- <?php endif; ?>
- <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);?>
- </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')); ?>
- </span></p>
- <!-- quantity wanted -->
- <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; ?>>
- <label><?php echo smartyTranslate(array('s' => 'Quantity :'), $this);?>
- </label>
- <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)); ?>
- <?php else: ?><?php if ($this->_tpl_vars['product']->minimal_quantity > 1): ?><?php echo $this->_tpl_vars['product']->minimal_quantity; ?>
- <?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; ?>
- );"<?php endif; ?> />
- </p>
- <!-- minimal quantity wanted -->
- <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);?>
- <b id="minimal_quantity_label"><?php echo $this->_tpl_vars['product']->minimal_quantity; ?>
- </b> <?php echo smartyTranslate(array('s' => ' as a minimum quantity to buy this product.'), $this);?>
- </p>
- <?php if ($this->_tpl_vars['product']->minimal_quantity > 1): ?>
- <script type="text/javascript">
- checkMinimalQuantity();
- </script>
- <?php endif; ?>
- <!-- availability -->
- <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; ?>>
- <span id="availability_label"><?php echo smartyTranslate(array('s' => 'Availability:'), $this);?>
- </span>
- <span id="availability_value"<?php if ($this->_tpl_vars['product']->quantity <= 0): ?> class="warning_inline"<?php endif; ?>>
- <?php if ($this->_tpl_vars['product']->quantity <= 0): ?><?php if ($this->_tpl_vars['allow_oosp']): ?><?php echo $this->_tpl_vars['product']->available_later; ?>
- <?php else: ?><?php echo smartyTranslate(array('s' => 'This product is no longer in stock'), $this);?>
- <?php endif; ?><?php else: ?><?php echo $this->_tpl_vars['product']->available_now; ?>
- <?php endif; ?>
- </span>
- </p>
- <!-- number of item in stock -->
- <?php if (( $this->_tpl_vars['display_qties'] == 1 && ! $this->_tpl_vars['PS_CATALOG_MODE'] && $this->_tpl_vars['product']->available_for_order )): ?>
- <p id="pQuantityAvailable"<?php if ($this->_tpl_vars['product']->quantity <= 0): ?> style="display: none;"<?php endif; ?>>
- <span id="quantityAvailable"><?php echo ((is_array($_tmp=$this->_tpl_vars['product']->quantity)) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- </span>
- <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);?>
- </span>
- <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);?>
- </span>
- </p>
- <?php endif; ?>
- <!-- Out of stock hook -->
- <?php if (! $this->_tpl_vars['allow_oosp']): ?>
- <p id="oosHook"<?php if ($this->_tpl_vars['product']->quantity > 0): ?> style="display: none;"<?php endif; ?>>
- <?php echo $this->_tpl_vars['HOOK_PRODUCT_OOS']; ?>
- </p>
- <?php endif; ?>
- <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);?>
- </p>
- <?php if ($this->_tpl_vars['product']->online_only): ?>
- <p><?php echo smartyTranslate(array('s' => 'Online only'), $this);?>
- </p>
- <?php endif; ?>
- <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);?>
- " class="exclusive" /></p>
- <?php if (isset ( $this->_tpl_vars['HOOK_PRODUCT_ACTIONS'] ) && $this->_tpl_vars['HOOK_PRODUCT_ACTIONS']): ?><?php echo $this->_tpl_vars['HOOK_PRODUCT_ACTIONS']; ?>
- <?php endif; ?>
- <div class="clear"></div>
- </form>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['HOOK_EXTRA_RIGHT']): ?><?php echo $this->_tpl_vars['HOOK_EXTRA_RIGHT']; ?>
- <?php endif; ?>
- </div>
- </div>
- <?php if ($this->_tpl_vars['quantity_discounts']): ?>
- <!-- quantity discount -->
- <ul class="idTabs">
- <li><a style="cursor: pointer" class="selected"><?php echo smartyTranslate(array('s' => 'Quantity discount'), $this);?>
- </a></li>
- </ul>
- <div id="quantityDiscount">
- <table class="std">
- <tr>
- <?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);
- if ($this->_foreach['quantity_discounts']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['quantity_discount']):
- $this->_foreach['quantity_discounts']['iteration']++;
- ?>
- <th><?php echo ((is_array($_tmp=$this->_tpl_vars['quantity_discount']['quantity'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- <?php if (((is_array($_tmp=$this->_tpl_vars['quantity_discount']['quantity'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)) > 1): ?>
- <?php echo smartyTranslate(array('s' => 'quantities'), $this);?>
- <?php else: ?>
- <?php echo smartyTranslate(array('s' => 'quantity'), $this);?>
- <?php endif; ?>
- </th>
- <?php endforeach; endif; unset($_from); ?>
- </tr>
- <tr>
- <?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);
- if ($this->_foreach['quantity_discounts']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['quantity_discount']):
- $this->_foreach['quantity_discounts']['iteration']++;
- ?>
- <td>
- <?php if ($this->_tpl_vars['quantity_discount']['price'] != 0 || $this->_tpl_vars['quantity_discount']['reduction_type'] == 'amount'): ?>
- -<?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);?>
- <?php else: ?>
- -<?php echo ((is_array($_tmp=$this->_tpl_vars['quantity_discount']['real_value'])) ? $this->_run_mod_handler('floatval', true, $_tmp) : floatval($_tmp)); ?>
- %
- <?php endif; ?>
- </td>
- <?php endforeach; endif; unset($_from); ?>
- </tr>
- </table>
- </div>
- <?php endif; ?>
- <?php echo $this->_tpl_vars['HOOK_PRODUCT_FOOTER']; ?>
- <!-- description and features -->
- <?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']): ?>
- <div id="more_info_block" class="clear">
- <ul id="more_info_tabs" class="idTabs idTabsShort">
- <?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);?>
- </a></li><?php endif; ?>
- <?php if ($this->_tpl_vars['features']): ?><li><a id="more_info_tab_data_sheet" href="#idTab2"><?php echo smartyTranslate(array('s' => 'Data sheet'), $this);?>
- </a></li><?php endif; ?>
- <?php if ($this->_tpl_vars['attachments']): ?><li><a id="more_info_tab_attachments" href="#idTab9"><?php echo smartyTranslate(array('s' => 'Download'), $this);?>
- </a></li><?php endif; ?>
- <?php if (isset ( $this->_tpl_vars['accessories'] ) && $this->_tpl_vars['accessories']): ?><li><a href="#idTab4"><?php echo smartyTranslate(array('s' => 'Accessories'), $this);?>
- </a></li><?php endif; ?>
- <?php echo $this->_tpl_vars['HOOK_PRODUCT_TAB']; ?>
- </ul>
- <div id="more_info_sheets" class="sheets align_justify">
- <?php if ($this->_tpl_vars['product']->description): ?>
- <!-- full description -->
- <div id="idTab1" class="rte"><?php echo $this->_tpl_vars['product']->description; ?>
- </div>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['features']): ?>
- <!-- product's features -->
- <ul id="idTab2" class="bullet">
- <?php $_from = $this->_tpl_vars['features']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['feature']):
- ?>
- <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')); ?>
- </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')); ?>
- </li>
- <?php endforeach; endif; unset($_from); ?>
- </ul>
- <?php endif; ?>
- <?php if ($this->_tpl_vars['attachments']): ?>
- <ul id="idTab9" class="bullet">
- <?php $_from = $this->_tpl_vars['attachments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['attachment']):
- ?>
- <li><a href="<?php echo $this->_tpl_vars['link']->getPageLink('attachment.php',true); ?>
- ?id_attachment=<?php echo $this->_tpl_vars['attachment']['id_attachment']; ?>
- "><?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')); ?>
- </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')); ?>
- </li>
- <?php endforeach; endif; unset($_from); ?>
- </ul>
- <?php endif; ?>
- <?php if (isset ( $this->_tpl_vars['accessories'] ) && $this->_tpl_vars['accessories']): ?>
- <!-- accessories -->
- <ul id="idTab4" class="bullet">
- <div class="block products_block accessories_block clearfix">
- <div class="block_content">
- <ul>
- <?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);
- if ($this->_foreach['accessories_list']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['accessory']):
- $this->_foreach['accessories_list']['iteration']++;
- ?>
- <?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'])); ?>
- <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">
- <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')); ?>
- "><?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')); ?>
- </a></h5>
- <div class="product_desc">
- <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')); ?>
- " 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')); ?>
- " 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'); ?>
- " 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')); ?>
- " width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
- " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
- " /></a>
- <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')); ?>
- " title="<?php echo smartyTranslate(array('s' => 'More'), $this);?>
- " 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, '...')); ?>
- </a>
- </div>
- <p class="product_accessories_price">
- <?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);?>
- <?php else: ?><?php echo Product::displayWtPrice(array('p' => $this->_tpl_vars['accessory']['price_tax_exc']), $this);?>
- <?php endif; ?></span><?php endif; ?>
- <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