function content_5664f9da2b9a78_17280679($_smarty_tpl) { ?> <?php echo PtsthemePanel::smartyplugin(array('module' => 'blocksearch', 'hook' => 'displayTop'), $_smarty_tpl); ?> <header id="header" class="header-default default"> <div id="header-main" class="header"> <div class="container"> <div class="row"> <div class="leftbar col-xs-12 col-sm-6 col-md-6 col-lg-6"> <?php echo PtsthemePanel::smartyplugin(array('module' => 'blockcontact', 'hook' => 'displayNav'), $_smarty_tpl); ?> </div> <div id="topbar" class="topbar col-xs-12 col-sm-6 col-md-6 col-lg-6"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayNav"), $_smarty_tpl); ?> </div> </div> </div> </div> <div id="pts-mainnav"> <div class="container"> <div class="wrap"> <div class="inner"> <div class="row"> <!-- <?php if (class_exists('PtsthemePanel')) { ?> <div class="left verticalmenu col-xs-12 col-sm-12 col-md-3 col-lg-3"> <?php echo PtsthemePanel::smartyplugin(array('module' => 'ptsverticalmenu', 'hook' => 'displayLeftColumn'), $_smarty_tpl); ?> </div> <?php } ?> --> <div id="header_logo" class="col-xs-12 col-sm-3 col-md-2 col-lg-2"> <div id="logo-theme" class="<?php if (Configuration::get('PTS_CP_LOGOTYPE') == 'logo-theme') { ?> logo-theme<?php } else { ?> logo-store<?php } ?> "> <a href="<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true); ?> "> <img class="logo img-responsive <?php if (Configuration::get('PTS_CP_LOGOTYPE') == 'logo-theme') { ?> hidden<?php } ?> " src="<?php echo $_smarty_tpl->tpl_vars['logo_url']->value; ?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true); ?> "/> </a> </div> </div> <div class="main-menu col-xs-12 col-sm-6 col-md-8 col-lg-8"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayMainmenu"), $_smarty_tpl); ?> </div> <div class="search col-xs-12 col-sm-3 col-md-2 col-lg-2"> <!--<?php if (class_exists('PtsthemePanel')) { ?> <?php echo PtsthemePanel::smartyplugin(array('module' => 'ptsblocksearch', 'hook' => 'displayTop'), $_smarty_tpl); ?> <?php } ?> --> <?php if (isset($_smarty_tpl->tpl_vars['HOOK_TOP']->value)) { ?> <div class="header-right"> <?php echo $_smarty_tpl->tpl_vars['HOOK_TOP']->value; ?> </div> <?php } ?> </div> </div> </div> </div> </div> </div> </header><?php }
function content_56650281af07f8_17955706($_smarty_tpl) { ?> <?php echo PtsthemePanel::smartyplugin(array('module' => 'blocksearch', 'hook' => 'displayTop'), $_smarty_tpl); ?> <header id="header" class="header-default header-4"> <div id="header-main" class="header"> <div class="container"> <div class="row"> <div id="topbar" class="topbar col-xs-12 col-sm-12 col-md-12 col-lg-12"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayNav"), $_smarty_tpl); ?> </div> </div> </div> </div> <div class="bg-darker"> <div class="container"> <div class="wrap"> <div class="inner"> <!-- <div class="row"> --> <div id="header_logo"> <div id="logo-theme" class="<?php if (Configuration::get('PTS_CP_LOGOTYPE') == 'logo-theme') { ?> logo-theme<?php } else { ?> logo-store<?php } ?> "> <a href="<?php echo $_smarty_tpl->tpl_vars['base_dir']->value; ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true); ?> "> <img class="logo img-responsive <?php if (Configuration::get('PTS_CP_LOGOTYPE') == 'logo-theme') { ?> hidden<?php } ?> " src="<?php echo $_smarty_tpl->tpl_vars['logo_url']->value; ?> " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['shop_name']->value, ENT_QUOTES, 'UTF-8', true); ?> "/> </a> </div> </div> <div class="search"> <?php if (isset($_smarty_tpl->tpl_vars['HOOK_TOP']->value)) { ?> <div class="header-right"> <?php echo $_smarty_tpl->tpl_vars['HOOK_TOP']->value; ?> </div> <?php } ?> </div> <!-- </div> --> </div> </div> </div> </div> <div id="pts-mainnav" > <div class="container"> <div class="row"> <div class="main-menu col-xs-12 col-sm-12 col-md-12 col-lg-12"> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayMainmenu"), $_smarty_tpl); ?> </div> </div> </div> </div> </header><?php }
function content_5664fc93e8ead8_33780333($_smarty_tpl) { if (!is_callable('smarty_modifier_date_format')) { include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\modifier.date_format.php'; } if (!is_callable('smarty_function_math')) { include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.math.php'; } if (!is_callable('smarty_function_cycle')) { include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.cycle.php'; } if (!is_callable('smarty_function_counter')) { include 'E:\\Xampp\\htdocs\\pf_fshow_quickstart\\tools\\smarty\\plugins\\function.counter.php'; } echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php if (count($_smarty_tpl->tpl_vars['errors']->value) == 0) { ?> <?php if (!isset($_smarty_tpl->tpl_vars['priceDisplayPrecision']->value)) { ?> <?php $_smarty_tpl->tpl_vars['priceDisplayPrecision'] = new Smarty_variable(2, null, 0); ?> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['priceDisplay']->value || $_smarty_tpl->tpl_vars['priceDisplay']->value == 2) { ?> <?php $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(true, @constant('NULL'), $_smarty_tpl->tpl_vars['priceDisplayPrecision']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(false, @constant('NULL'), $_smarty_tpl->tpl_vars['priceDisplayPrecision']->value), null, 0); ?> <?php } elseif ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'), $_smarty_tpl->tpl_vars['priceDisplayPrecision']->value), null, 0); ?> <?php $_smarty_tpl->tpl_vars['productPriceWithoutReduction'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true, @constant('NULL'), $_smarty_tpl->tpl_vars['priceDisplayPrecision']->value), null, 0); ?> <?php } ?> <div class="product-info" itemscope itemtype="http://schema.org/Product"> <meta itemprop="url" content="<?php echo $_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value); ?> "> <div class="primary_block block"> <?php if (isset($_smarty_tpl->tpl_vars['adminActionDisplay']->value) && $_smarty_tpl->tpl_vars['adminActionDisplay']->value) { ?> <div id="admin-action" class="container"> <p class="alert alert-info"><?php echo smartyTranslate(array('s' => 'This product is not visible to your customers.'), $_smarty_tpl); ?> <input type="hidden" id="admin-action-product-id" value="<?php echo $_smarty_tpl->tpl_vars['product']->value->id; ?> " /> <a id="publish_button" class="btn btn-default button button-small" href="#"> <span><?php echo smartyTranslate(array('s' => 'Publish'), $_smarty_tpl); ?> </span> </a> <a id="lnk_view" class="btn btn-default button button-small" href="#"> <span><?php echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl); ?> </span> </a> </p> <p id="admin-action-result"></p> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['confirmation']->value) && $_smarty_tpl->tpl_vars['confirmation']->value) { ?> <p class="confirmation"> <?php echo $_smarty_tpl->tpl_vars['confirmation']->value; ?> </p> <?php } ?> <!-- left infos--> <div class="row"> <div class="pb-left-column col-xs-12 col-sm-12 <?php if (isset($_smarty_tpl->tpl_vars['left_column_size']->value) && !empty($_smarty_tpl->tpl_vars['left_column_size']->value) || isset($_smarty_tpl->tpl_vars['right_column_size']->value) && !empty($_smarty_tpl->tpl_vars['right_column_size']->value)) { ?> col-md-6 col-lg-5<?php } else { ?> col-md-5 col-lg-6<?php } ?> "> <?php if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 1) { ?> <p class="resetimg clear no-print hidden"> <span id="wrapResetImages" style="display: none;"> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value), ENT_QUOTES, 'UTF-8', true); ?> " data-id="resetImages"> <i class="icon-repeat"></i> <?php echo smartyTranslate(array('s' => 'Display all pictures'), $_smarty_tpl); ?> </a> </span> </p> <?php } ?> <!-- product img--> <div id="image-block" class="clearfix col-xs-10 col-sm-10 col-md-10 col-lg-10"> <!-- <?php if ($_smarty_tpl->tpl_vars['product']->value->new) { ?> <span class="product-label new-box"> <span class="new-label"><?php echo smartyTranslate(array('s' => 'New'), $_smarty_tpl); ?> </span> </span> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->on_sale) { ?> <span class="product-label sale-box no-print"> <span class="sale-label"><?php echo smartyTranslate(array('s' => 'Sale!'), $_smarty_tpl); ?> </span> </span> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value > $_smarty_tpl->tpl_vars['productPrice']->value) { ?> <span class="product-label sale-box discount"><span><?php echo smartyTranslate(array('s' => 'Reduced price!'), $_smarty_tpl); ?> </span></span> <?php } ?> --> <?php if ($_smarty_tpl->tpl_vars['have_image']->value) { ?> <span id="view_full_size"> <?php if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['content_only']->value) { ?> <a class="jqzoom" title="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); } ?> " rel="gal1" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'thickbox_default'), ENT_QUOTES, 'UTF-8', true); ?> "> <img itemprop="image" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'large_default'), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); } ?> " alt="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); } ?> "/> </a> <?php } else { ?> <img id="bigpic" itemprop="image" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['cover']->value['id_image'], 'large_default'), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); } ?> " alt="<?php if (!empty($_smarty_tpl->tpl_vars['cover']->value['legend'])) { echo htmlspecialchars($_smarty_tpl->tpl_vars['cover']->value['legend'], ENT_QUOTES, 'UTF-8', true); } else { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); } ?> " width="<?php echo $_smarty_tpl->tpl_vars['largeSize']->value['width']; ?> " height="<?php echo $_smarty_tpl->tpl_vars['largeSize']->value['height']; ?> "/> <?php if (!$_smarty_tpl->tpl_vars['content_only']->value) { ?> <span class="span_link no-print"><?php echo smartyTranslate(array('s' => 'View larger'), $_smarty_tpl); ?> </span> <?php } ?> <?php } ?> </span> <?php } else { ?> <span id="view_full_size"> <img itemprop="image" src="<?php echo $_smarty_tpl->tpl_vars['img_prod_dir']->value; echo $_smarty_tpl->tpl_vars['lang_iso']->value; ?> -default-large_default.jpg" id="bigpic" alt="" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); ?> " width="<?php echo $_smarty_tpl->tpl_vars['largeSize']->value['width']; ?> " height="<?php echo $_smarty_tpl->tpl_vars['largeSize']->value['height']; ?> "/> <?php if (!$_smarty_tpl->tpl_vars['content_only']->value) { ?> <span class="span_link"> <?php echo smartyTranslate(array('s' => 'View larger'), $_smarty_tpl); ?> </span> <?php } ?> </span> <?php } ?> </div> <!-- end image-block --> <?php if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 0) { ?> <!-- thumbnails --> <div id="views_block" class="clearfix views-vertical col-xs-2 col-sm-2 col-md-2 col-lg-2 <?php if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) < 2) { ?> hidden<?php } ?> "> <?php if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 4) { ?> <span class="view_scroll_spacer view_scroll_spacer_left carousel-controls"> <a id="view_scroll_left" class="carousel-control left" title="<?php echo smartyTranslate(array('s' => 'Other views'), $_smarty_tpl); ?> " href="javascript:{}"> <i class="icon-angle-left"></i> </a> </span> <?php } ?> <div id="thumbs_list" class="thumbs-vertical"> <ul id="thumbs_list_frame"> <?php if (isset($_smarty_tpl->tpl_vars['images']->value)) { ?> <?php $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['image']->_loop = false; $_from = $_smarty_tpl->tpl_vars['images']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['image']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['image']->iteration = 0; foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value) { $_smarty_tpl->tpl_vars['image']->_loop = true; $_smarty_tpl->tpl_vars['image']->iteration++; $_smarty_tpl->tpl_vars['image']->last = $_smarty_tpl->tpl_vars['image']->iteration === $_smarty_tpl->tpl_vars['image']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['thumbnails']['last'] = $_smarty_tpl->tpl_vars['image']->last; ?> <?php $_smarty_tpl->tpl_vars['imageIds'] = new Smarty_variable((string) $_smarty_tpl->tpl_vars['product']->value->id . "-" . (string) $_smarty_tpl->tpl_vars['image']->value['id_image'], null, 0); ?> <?php if (!empty($_smarty_tpl->tpl_vars['image']->value['legend'])) { ?> <?php $_smarty_tpl->tpl_vars['imageTitle'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend'], ENT_QUOTES, 'UTF-8', true), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['imageTitle'] = new Smarty_variable(htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true), null, 0); ?> <?php } ?> <li id="thumbnail_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image']; ?> "<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['thumbnails']['last']) { ?> class="last"<?php } ?> > <a<?php if ($_smarty_tpl->tpl_vars['jqZoomEnabled']->value && $_smarty_tpl->tpl_vars['have_image']->value && !$_smarty_tpl->tpl_vars['content_only']->value) { ?> href="javascript:void(0);" rel="{gallery: 'gal1', smallimage: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'large_default'), ENT_QUOTES, 'UTF-8', true); ?> ',largeimage: '<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'thickbox_default'), ENT_QUOTES, 'UTF-8', true); ?> '}"<?php } else { ?> href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'thickbox_default'), ENT_QUOTES, 'UTF-8', true); ?> " data-fancybox-group="other-views" class="fancybox<?php if ($_smarty_tpl->tpl_vars['image']->value['id_image'] == $_smarty_tpl->tpl_vars['cover']->value['id_image']) { ?> shown<?php } ?> "<?php } ?> title="<?php echo $_smarty_tpl->tpl_vars['imageTitle']->value; ?> "> <img class="img-responsive" id="thumb_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image']; ?> " src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value->link_rewrite, $_smarty_tpl->tpl_vars['imageIds']->value, 'cart_default'), ENT_QUOTES, 'UTF-8', true); ?> " alt="<?php echo $_smarty_tpl->tpl_vars['imageTitle']->value; ?> " title="<?php echo $_smarty_tpl->tpl_vars['imageTitle']->value; ?> " itemprop="image" /> </a> </li> <?php } ?> <?php } ?> </ul> </div> <!-- end thumbs_list --> <?php if (isset($_smarty_tpl->tpl_vars['images']->value) && count($_smarty_tpl->tpl_vars['images']->value) > 4) { ?> <span class="view_scroll_spacer view_scroll_spacer_right carousel-controls"> <a id="view_scroll_right" class="carousel-control right" title="<?php echo smartyTranslate(array('s' => 'Other views'), $_smarty_tpl); ?> " href="javascript:{}"> <i class="icon-angle-right"></i> </a> </span> <?php } ?> </div> <!-- end views-block --> <!-- end thumbnails --> <?php } ?> </div> <!-- end pb-left-column --> <!-- end left infos--> <!-- pb-right-column--> <div class="pb-right-column col-xs-12 col-sm-12 <?php if (isset($_smarty_tpl->tpl_vars['left_column_size']->value) && !empty($_smarty_tpl->tpl_vars['left_column_size']->value) || isset($_smarty_tpl->tpl_vars['right_column_size']->value) && !empty($_smarty_tpl->tpl_vars['right_column_size']->value)) { ?> col-md-6 col-lg-5<?php } else { ?> col-md-7 col-lg-6<?php } ?> "> <h1 itemprop="name"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->name, ENT_QUOTES, 'UTF-8', true); ?> </h1> <?php if ($_smarty_tpl->tpl_vars['product']->value->online_only) { ?> <p class="online_only"><?php echo smartyTranslate(array('s' => 'Online only'), $_smarty_tpl); ?> </p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value && $_smarty_tpl->tpl_vars['product']->value->available_for_order) { ?> <!-- number of item in stock --> <p id="pQuantityAvailable"<?php if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) { ?> style="display: none;"<?php } ?> > <span id="quantityAvailable"><?php echo intval($_smarty_tpl->tpl_vars['product']->value->quantity); ?> </span> <span <?php if ($_smarty_tpl->tpl_vars['product']->value->quantity > 1) { ?> style="display: none;"<?php } ?> id="quantityAvailableTxt"><?php echo smartyTranslate(array('s' => 'Item'), $_smarty_tpl); ?> </span> <span <?php if ($_smarty_tpl->tpl_vars['product']->value->quantity == 1) { ?> style="display: none;"<?php } ?> id="quantityAvailableTxtMultiple"><?php echo smartyTranslate(array('s' => 'Items'), $_smarty_tpl); ?> </span> </p> <?php } ?> <!-- availability or doesntExist --> <p id="availability_statut"<?php if (!$_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value || $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['product']->value->available_later && $_smarty_tpl->tpl_vars['allow_oosp']->value || $_smarty_tpl->tpl_vars['product']->value->quantity > 0 && !$_smarty_tpl->tpl_vars['product']->value->available_now || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> style="display: none;"<?php } ?> > <span id="availability_value" class="label<?php if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0 && !$_smarty_tpl->tpl_vars['allow_oosp']->value) { ?> label-danger<?php } elseif ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) { ?> label-warning<?php } else { ?> label-success<?php } ?> "><?php if ($_smarty_tpl->tpl_vars['product']->value->quantity <= 0) { if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value && $_smarty_tpl->tpl_vars['allow_oosp']->value) { echo $_smarty_tpl->tpl_vars['product']->value->available_later; } else { echo smartyTranslate(array('s' => 'This product is no longer in stock'), $_smarty_tpl); } } elseif ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) { echo $_smarty_tpl->tpl_vars['product']->value->available_now; } ?> </span> </p> <?php if ($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value) { ?> <?php if (!$_smarty_tpl->tpl_vars['product']->value->is_virtual) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductDeliveryTime", 'product' => $_smarty_tpl->tpl_vars['product']->value), $_smarty_tpl); } ?> <p class="warning_inline" id="last_quantities"<?php if ($_smarty_tpl->tpl_vars['product']->value->quantity > $_smarty_tpl->tpl_vars['last_qties']->value || $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || $_smarty_tpl->tpl_vars['allow_oosp']->value || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> style="display: none"<?php } ?> ><?php echo smartyTranslate(array('s' => 'Warning: Last items in stock!'), $_smarty_tpl); ?> </p> <?php } ?> <p id="availability_date"<?php if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value || !isset($_smarty_tpl->tpl_vars['product']->value->available_date) || $_smarty_tpl->tpl_vars['product']->value->available_date < smarty_modifier_date_format(time(), '%Y-%m-%d')) { ?> style="display: none;"<?php } ?> > <span id="availability_date_label"><?php echo smartyTranslate(array('s' => 'Availability date:'), $_smarty_tpl); ?> </span> <span id="availability_date_value"><?php if (Validate::isDate($_smarty_tpl->tpl_vars['product']->value->available_date)) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['product']->value->available_date, 'full' => false), $_smarty_tpl); } ?> </span> </p> <!-- Out of stock hook --> <div id="oosHook"<?php if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0) { ?> style="display: none;"<?php } ?> > <?php echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_OOS']->value; ?> </div> <?php if ($_smarty_tpl->tpl_vars['product']->value->show_price && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) || isset($_smarty_tpl->tpl_vars['groups']->value) || $_smarty_tpl->tpl_vars['product']->value->reference || isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) { ?> <!-- add to cart form--> <form id="buy_block"<?php if ($_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && !isset($_smarty_tpl->tpl_vars['groups']->value) && $_smarty_tpl->tpl_vars['product']->value->quantity > 0) { ?> class="hidden"<?php } ?> action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart'), ENT_QUOTES, 'UTF-8', true); ?> " method="post"> <!-- hidden datas --> <p class="hidden"> <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['static_token']->value; ?> " /> <input type="hidden" name="id_product" value="<?php echo intval($_smarty_tpl->tpl_vars['product']->value->id); ?> " id="product_page_product_id" /> <input type="hidden" name="add" value="1" /> <input type="hidden" name="id_product_attribute" id="idCombination" value="" /> </p> <div class="box-info-product"> <div class="content_prices clearfix"> <?php if ($_smarty_tpl->tpl_vars['product']->value->show_price && !isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && !$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> <!-- prices --> <div> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><?php if ($_smarty_tpl->tpl_vars['product']->value->quantity > 0) { ?> <link itemprop="availability" href="http://schema.org/InStock"/><?php } if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) { ?> <span id="our_price_display" class="price" itemprop="price" content="<?php echo $_smarty_tpl->tpl_vars['productPrice']->value; ?> "><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl); ?> </span><?php if ($_smarty_tpl->tpl_vars['tax_enabled']->value && (isset($_smarty_tpl->tpl_vars['display_tax_label']->value) && $_smarty_tpl->tpl_vars['display_tax_label']->value == 1 || !isset($_smarty_tpl->tpl_vars['display_tax_label']->value))) { if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { ?> <?php echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl); } else { ?> <?php echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl); } } ?> <meta itemprop="priceCurrency" content="<?php echo $_smarty_tpl->tpl_vars['currency']->value->iso_code; ?> " /><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "price"), $_smarty_tpl); } ?> </p> <p id="reduction_percent" <?php if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] != 'percentage') { ?> style="display:none;"<?php } ?> ><span id="reduction_percent_display"><?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') { ?> -<?php echo $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * 100; ?> %<?php } ?> </span></p> <p id="reduction_amount" <?php if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] != 'amount' || floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) == 0) { ?> style="display:none"<?php } ?> ><span id="reduction_amount_display"><?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount' && floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) != 0) { ?> -<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl); } ?> </span></p> <p id="old_price"<?php if (!$_smarty_tpl->tpl_vars['product']->value->specificPrice || !$_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) { ?> class="hidden"<?php } ?> ><?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value >= 0 && $_smarty_tpl->tpl_vars['priceDisplay']->value <= 2) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "old_price"), $_smarty_tpl); ?> <span id="old_price_display"><span class="price"><?php if ($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value > $_smarty_tpl->tpl_vars['productPrice']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value)), $_smarty_tpl); } ?> </span><?php if ($_smarty_tpl->tpl_vars['tax_enabled']->value && $_smarty_tpl->tpl_vars['display_tax_label']->value == 1) { ?> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 1) { echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'tax incl.'), $_smarty_tpl); } } ?> </span><?php } ?> </p> <?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) { ?> <br /> <span id="pretaxe_price"><span id="pretaxe_price_display"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->getPrice(false, @constant('NULL'))), $_smarty_tpl); ?> </span> <?php echo smartyTranslate(array('s' => 'tax excl.'), $_smarty_tpl); ?> </span> <?php } ?> </div> <!-- end prices --> <?php if (count($_smarty_tpl->tpl_vars['packItems']->value) && $_smarty_tpl->tpl_vars['productPrice']->value < $_smarty_tpl->tpl_vars['product']->value->getNoPackPrice()) { ?> <p class="pack_price"><?php echo smartyTranslate(array('s' => 'Instead of'), $_smarty_tpl); ?> <span style="text-decoration: line-through;"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['product']->value->getNoPackPrice()), $_smarty_tpl); ?> </span></p> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->ecotax != 0) { ?> <p class="price-ecotax"><?php echo smartyTranslate(array('s' => 'Including'), $_smarty_tpl); ?> <span id="ecotax_price_display"><?php if ($_smarty_tpl->tpl_vars['priceDisplay']->value == 2) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['convertAndFormatPrice'][0][0]->convertAndFormatPrice($_smarty_tpl->tpl_vars['ecotax_tax_exc']->value); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['convertAndFormatPrice'][0][0]->convertAndFormatPrice($_smarty_tpl->tpl_vars['ecotax_tax_inc']->value); } ?> </span> <?php echo smartyTranslate(array('s' => 'for ecotax'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction']) { ?> <br /><?php echo smartyTranslate(array('s' => '(not impacted by the discount)'), $_smarty_tpl); ?> <?php } ?> </p> <?php } ?> <?php if (!empty($_smarty_tpl->tpl_vars['product']->value->unity) && $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio > 0.0) { ?> <?php echo smarty_function_math(array('equation' => "pprice / punit_price", 'pprice' => $_smarty_tpl->tpl_vars['productPrice']->value, 'punit_price' => $_smarty_tpl->tpl_vars['product']->value->unit_price_ratio, 'assign' => 'unit_price'), $_smarty_tpl); ?> <p class="unit-price"><span id="unit_price_display"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['unit_price']->value), $_smarty_tpl); ?> </span> <?php echo smartyTranslate(array('s' => 'per'), $_smarty_tpl); ?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->unity, ENT_QUOTES, 'UTF-8', true); ?> </p> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "unit_price"), $_smarty_tpl); ?> <?php } ?> <?php } ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "weight", 'hook_origin' => 'product_sheet'), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['hook'][0][0]->smartyHook(array('h' => "displayProductPriceBlock", 'product' => $_smarty_tpl->tpl_vars['product']->value, 'type' => "after_price"), $_smarty_tpl); ?> <div class="clear"></div> </div> <!-- end content_prices --> <?php if (isset($_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value) && $_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value) { echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_RIGHT']->value; } ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->description_short || count($_smarty_tpl->tpl_vars['packItems']->value) > 0) { ?> <div id="short_description_block"> <?php if ($_smarty_tpl->tpl_vars['product']->value->description_short) { ?> <div id="short_description_content" class="rte align_justify" itemprop="description"><?php echo $_smarty_tpl->tpl_vars['product']->value->description_short; ?> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description) { ?> <p class="buttons_bottom_block"> <a href="javascript:{}" class="button"> <?php echo smartyTranslate(array('s' => 'More details'), $_smarty_tpl); ?> </a> </p> <?php } ?> <!--<?php if (count($_smarty_tpl->tpl_vars['packItems']->value) > 0) { ?> <div class="short_description_pack"> <h3><?php echo smartyTranslate(array('s' => 'Pack content'), $_smarty_tpl); ?> </h3> <?php $_smarty_tpl->tpl_vars['packItem'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['packItem']->_loop = false; $_from = $_smarty_tpl->tpl_vars['packItems']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['packItem']->key => $_smarty_tpl->tpl_vars['packItem']->value) { $_smarty_tpl->tpl_vars['packItem']->_loop = true; ?> <div class="pack_content"> <?php echo $_smarty_tpl->tpl_vars['packItem']->value['pack_quantity']; ?> x <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['packItem']->value['id_product'], $_smarty_tpl->tpl_vars['packItem']->value['link_rewrite'], $_smarty_tpl->tpl_vars['packItem']->value['category']), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['packItem']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </a> <p><?php echo $_smarty_tpl->tpl_vars['packItem']->value['description_short']; ?> </p> </div> <?php } ?> </div> <?php } ?> --> </div> <!-- end short_description_block --> <?php } ?> <div class="product_attributes clearfix"> <!-- minimal quantity wanted --> <p id="minimal_quantity_wanted_p"<?php if ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity <= 1 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> style="display: none;"<?php } ?> > <?php echo smartyTranslate(array('s' => 'The minimum purchase order quantity for the product is'), $_smarty_tpl); ?> <b id="minimal_quantity_label"><?php echo $_smarty_tpl->tpl_vars['product']->value->minimal_quantity; ?> </b> </p> <?php if (isset($_smarty_tpl->tpl_vars['groups']->value)) { ?> <!-- attributes --> <div id="attributes"> <div class="clearfix"></div> <?php $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['group']->_loop = false; $_smarty_tpl->tpl_vars['id_attribute_group'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['groups']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value) { $_smarty_tpl->tpl_vars['group']->_loop = true; $_smarty_tpl->tpl_vars['id_attribute_group']->value = $_smarty_tpl->tpl_vars['group']->key; ?> <?php if (count($_smarty_tpl->tpl_vars['group']->value['attributes'])) { ?> <fieldset class="attribute_fieldset"> <label class="attribute_label" <?php if ($_smarty_tpl->tpl_vars['group']->value['group_type'] != 'color' && $_smarty_tpl->tpl_vars['group']->value['group_type'] != 'radio') { ?> for="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value); ?> "<?php } ?> ><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </label> <?php $_smarty_tpl->tpl_vars["groupName"] = new Smarty_variable("group_" . (string) $_smarty_tpl->tpl_vars['id_attribute_group']->value, null, 0); ?> <div class="attribute_list"> <?php if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'select') { ?> <select name="<?php echo $_smarty_tpl->tpl_vars['groupName']->value; ?> " id="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value); ?> " class="form-control attribute_select no-print"> <?php $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['group_attribute']->_loop = false; $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['group']->value['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) { $_smarty_tpl->tpl_vars['group_attribute']->_loop = true; $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key; ?> <option value="<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value); ?> "<?php if (isset($_GET[$_smarty_tpl->tpl_vars['groupName']->value]) && intval($_GET[$_smarty_tpl->tpl_vars['groupName']->value]) == $_smarty_tpl->tpl_vars['id_attribute']->value || $_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> selected="selected"<?php } ?> title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true); ?> </option> <?php } ?> </select> <?php } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'color') { ?> <ul id="color_to_pick_list" class="clearfix"> <?php $_smarty_tpl->tpl_vars["default_colorpicker"] = new Smarty_variable('', null, 0); ?> <?php $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['group_attribute']->_loop = false; $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['group']->value['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) { $_smarty_tpl->tpl_vars['group_attribute']->_loop = true; $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key; ?> <?php $_smarty_tpl->tpl_vars['img_color_exists'] = new Smarty_variable(file_exists($_smarty_tpl->tpl_vars['col_img_dir']->value . $_smarty_tpl->tpl_vars['id_attribute']->value . '.jpg'), null, 0); ?> <li<?php if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> class="selected"<?php } ?> > <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value), ENT_QUOTES, 'UTF-8', true); ?> " id="color_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value); ?> " name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true); ?> " class="color_pick<?php if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> selected<?php } ?> "<?php if (!$_smarty_tpl->tpl_vars['img_color_exists']->value && isset($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']) && $_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value']) { ?> style="background:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['value'], ENT_QUOTES, 'UTF-8', true); ?> ;"<?php } ?> title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true); ?> "> <?php if ($_smarty_tpl->tpl_vars['img_color_exists']->value) { ?> <img src="<?php echo $_smarty_tpl->tpl_vars['img_col_dir']->value; echo intval($_smarty_tpl->tpl_vars['id_attribute']->value); ?> .jpg" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['colors']->value[$_smarty_tpl->tpl_vars['id_attribute']->value]['name'], ENT_QUOTES, 'UTF-8', true); ?> " width="20" height="20" /> <?php } ?> </a> </li> <?php if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> <?php $_smarty_tpl->tpl_vars['default_colorpicker'] = new Smarty_variable($_smarty_tpl->tpl_vars['id_attribute']->value, null, 0); ?> <?php } ?> <?php } ?> </ul> <input type="hidden" class="color_pick_hidden" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['groupName']->value, ENT_QUOTES, 'UTF-8', true); ?> " value="<?php echo intval($_smarty_tpl->tpl_vars['default_colorpicker']->value); ?> " /> <?php } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'radio') { ?> <ul> <?php $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['group_attribute']->_loop = false; $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['group']->value['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value) { $_smarty_tpl->tpl_vars['group_attribute']->_loop = true; $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key; ?> <li> <input type="radio" class="attribute_radio" name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['groupName']->value, ENT_QUOTES, 'UTF-8', true); ?> " value="<?php echo $_smarty_tpl->tpl_vars['id_attribute']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['group']->value['default'] == $_smarty_tpl->tpl_vars['id_attribute']->value) { ?> checked="checked"<?php } ?> /> <span><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['group_attribute']->value, ENT_QUOTES, 'UTF-8', true); ?> </span> </li> <?php } ?> </ul> <?php } ?> </div> <!-- end attribute_list --> </fieldset> <?php } ?> <?php } ?> </div> <!-- end attributes --> <?php } ?> <!-- quantity wanted --> <?php if (!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> <div id="quantity_wanted_p"<?php if (!$_smarty_tpl->tpl_vars['allow_oosp']->value && $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> style="display: none;"<?php } ?> > <label><?php echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl); ?> </label> <div class="quantity-field"> <a href="#" data-field-qty="qty" class="btn button-minus product_quantity_down hidden"> <span><i class="icon-minus"></i></span> </a> <input type="number" min="1" name="qty" id="quantity_wanted" class="text" value="<?php if (isset($_smarty_tpl->tpl_vars['quantityBackup']->value)) { echo intval($_smarty_tpl->tpl_vars['quantityBackup']->value); } else { if ($_smarty_tpl->tpl_vars['product']->value->minimal_quantity > 1) { echo $_smarty_tpl->tpl_vars['product']->value->minimal_quantity; } else { ?> 1<?php } } ?> " /> <a href="#" data-field-qty="qty" class="btn button-plus product_quantity_up hidden"> <span><i class="icon-plus"></i></span> </a> <span class="clearfix"></span> </div> </div> <?php } ?> <div class="box-cart-bottom clearfix"> <div<?php if (!$_smarty_tpl->tpl_vars['allow_oosp']->value && $_smarty_tpl->tpl_vars['product']->value->quantity <= 0 || !$_smarty_tpl->tpl_vars['product']->value->available_for_order || isset($_smarty_tpl->tpl_vars['restricted_country_mode']->value) && $_smarty_tpl->tpl_vars['restricted_country_mode']->value || $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value) { ?> class="unvisible"<?php } ?> > <p id="add_to_cart" class="buttons_bottom_block no-print"> <button type="submit" name="Submit" class="exclusive btn btn-default"> <span><?php if ($_smarty_tpl->tpl_vars['content_only']->value && (isset($_smarty_tpl->tpl_vars['product']->value->customization_required) && $_smarty_tpl->tpl_vars['product']->value->customization_required)) { echo smartyTranslate(array('s' => 'Customize'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Add to cart'), $_smarty_tpl); } ?> </span> </button> </p> <?php if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_ACTIONS']->value; ?> <?php } ?> </div> </div> <!-- end box-cart-bottom --> </div> <!-- end product_attributes --> </div> <!-- end box-info-product --> </form> <?php } ?> <?php if (!$_smarty_tpl->tpl_vars['content_only']->value) { ?> <!-- usefull links--> <ul id="usefull_link_block" class="clearfix no-print"> <?php if ($_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value) { ?> <li><?php echo $_smarty_tpl->tpl_vars['HOOK_EXTRA_LEFT']->value; ?> </li><?php } ?> </ul> <?php } ?> <div class="pts-condition"> <p id="product_reference"<?php if (empty($_smarty_tpl->tpl_vars['product']->value->reference) || !$_smarty_tpl->tpl_vars['product']->value->reference) { ?> style="display: none;"<?php } ?> > <label><?php echo smartyTranslate(array('s' => 'Reference:'), $_smarty_tpl); ?> </label> <span class="editable" itemprop="sku"<?php if (!empty($_smarty_tpl->tpl_vars['product']->value->reference) && $_smarty_tpl->tpl_vars['product']->value->reference) { ?> content="<?php echo $_smarty_tpl->tpl_vars['product']->value->reference; } ?> "><?php if (!isset($_smarty_tpl->tpl_vars['groups']->value)) { echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->reference, ENT_QUOTES, 'UTF-8', true); } ?> </span> </p> <?php if (!$_smarty_tpl->tpl_vars['product']->value->is_virtual && $_smarty_tpl->tpl_vars['product']->value->condition) { ?> <p id="product_condition"> <label><?php echo smartyTranslate(array('s' => 'Condition:'), $_smarty_tpl); ?> </label> <?php if ($_smarty_tpl->tpl_vars['product']->value->condition == 'new') { ?> <link itemprop="itemCondition" href="http://schema.org/NewCondition"/> <span class="editable"><?php echo smartyTranslate(array('s' => 'New product'), $_smarty_tpl); ?> </span> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value->condition == 'used') { ?> <link itemprop="itemCondition" href="http://schema.org/UsedCondition"/> <span class="editable"><?php echo smartyTranslate(array('s' => 'Used'), $_smarty_tpl); ?> </span> <?php } elseif ($_smarty_tpl->tpl_vars['product']->value->condition == 'refurbished') { ?> <link itemprop="itemCondition" href="http://schema.org/RefurbishedCondition"/> <span class="editable"><?php echo smartyTranslate(array('s' => 'Refurbished'), $_smarty_tpl); ?> </span> <?php } ?> </p> <?php } ?> <?php if (class_exists('PtsthemePanel')) { ?> <?php echo PtsthemePanel::smartyplugin(array('module' => 'blocktags', 'hook' => 'displayLeftColumn'), $_smarty_tpl); ?> <?php } ?> </div> </div> <!-- end pb-right-column--> </div> </div> <!-- end primary_block --> <?php if (!$_smarty_tpl->tpl_vars['content_only']->value) { ?> <div id="accordion-productinfo" class="panel-group block"> <?php if ($_smarty_tpl->tpl_vars['product']->value->description) { ?> <!-- More info --> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#prductdesc" data-parent="#accordion-productinfo" data-toggle="collapse"><?php echo smartyTranslate(array('s' => 'More info'), $_smarty_tpl); ?> </a> </h4> </div> <div id="prductdesc" class="panel-collapse collapse in"> <!-- full description --> <div class="rte panel-inner"><?php echo $_smarty_tpl->tpl_vars['product']->value->description; ?> </div> </div> </div> <!--end More info --> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['quantity_discounts']->value) && count($_smarty_tpl->tpl_vars['quantity_discounts']->value) > 0) { ?> <!-- quantity discount --> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#quantityDiscount" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"><?php echo smartyTranslate(array('s' => 'Volume discounts'), $_smarty_tpl); ?> </a> </h4> </div> <div id="quantityDiscount" class="panel-collapse collapse"> <div class="panel-inner"> <table class="std table-product-discounts"> <thead> <tr> <th><?php echo smartyTranslate(array('s' => 'Quantity'), $_smarty_tpl); ?> </th> <th><?php if ($_smarty_tpl->tpl_vars['display_discount_price']->value) { echo smartyTranslate(array('s' => 'Price'), $_smarty_tpl); } else { echo smartyTranslate(array('s' => 'Discount'), $_smarty_tpl); } ?> </th> <th><?php echo smartyTranslate(array('s' => 'You Save'), $_smarty_tpl); ?> </th> </tr> </thead> <tbody> <?php $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['quantity_discount']->_loop = false; $_from = $_smarty_tpl->tpl_vars['quantity_discounts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value) { $_smarty_tpl->tpl_vars['quantity_discount']->_loop = true; ?> <tr id="quantityDiscount_<?php echo $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute']; ?> " class="quantityDiscount_<?php echo $_smarty_tpl->tpl_vars['quantity_discount']->value['id_product_attribute']; ?> " data-discount-type="<?php echo $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type']; ?> " data-discount="<?php echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']); ?> " data-discount-quantity="<?php echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']); ?> "> <td> <?php echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']); ?> </td> <td> <?php if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] >= 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') { ?> <?php if ($_smarty_tpl->tpl_vars['display_discount_price']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_tax'] == 0 && !$_smarty_tpl->tpl_vars['quantity_discount']->value['price']) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_with_tax'])), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl); ?> <?php } ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])), $_smarty_tpl); ?> <?php } ?> <?php } else { ?> <?php if ($_smarty_tpl->tpl_vars['display_discount_price']->value) { ?> <?php if ($_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_tax'] == 0) { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_with_tax'])), $_smarty_tpl); ?> <?php } else { ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction'])), $_smarty_tpl); ?> <?php } ?> <?php } else { ?> <?php echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']); ?> % <?php } ?> <?php } ?> </td> <td> <span><?php echo smartyTranslate(array('s' => 'Up to'), $_smarty_tpl); ?> </span> <?php if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price'] >= 0 || $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type'] == 'amount') { ?> <?php $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) - floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['reduction']), null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['discountPrice'] = new Smarty_variable($_smarty_tpl->tpl_vars['discountPrice']->value * $_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'], null, 0); ?> <?php $_smarty_tpl->tpl_vars['qtyProductPrice'] = new Smarty_variable(floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value) * $_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'], null, 0); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price' => $_smarty_tpl->tpl_vars['qtyProductPrice']->value - $_smarty_tpl->tpl_vars['discountPrice']->value), $_smarty_tpl); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value) { ?> <!-- Data sheet --> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#datasheet" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"><?php echo smartyTranslate(array('s' => 'Data sheet'), $_smarty_tpl); ?> </a> </h4> </div> <div id="datasheet" class="panel-collapse collapse"> <div class="panel-inner"> <table class="table-data-sheet"> <?php $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['feature']->_loop = false; $_from = $_smarty_tpl->tpl_vars['features']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value) { $_smarty_tpl->tpl_vars['feature']->_loop = true; ?> <tr class="<?php echo smarty_function_cycle(array('values' => "odd,even"), $_smarty_tpl); ?> "> <?php if (isset($_smarty_tpl->tpl_vars['feature']->value['value'])) { ?> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </td> <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['feature']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> </td> <?php } ?> </tr> <?php } ?> </table> </div> </div> </div> <!--end Data sheet --> <?php } ?> <!--HOOK_PRODUCT_TAB --> <?php if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value) { ?> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#productab" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"> <?php echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value; ?> </a> </h4> </div> <div id="productab" class="panel-collapse collapse"> <div class="panel-inner"> <?php echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB_CONTENT']->value; ?> </div> </div> </div> <?php } ?> <!--end HOOK_PRODUCT_TAB --> <?php if (isset($_smarty_tpl->tpl_vars['accessories']->value) && $_smarty_tpl->tpl_vars['accessories']->value) { ?> <!--Accessories --> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#accessories" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"><?php echo smartyTranslate(array('s' => 'Accessories'), $_smarty_tpl); ?> </a> </h4> </div> <div id="accessories" class="panel-collapse collapse"> <div class="block panel-inner clearfix"> <div class="block_content"> <?php $_smarty_tpl->tpl_vars['tabname'] = new Smarty_variable("ptsaccessories", null, 0); ?> <?php if (Configuration::get('PTS_CP_PRODUCTS_ITEMROW')) { ?> <?php $_smarty_tpl->tpl_vars['columns'] = new Smarty_variable(Configuration::get('PTS_CP_PRODUCT_ACCROW'), null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars['columns'] = new Smarty_variable(4, null, 0); ?> <?php } ?> <?php $_smarty_tpl->tpl_vars['nbr_desktops'] = new Smarty_variable(4, null, 0); ?> <?php $_smarty_tpl->tpl_vars['nbr_tablets'] = new Smarty_variable(3, null, 0); ?> <?php $_smarty_tpl->tpl_vars['nbr_mobile'] = new Smarty_variable(2, null, 0); ?> <?php ob_start(); if (isset($_smarty_tpl->tpl_vars['product_style']->value) && !empty($_smarty_tpl->tpl_vars['product_style']->value)) { echo (string) $_smarty_tpl->tpl_vars['product_style']->value; } else { echo "style1"; } $_tmp2 = ob_get_clean(); echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./sub/products_module.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('items' => $_smarty_tpl->tpl_vars['accessories']->value, 'class' => "products-block grid " . $_tmp2), 0); ?> </div> </div> </div> </div> <!--end Accessories --> <?php } ?> <!-- description & features --> <?php if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->description || isset($_smarty_tpl->tpl_vars['features']->value) && $_smarty_tpl->tpl_vars['features']->value || isset($_smarty_tpl->tpl_vars['accessories']->value) && $_smarty_tpl->tpl_vars['accessories']->value || isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_TAB']->value || isset($_smarty_tpl->tpl_vars['attachments']->value) && $_smarty_tpl->tpl_vars['attachments']->value || isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->customizable) { ?> <?php if (isset($_smarty_tpl->tpl_vars['attachments']->value) && $_smarty_tpl->tpl_vars['attachments']->value) { ?> <!--Download --> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#productdownload" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"><?php echo smartyTranslate(array('s' => 'Download'), $_smarty_tpl); ?> </a> </h4> </div> <div id="productdownload" class="panel-collapse collapse"> <div class="panel-inner"> <?php $_smarty_tpl->tpl_vars['attachment'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['attachment']->_loop = false; $_from = $_smarty_tpl->tpl_vars['attachments']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['attachment']->total = $_smarty_tpl->_count($_from); $_smarty_tpl->tpl_vars['attachment']->iteration = 0; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['attachements']['iteration'] = 0; foreach ($_from as $_smarty_tpl->tpl_vars['attachment']->key => $_smarty_tpl->tpl_vars['attachment']->value) { $_smarty_tpl->tpl_vars['attachment']->_loop = true; $_smarty_tpl->tpl_vars['attachment']->iteration++; $_smarty_tpl->tpl_vars['attachment']->last = $_smarty_tpl->tpl_vars['attachment']->iteration === $_smarty_tpl->tpl_vars['attachment']->total; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['attachements']['iteration']++; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['attachements']['last'] = $_smarty_tpl->tpl_vars['attachment']->last; ?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['attachements']['iteration'] % 3 == 1) { ?> <div class="row"><?php } ?> <div class="col-lg-4"> <h4><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('attachment', true, null, "id_attachment=" . (string) $_smarty_tpl->tpl_vars['attachment']->value['id_attachment']), ENT_QUOTES, 'UTF-8', true); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['name'], ENT_QUOTES, 'UTF-8', true); ?> </a></h4> <p class="text-muted"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['description'], ENT_QUOTES, 'UTF-8', true); ?> </p> <a class="btn btn-default btn-block" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('attachment', true, null, "id_attachment=" . (string) $_smarty_tpl->tpl_vars['attachment']->value['id_attachment']), ENT_QUOTES, 'UTF-8', true); ?> "> <i class="icon-download"></i> <?php echo smartyTranslate(array('s' => "Download"), $_smarty_tpl); ?> (<?php echo Tools::formatBytes($_smarty_tpl->tpl_vars['attachment']->value['file_size'], 2); ?> ) </a> <hr /> </div> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['attachements']['iteration'] % 3 == 0 || $_smarty_tpl->getVariable('smarty')->value['foreach']['attachements']['last']) { ?> </div><?php } ?> <?php } ?> </div> </div> </div> <!--end Download --> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['product']->value) && $_smarty_tpl->tpl_vars['product']->value->customizable) { ?> <!--Customization --> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#customization" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"><?php echo smartyTranslate(array('s' => 'Product customization'), $_smarty_tpl); ?> </a> </h4> </div> <div id="customization" class="panel-collapse collapse"> <div class="panel-inner"> <!-- Customizable products --> <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['customizationFormTarget']->value; ?> " enctype="multipart/form-data" id="customizationForm" class="clearfix"> <p class="infoCustomizable"> <?php echo smartyTranslate(array('s' => 'After saving your customized product, remember to add it to your cart.'), $_smarty_tpl); ?> <?php if ($_smarty_tpl->tpl_vars['product']->value->uploadable_files) { ?> <br /> <?php echo smartyTranslate(array('s' => 'Allowed file formats are: GIF, JPG, PNG'), $_smarty_tpl); } ?> </p> <?php if (intval($_smarty_tpl->tpl_vars['product']->value->uploadable_files)) { ?> <div class="customizableProductsFile"> <h5 class="product-heading-h5"><?php echo smartyTranslate(array('s' => 'Pictures'), $_smarty_tpl); ?> </h5> <ul id="uploadable_files" class="clearfix"> <?php echo smarty_function_counter(array('start' => 0, 'assign' => 'customizationField'), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['customizationFields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 0) { ?> <li class="customizationUploadLine<?php if ($_smarty_tpl->tpl_vars['field']->value['required']) { ?> required<?php } ?> "><?php $_smarty_tpl->tpl_vars['key'] = new Smarty_variable('pictures_' . $_smarty_tpl->tpl_vars['product']->value->id . '_' . $_smarty_tpl->tpl_vars['field']->value['id_customization_field'], null, 0); ?> <?php if (isset($_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value])) { ?> <div class="customizationUploadBrowse"> <img src="<?php echo $_smarty_tpl->tpl_vars['pic_dir']->value; echo $_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value]; ?> _small" alt="" /> <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductDeletePictureLink($_smarty_tpl->tpl_vars['product']->value, $_smarty_tpl->tpl_vars['field']->value['id_customization_field']), ENT_QUOTES, 'UTF-8', true); ?> " title="<?php echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl); ?> " > <img src="<?php echo $_smarty_tpl->tpl_vars['img_dir']->value; ?> icon/delete.gif" alt="<?php echo smartyTranslate(array('s' => 'Delete'), $_smarty_tpl); ?> " class="customization_delete_icon" width="11" height="13" /> </a> </div> <?php } ?> <div class="customizationUploadBrowse form-group"> <label class="customizationUploadBrowseDescription"> <?php if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['name']; ?> <?php } else { ?> <?php echo smartyTranslate(array('s' => 'Please select an image file from your computer'), $_smarty_tpl); ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['required']) { ?> <sup>*</sup><?php } ?> </label> <input type="file" name="file<?php echo $_smarty_tpl->tpl_vars['field']->value['id_customization_field']; ?> " id="img<?php echo $_smarty_tpl->tpl_vars['customizationField']->value; ?> " class="form-control customization_block_input <?php if (isset($_smarty_tpl->tpl_vars['pictures']->value[$_smarty_tpl->tpl_vars['key']->value])) { ?> filled<?php } ?> " /> </div> </li> <?php echo smarty_function_counter(array(), $_smarty_tpl); ?> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <?php if (intval($_smarty_tpl->tpl_vars['product']->value->text_fields)) { ?> <div class="customizableProductsText"> <h5 class="product-heading-h5"><?php echo smartyTranslate(array('s' => 'Text'), $_smarty_tpl); ?> </h5> <ul id="text_fields"> <?php echo smarty_function_counter(array('start' => 0, 'assign' => 'customizationField'), $_smarty_tpl); ?> <?php $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['field']->_loop = false; $_from = $_smarty_tpl->tpl_vars['customizationFields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) { $_smarty_tpl->tpl_vars['field']->_loop = true; ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['type'] == 1) { ?> <li class="customizationUploadLine<?php if ($_smarty_tpl->tpl_vars['field']->value['required']) { ?> required<?php } ?> "> <label for ="textField<?php echo $_smarty_tpl->tpl_vars['customizationField']->value; ?> "> <?php $_smarty_tpl->tpl_vars['key'] = new Smarty_variable('textFields_' . $_smarty_tpl->tpl_vars['product']->value->id . '_' . $_smarty_tpl->tpl_vars['field']->value['id_customization_field'], null, 0); ?> <?php if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])) { ?> <?php echo $_smarty_tpl->tpl_vars['field']->value['name']; ?> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['field']->value['required']) { ?> <sup>*</sup><?php } ?> </label> <textarea name="textField<?php echo $_smarty_tpl->tpl_vars['field']->value['id_customization_field']; ?> " class="form-control customization_block_input" id="textField<?php echo $_smarty_tpl->tpl_vars['customizationField']->value; ?> " rows="3" cols="20"><?php if (isset($_smarty_tpl->tpl_vars['textFields']->value[$_smarty_tpl->tpl_vars['key']->value])) { echo stripslashes($_smarty_tpl->tpl_vars['textFields']->value[$_smarty_tpl->tpl_vars['key']->value]); } ?> </textarea> </li> <?php echo smarty_function_counter(array(), $_smarty_tpl); ?> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <p id="customizedDatas"> <input type="hidden" name="quantityBackup" id="quantityBackup" value="" /> <input type="hidden" name="submitCustomizedDatas" value="1" /> <button class="button btn btn-default button button-small" name="saveCustomization"> <span><?php echo smartyTranslate(array('s' => 'Save'), $_smarty_tpl); ?> </span> </button> <span id="ajax-loader" class="unvisible"> <img src="<?php echo $_smarty_tpl->tpl_vars['img_ps_dir']->value; ?> loader.gif" alt="loader" /> </span> </p> </form> <p class="clear required"><sup>*</sup> <?php echo smartyTranslate(array('s' => 'required fields'), $_smarty_tpl); ?> </p> </div> </div> </div> <!--end Customization --> <?php } ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['DEFAUTL_LANGUAGEID']->value) && Configuration::get('PTS_CP_ENABLE_PHTML')) { ?> <div class="panel page-product-box"> <div class="panel-heading"> <h4 class="page-product-heading"> <a href="#producttab-custom" data-parent="#accordion-productinfo" data-toggle="collapse" class="collapsed"><?php echo Configuration::get('PTS_CP_PHTMLTAB', $_smarty_tpl->tpl_vars['DEFAUTL_LANGUAGEID']->value); ?> </a> </h4> </div> <div id="producttab-custom" class="panel-collapse collapse"> <div class="panel-inner"> <?php echo Configuration::get('PTS_CP_PRODUCTHTML', $_smarty_tpl->tpl_vars['DEFAUTL_LANGUAGEID']->value); ?> </div> </div> </div> <?php } ?> </div> <?php if (isset($_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value) && $_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value) { ?> <?php echo $_smarty_tpl->tpl_vars['HOOK_PRODUCT_FOOTER']->value; ?> <?php } ?> <?php if (isset($_smarty_tpl->tpl_vars['packItems']->value) && count($_smarty_tpl->tpl_vars['packItems']->value) > 0) { ?> <section id="blockpack"> <h3 class="page-product-heading"><?php echo smartyTranslate(array('s' => 'Pack content'), $_smarty_tpl); ?> </h3> <?php echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['tpl_dir']->value . "./product-list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('products' => $_smarty_tpl->tpl_vars['packItems']->value), 0); ?> </section> <?php } ?> <?php } ?> <?php if (isset($_GET['ad']) && $_GET['ad']) { $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'ad')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'ad'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo htmlspecialchars($_smarty_tpl->tpl_vars['base_dir']->value . $_GET['ad'], ENT_QUOTES, 'UTF-8', true); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'ad'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); } if (isset($_GET['adtoken']) && $_GET['adtoken']) { $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'adtoken')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'adtoken'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo htmlspecialchars($_GET['adtoken'], ENT_QUOTES, 'UTF-8', true); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'adtoken'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('allowBuyWhenOutOfStock' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['allow_oosp']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('availableNowValue' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['product']->value->available_now)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('availableLaterValue' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['product']->value->available_later)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('attribute_anchor_separator' => preg_replace("%(?<!\\\\)'%", "\\'", $_smarty_tpl->tpl_vars['attribute_anchor_separator']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('attributesCombinations' => $_smarty_tpl->tpl_vars['attributesCombinations']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('currentDate' => smarty_modifier_date_format(time(), '%Y-%m-%d %H:%M:%S')), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['combinations']->value) && $_smarty_tpl->tpl_vars['combinations']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinations' => $_smarty_tpl->tpl_vars['combinations']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinationsFromController' => $_smarty_tpl->tpl_vars['combinations']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('displayDiscountPrice' => $_smarty_tpl->tpl_vars['display_discount_price']->value), $_smarty_tpl); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'upToTxt')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'upToTxt'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Up to', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'upToTxt'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); } if (isset($_smarty_tpl->tpl_vars['combinationImages']->value) && $_smarty_tpl->tpl_vars['combinationImages']->value) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('combinationImages' => $_smarty_tpl->tpl_vars['combinationImages']->value), $_smarty_tpl); } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customizationId' => $_smarty_tpl->tpl_vars['id_customization']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customizationFields' => $_smarty_tpl->tpl_vars['customizationFields']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('default_eco_tax' => floatval($_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('displayPrice' => intval($_smarty_tpl->tpl_vars['priceDisplay']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('ecotaxTax_rate' => floatval($_smarty_tpl->tpl_vars['ecotaxTax_rate']->value)), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('idDefaultImage' => intval($_smarty_tpl->tpl_vars['cover']->value['id_image_only'])), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('idDefaultImage' => 0), $_smarty_tpl); } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_ps_dir' => $_smarty_tpl->tpl_vars['img_ps_dir']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('img_prod_dir' => $_smarty_tpl->tpl_vars['img_prod_dir']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('id_product' => intval($_smarty_tpl->tpl_vars['product']->value->id)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('jqZoomEnabled' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['jqZoomEnabled']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('maxQuantityToAllowDisplayOfLastQuantityMessage' => intval($_smarty_tpl->tpl_vars['last_qties']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('minimalQuantity' => intval($_smarty_tpl->tpl_vars['product']->value->minimal_quantity)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('noTaxForThisProduct' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['no_tax']->value)), $_smarty_tpl); if (isset($_smarty_tpl->tpl_vars['customer_group_without_tax']->value)) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customerGroupWithoutTax' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['customer_group_without_tax']->value)), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('customerGroupWithoutTax' => false), $_smarty_tpl); } if (isset($_smarty_tpl->tpl_vars['group_reduction']->value)) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('groupReduction' => floatval($_smarty_tpl->tpl_vars['group_reduction']->value)), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('groupReduction' => false), $_smarty_tpl); } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('oosHookJsCodeFunctions' => array()), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productHasAttributes' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval(isset($_smarty_tpl->tpl_vars['groups']->value))), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceTaxExcluded' => floatval((($tmp = @$_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(true)) === null || $tmp === '' ? 'null' : $tmp) - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceTaxIncluded' => floatval((($tmp = @$_smarty_tpl->tpl_vars['product']->value->getPriceWithoutReduct(false)) === null || $tmp === '' ? 'null' : $tmp) - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxExcluded' => floatval($_smarty_tpl->tpl_vars['product']->value->getPrice(false, null, 6, null, false, false) - $_smarty_tpl->tpl_vars['product']->value->ecotax)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxExcl' => floatval($_smarty_tpl->tpl_vars['product']->value->getPrice(false, null, 6, null, false, false))), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productBasePriceTaxIncl' => floatval($_smarty_tpl->tpl_vars['product']->value->getPrice(true, null, 6, null, false, false))), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productReference' => htmlspecialchars($_smarty_tpl->tpl_vars['product']->value->reference, ENT_QUOTES, 'UTF-8', true)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productAvailableForOrder' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['product']->value->available_for_order)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPriceWithoutReduction' => floatval($_smarty_tpl->tpl_vars['productPriceWithoutReduction']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productPrice' => floatval($_smarty_tpl->tpl_vars['productPrice']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productUnitPriceRatio' => floatval($_smarty_tpl->tpl_vars['product']->value->unit_price_ratio)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('productShowPrice' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval(!$_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value && $_smarty_tpl->tpl_vars['product']->value->show_price)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('PS_CATALOG_MODE' => $_smarty_tpl->tpl_vars['PS_CATALOG_MODE']->value), $_smarty_tpl); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'min_item')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Please select at least one product', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'min_item'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'max_item')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'You cannot add more than %d product(s) to the product comparison', 'sprintf' => $_smarty_tpl->tpl_vars['comparator_max_item']->value, 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'max_item'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparator_max_item' => $_smarty_tpl->tpl_vars['comparator_max_item']->value), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('comparedProductsIds' => $_smarty_tpl->tpl_vars['compared_products']->value), $_smarty_tpl); if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && count($_smarty_tpl->tpl_vars['product']->value->specificPrice)) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('product_specific_price' => $_smarty_tpl->tpl_vars['product']->value->specificPrice), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('product_specific_price' => array()), $_smarty_tpl); } if ($_smarty_tpl->tpl_vars['display_qties']->value == 1 && $_smarty_tpl->tpl_vars['product']->value->quantity) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantityAvailable' => $_smarty_tpl->tpl_vars['product']->value->quantity), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantityAvailable' => 0), $_smarty_tpl); } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('quantitiesDisplayAllowed' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['display_qties']->value)), $_smarty_tpl); if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'percentage') { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_percent' => $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] * floatval(100)), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_percent' => 0), $_smarty_tpl); } if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'] && $_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction_type'] == 'amount') { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_price' => floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['reduction'])), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('reduction_price' => 0), $_smarty_tpl); } if ($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['price']) { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_price' => floatval($_smarty_tpl->tpl_vars['product']->value->specificPrice['price'])), $_smarty_tpl); } else { echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_price' => 0), $_smarty_tpl); } echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('specific_currency' => $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['boolval'][0][0]->boolval($_smarty_tpl->tpl_vars['product']->value->specificPrice && $_smarty_tpl->tpl_vars['product']->value->specificPrice['id_currency'])), $_smarty_tpl); ?> <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('stock_management' => intval($_smarty_tpl->tpl_vars['PS_STOCK_MANAGEMENT']->value)), $_smarty_tpl); echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('taxRate' => floatval($_smarty_tpl->tpl_vars['tax_rate']->value)), $_smarty_tpl); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExist')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExist'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'This combination does not exist for this product. Please select another combination.', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExist'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExistNoMore')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMore'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'This product is no longer in stock', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMore'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'doesntExistNoMoreBut')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMoreBut'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'with those attributes but is available with others.', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'doesntExistNoMoreBut'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'fieldRequired')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'fieldRequired'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Please fill in all the required fields before saving your customization.', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'fieldRequired'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'uploading_in_progress')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'uploading_in_progress'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Uploading in progress, please be patient.', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'uploading_in_progress'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_fileDefaultHtml')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileDefaultHtml'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'No file selected', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileDefaultHtml'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_fileButtonHtml')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileButtonHtml'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo smartyTranslate(array('s' => 'Choose File', 'js' => 1), $_smarty_tpl); $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_fileButtonHtml'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); $_smarty_tpl->smarty->_tag_stack[] = array('addJsDefL', array('name' => 'product_detail')); $_block_repeat = true; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_detail'), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> tab-v<?php $_block_content = ob_get_clean(); $_block_repeat = false; echo $_smarty_tpl->smarty->registered_plugins['block']['addJsDefL'][0][0]->addJsDefL(array('name' => 'product_detail'), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php } ?> </div> <?php }