// make product.tpl human readable ;)

This commit is contained in:
Kevin Granger
2013-12-05 14:42:22 +01:00
parent 0261096f4d
commit c0e8794947
+245 -141
View File
@@ -27,7 +27,6 @@
{if $errors|@count == 0} {if $errors|@count == 0}
<script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
// PrestaShop internal settings // PrestaShop internal settings
var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}'; var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}';
var currencyRate = '{$currencyRate|floatval}'; var currencyRate = '{$currencyRate|floatval}';
@@ -35,10 +34,8 @@ var currencyFormat = '{$currencyFormat|intval}';
var currencyBlank = '{$currencyBlank|intval}'; var currencyBlank = '{$currencyBlank|intval}';
var taxRate = {$tax_rate|floatval}; var taxRate = {$tax_rate|floatval};
var jqZoomEnabled = {if $jqZoomEnabled}true{else}false{/if}; var jqZoomEnabled = {if $jqZoomEnabled}true{else}false{/if};
//JS Hook //JS Hook
var oosHookJsCodeFunctions = new Array(); var oosHookJsCodeFunctions = new Array();
// Parameters // Parameters
var id_product = '{$product->id|intval}'; var id_product = '{$product->id|intval}';
var productHasAttributes = {if isset($groups)}true{else}false{/if}; var productHasAttributes = {if isset($groups)}true{else}false{/if};
@@ -50,7 +47,6 @@ var availableLaterValue = '{$product->available_later|escape:'quotes':'UTF-8'}';
var productPriceTaxExcluded = {$product->getPriceWithoutReduct(true)|default:'null'} - {$product->ecotax}; var productPriceTaxExcluded = {$product->getPriceWithoutReduct(true)|default:'null'} - {$product->ecotax};
var productBasePriceTaxExcluded = {$product->base_price} - {$product->ecotax}; var productBasePriceTaxExcluded = {$product->base_price} - {$product->ecotax};
var attribute_anchor_separator = '{$attribute_anchor_separator|addslashes}'; var attribute_anchor_separator = '{$attribute_anchor_separator|addslashes}';
var reduction_percent = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'percentage'}{$product->specificPrice.reduction*100}{else}0{/if}; var reduction_percent = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'percentage'}{$product->specificPrice.reduction*100}{else}0{/if};
var reduction_price = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'amount'}{$product->specificPrice.reduction|floatval}{else}0{/if}; var reduction_price = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'amount'}{$product->specificPrice.reduction|floatval}{else}0{/if};
var specific_price = {if $product->specificPrice AND $product->specificPrice.price}{$product->specificPrice.price}{else}0{/if}; var specific_price = {if $product->specificPrice AND $product->specificPrice.price}{$product->specificPrice.price}{else}0{/if};
@@ -72,9 +68,11 @@ var productShowPrice = '{if !$PS_CATALOG_MODE}{$product->show_price}{else}0{/if}
var productUnitPriceRatio = '{$product->unit_price_ratio}'; var productUnitPriceRatio = '{$product->unit_price_ratio}';
var idDefaultImage = {if isset($cover.id_image_only)}{$cover.id_image_only}{else}0{/if}; var idDefaultImage = {if isset($cover.id_image_only)}{$cover.id_image_only}{else}0{/if};
var stock_management = {$stock_management|intval}; var stock_management = {$stock_management|intval};
{if !isset($priceDisplayPrecision)} {if !isset($priceDisplayPrecision)}
{assign var='priceDisplayPrecision' value=2} {assign var='priceDisplayPrecision' value=2}
{/if} {/if}
{if !$priceDisplay || $priceDisplay == 2} {if !$priceDisplay || $priceDisplay == 2}
{assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}
{assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)}
@@ -83,10 +81,8 @@ var stock_management = {$stock_management|intval};
{assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)}
{/if} {/if}
var productPriceWithoutReduction = '{$productPriceWithoutReduction}'; var productPriceWithoutReduction = '{$productPriceWithoutReduction}';
var productPrice = '{$productPrice}'; var productPrice = '{$productPrice}';
// Customizable field // Customizable field
var img_ps_dir = '{$img_ps_dir}'; var img_ps_dir = '{$img_ps_dir}';
var customizationFields = new Array(); var customizationFields = new Array();
@@ -98,7 +94,6 @@ var customizationFields = new Array();
customizationFields[{$smarty.foreach.customizationFields.index|intval}][0] = '{if $field.type|intval == 0}img{$imgIndex++}{else}textField{$textFieldIndex++}{/if}'; customizationFields[{$smarty.foreach.customizationFields.index|intval}][0] = '{if $field.type|intval == 0}img{$imgIndex++}{else}textField{$textFieldIndex++}{/if}';
customizationFields[{$smarty.foreach.customizationFields.index|intval}][1] = {if $field.type|intval == 0 && isset($pictures.$key) && $pictures.$key}2{else}{$field.required|intval}{/if}; customizationFields[{$smarty.foreach.customizationFields.index|intval}][1] = {if $field.type|intval == 0 && isset($pictures.$key) && $pictures.$key}2{else}{$field.required|intval}{/if};
{/foreach} {/foreach}
// Images // Images
var img_prod_dir = '{$img_prod_dir}'; var img_prod_dir = '{$img_prod_dir}';
var combinationImages = new Array(); var combinationImages = new Array();
@@ -113,12 +108,12 @@ var combinationImages = new Array();
{/if} {/if}
combinationImages[0] = new Array(); combinationImages[0] = new Array();
{if isset($images)} {if isset($images)}
{foreach from=$images item='image' name='f_defaultImages'} {foreach from=$images item='image' name='f_defaultImages'}
combinationImages[0][{$smarty.foreach.f_defaultImages.index}] = {$image.id_image}; combinationImages[0][{$smarty.foreach.f_defaultImages.index}] = {$image.id_image};
{/foreach} {/foreach}
{/if} {/if}
// Translations // Translations
var doesntExist = '{l s='This combination does not exist for this product. Please select another combination.' js=1}'; var doesntExist = '{l s='This combination does not exist for this product. Please select another combination.' js=1}';
var doesntExistNoMore = '{l s='This product is no longer in stock' js=1}'; var doesntExistNoMore = '{l s='This product is no longer in stock' js=1}';
@@ -154,14 +149,18 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving
attributesCombinations.push(tabInfos); attributesCombinations.push(tabInfos);
{/foreach} {/foreach}
{/if} {/if}
var isLoggedWishlist = {if $logged}true{else}false{/if}; var isLoggedWishlist = {if $logged}true{else}false{/if};
var contentOnly = {if $content_only}true{else}false{/if} var contentOnly = {if $content_only}true{else}false{/if}
//]]> //]]>
</script> </script>
<div id="primary_block" class="row" itemscope itemtype="http://schema.org/Product"> <div id="primary_block" class="row" itemscope itemtype="http://schema.org/Product">
{if !$content_only}
<div class="container">
{if !$content_only}<div class="container"><div class="top-hr"></div></div>{/if} <div class="top-hr"></div>
</div>
{/if}
{if isset($adminActionDisplay) && $adminActionDisplay} {if isset($adminActionDisplay) && $adminActionDisplay}
<div id="admin-action"> <div id="admin-action">
@@ -171,7 +170,6 @@ var contentOnly = {if $content_only}true{else}false{/if}
<input type="submit" value="{l s='Back'}" class="exclusive" onclick="submitPublishProduct('{$base_dir}{$smarty.get.ad|escape:'html':'UTF-8'}', 1, '{$smarty.get.adtoken|escape:'html':'UTF-8'}')"/> <input type="submit" value="{l s='Back'}" class="exclusive" onclick="submitPublishProduct('{$base_dir}{$smarty.get.ad|escape:'html':'UTF-8'}', 1, '{$smarty.get.adtoken|escape:'html':'UTF-8'}')"/>
</p> </p>
<p id="admin-action-result"></p> <p id="admin-action-result"></p>
</p>
</div> </div>
{/if} {/if}
@@ -180,17 +178,14 @@ var contentOnly = {if $content_only}true{else}false{/if}
{$confirmation} {$confirmation}
</p> </p>
{/if} {/if}
<!-- right infos--> <!-- right infos-->
<div id="pb-right-column" class="col-xs-12 col-sm-4 col-md-5"> <div id="pb-right-column" class="col-xs-12 col-sm-4 col-md-5">
<!-- product img--> <!-- product img-->
<div id="image-block" class="clearfix"> <div id="image-block" class="clearfix">
{if $product->on_sale} {if $product->on_sale}
<span class="sale-box"><span class="sale-label">{l s='Sale!'}</span></span> <span class="sale-box">
<span class="sale-label">{l s='Sale!'}</span>
</span>
{elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice}
<span class="discount">{l s='Reduced price!'}</span> <span class="discount">{l s='Reduced price!'}</span>
{/if} {/if}
@@ -198,25 +193,60 @@ var contentOnly = {if $content_only}true{else}false{/if}
{if $have_image} {if $have_image}
<span id="view_full_size"> <span id="view_full_size">
{if $jqZoomEnabled && $have_image && !$content_only} {if $jqZoomEnabled && $have_image && !$content_only}
<a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html'}"> <a
<img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}"/> class="jqzoom"
title="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}"
rel="gal1"
href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html'}">
<img
itemprop="image"
src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html'}"
title="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}"
alt="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}"/>
</a> </a>
{else} {else}
<img itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}" id="bigpic" width="{$largeSize.width}" height="{$largeSize.height}"/> <img
{if !$content_only}<span class="span_link">{l s='View larger'}</span>{/if} id="bigpic"
itemprop="image"
src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')|escape:'html'}"
title="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}"
alt="{if !empty($cover.legend)}{$cover.legend|escape:'html'}{else}{$product->name|escape:'html'}{/if}"
width="{$largeSize.width}"
height="{$largeSize.height}"/>
{if !$content_only}
<span class="span_link">{l s='View larger'}</span>
{/if}
{/if} {/if}
</span> </span>
{else} {else}
<span id="view_full_size"> <span id="view_full_size">
<img itemprop="image" src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg" id="bigpic" alt="" title="{$product->name|escape:'html':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" /> <img
{if !$content_only}<span class="span_link">{l s='View larger'}</span>{/if} itemprop="image"
src="{$img_prod_dir}{$lang_iso}-default-large_default.jpg"
id="bigpic"
alt=""
title="{$product->name|escape:'html':'UTF-8'}"
width="{$largeSize.width}"
height="{$largeSize.height}"/>
{if !$content_only}
<span class="span_link">
{l s='View larger'}
</span> </span>
{/if} {/if}
</div> </span>
{/if}
</div> <!-- end image-block -->
{if isset($images) && count($images) > 0} {if isset($images) && count($images) > 0}
<!-- thumbnails --> <!-- thumbnails -->
<div id="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}"> <div id="views_block" class="clearfix {if isset($images) && count($images) < 2}hidden{/if}">
{if isset($images) && count($images) > 3}<span class="view_scroll_spacer"><a id="view_scroll_left" class="" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Previous'}</a></span>{/if} {if isset($images) && count($images) > 3}
<span class="view_scroll_spacer">
<a id="view_scroll_left" class="" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">
{l s='Previous'}
</a>
</span>
{/if}
<div id="thumbs_list"> <div id="thumbs_list">
<ul id="thumbs_list_frame"> <ul id="thumbs_list_frame">
{if isset($images)} {if isset($images)}
@@ -228,26 +258,55 @@ var contentOnly = {if $content_only}true{else}false{/if}
{assign var=imageTitlte value=$product->name|escape:'html'} {assign var=imageTitlte value=$product->name|escape:'html'}
{/if} {/if}
<li id="thumbnail_{$image.id_image}"{if $smarty.foreach.thumbnails.last} class="last"{/if}> <li id="thumbnail_{$image.id_image}"{if $smarty.foreach.thumbnails.last} class="last"{/if}>
<a {if $jqZoomEnabled && $have_image && !$content_only} href="javascript:void(0);" rel="{literal}{{/literal}gallery: 'gal1', smallimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')|escape:'html'}',largeimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html'}'{literal}}{/literal}" {else} href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html'}" rel="other-views" class="thickbox{if $smarty.foreach.thumbnails.first} shown{/if}"{/if} title="{$imageTitlte}"> <a
<img class="img-responsive" id="thumb_{$image.id_image}" src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium_default')|escape:'html'}" alt="{$imageTitlte}" title="{$imageTitlte}" height="{$mediumSize.height}" width="{$mediumSize.width}" itemprop="image" /> {if $jqZoomEnabled && $have_image && !$content_only}
href="javascript:void(0);"
rel="{literal}{{/literal}gallery: 'gal1', smallimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')|escape:'html'}',largeimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html'}'{literal}}{/literal}"
{else}
href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html'}"
rel="other-views"
class="thickbox{if $smarty.foreach.thumbnails.first} shown{/if}"
{/if}
title="{$imageTitlte}">
<img
class="img-responsive"
id="thumb_{$image.id_image}"
src="{$link->getImageLink($product->link_rewrite, $imageIds, 'medium_default')|escape:'html'}"
alt="{$imageTitlte}"
title="{$imageTitlte}"
height="{$mediumSize.height}"
width="{$mediumSize.width}"
itemprop="image" />
</a> </a>
</li> </li>
{/foreach} {/foreach}
{/if} {/if}
</ul> </ul>
</div> </div> <!-- end thumbs_list -->
{if isset($images) && count($images) > 3}<a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">{l s='Next'}</a>{/if} {if isset($images) && count($images) > 3}
</div> <a id="view_scroll_right" title="{l s='Other views'}" href="javascript:{ldelim}{rdelim}">
{l s='Next'}
</a>
{/if}
</div> <!-- end views-block -->
<!-- end thumbnails -->
{/if} {/if}
{if isset($images) && count($images) > 1}<p class="resetimg clear"><span id="wrapResetImages" style="display: none;">
<a id="resetImages" href="{$link->getProductLink($product)|escape:'html'}" onclick="$('span#wrapResetImages').hide('slow');return (false);"><i class="icon-repeat"></i>{l s='Display all pictures'}</a></span></p>{/if}
</div> {if isset($images) && count($images) > 1}
<p class="resetimg clear">
<span id="wrapResetImages" style="display: none;">
<a id="resetImages" href="{$link->getProductLink($product)|escape:'html'}" onclick="$('span#wrapResetImages').hide('slow');return (false);">
<i class="icon-repeat"></i>
{l s='Display all pictures'}
</a>
</span>
</p>
{/if}
</div> <!-- end pb-right-column -->
<!-- end right infos--> <!-- end right infos-->
<!---- left infos----> <!-- left infos -->
<div id="pb-left-column" class="col-xs-12 col-sm-4"> <div id="pb-left-column" class="col-xs-12 col-sm-4">
{if $product->online_only} {if $product->online_only}
<p class="online_only">{l s='Online only'}</p> <p class="online_only">{l s='Online only'}</p>
{/if} {/if}
@@ -262,11 +321,15 @@ var contentOnly = {if $content_only}true{else}false{/if}
{if $product->description_short} {if $product->description_short}
<div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div> <div id="short_description_content" class="rte align_justify" itemprop="description">{$product->description_short}</div>
{/if} {/if}
{if $product->description} {if $product->description}
<p class="buttons_bottom_block"><a href="javascript:{ldelim}{rdelim}" class="button">{l s='More details'}</a></p> <p class="buttons_bottom_block">
<a href="javascript:{ldelim}{rdelim}" class="button">
{l s='More details'}
</a>
</p>
{/if} {/if}
<!--{if $packItems|@count > 0} <!--{if $packItems|@count > 0}
<div class="short_description_pack"> <div class="short_description_pack">
<h3>{l s='Pack content'}</h3> <h3>{l s='Pack content'}</h3>
{foreach from=$packItems item=packItem} {foreach from=$packItems item=packItem}
@@ -277,13 +340,13 @@ var contentOnly = {if $content_only}true{else}false{/if}
</div> </div>
{/foreach} {/foreach}
</div> </div>
{/if}--> {/if}-->
</div> </div> <!-- end short_description_block -->
{/if} {/if}
<!-- number of item in stock -->
{if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)}
<!-- number of item in stock -->
<p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}>
<span id="quantityAvailable">{$product->quantity|intval}</span> <span id="quantityAvailable">{$product->quantity|intval}</span>
<span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span>
@@ -291,7 +354,6 @@ var contentOnly = {if $content_only}true{else}false{/if}
</p> </p>
{/if} {/if}
<!-- availability --> <!-- availability -->
<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
{*<span id="availability_label">{l s='Availability:'}</span>*} {*<span id="availability_label">{l s='Availability:'}</span>*}
@@ -305,8 +367,6 @@ var contentOnly = {if $content_only}true{else}false{/if}
<span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span>
</p> </p>
<!-- Out of stock hook --> <!-- Out of stock hook -->
<div id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}> <div id="oosHook"{if $product->quantity > 0} style="display: none;"{/if}>
{$HOOK_PRODUCT_OOS} {$HOOK_PRODUCT_OOS}
@@ -319,14 +379,24 @@ var contentOnly = {if $content_only}true{else}false{/if}
<div class="clear"></div> <div class="clear"></div>
<ul id="color_to_pick_list" class="clearfix"> <ul id="color_to_pick_list" class="clearfix">
{foreach from=$colors key='id_attribute' item='color'} {foreach from=$colors key='id_attribute' item='color'}
<li><a id="color_{$id_attribute|intval}" class="color_pick" style="background: {$color.value};" onclick="updateColorSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');" title="{$color.name}">{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$color.name}" width="20" height="20" />{/if}</a></li> <li>
<a
id="color_{$id_attribute|intval}"
class="color_pick"
style="background: {$color.value};"
onclick="updateColorSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');"
title="{$color.name}">
{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}
<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$color.name}" width="20" height="20" />
{/if}
</a>
</li>
{/foreach} {/foreach}
</ul> </ul>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
{/if} *} {/if} *}
{if ($product->show_price AND !isset($restricted_country_mode)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} {if ($product->show_price AND !isset($restricted_country_mode)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)}
<!-- add to cart form--> <!-- add to cart form-->
<form id="buy_block" {if $PS_CATALOG_MODE AND !isset($groups) AND $product->quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')|escape:'html'}" method="post"> <form id="buy_block" {if $PS_CATALOG_MODE AND !isset($groups) AND $product->quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')|escape:'html'}" method="post">
@@ -339,28 +409,31 @@ var contentOnly = {if $content_only}true{else}false{/if}
</p> </p>
</form> </form>
{/if} {/if}
{if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if} {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
{if !$content_only} {if !$content_only}
<!-- usefull links--> <!-- usefull links-->
<ul id="usefull_link_block" class="clearfix"> <ul id="usefull_link_block" class="clearfix">
{if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
<li class="print"><a href="javascript:print();">{l s='Print'}</a></li> <li class="print">
<a href="javascript:print();">
{l s='Print'}
</a>
</li>
{if $have_image && !$jqZoomEnabled}{/if} {if $have_image && !$jqZoomEnabled}{/if}
</ul> </ul>
{/if} {/if}
</div> </div>
<!-- end left infos--> <!-- end left infos-->
<!-- pb-right-column1--> <!-- pb-right-column1-->
<div id="pb-right-column1" class="col-xs-12 col-sm-4 col-md-3"> <div id="pb-right-column1" class="col-xs-12 col-sm-4 col-md-3">
<div class="box-info-product"> <div class="box-info-product">
<div class="content_prices clearfix"> <div class="content_prices clearfix">
<!-- prices -->
{if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
<!-- prices -->
<div class="price"> <div class="price">
<p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<link itemprop="availability" {if $product->quantity <= 0}href="http://schema.org/OutOfStock"{else}href="http://schema.org/InStock"{/if}> <link itemprop="availability" {if $product->quantity <= 0}href="http://schema.org/OutOfStock"{else}href="http://schema.org/InStock"{/if}>
@@ -373,8 +446,11 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if} {/if}
</p> </p>
<p id="reduction_percent" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}><span id="reduction_percent_display">{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}</span></p> <p id="reduction_percent" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>
<span id="reduction_percent_display">
{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}
</span>
</p>
<p id="old_price"{if !$product->specificPrice || !$product->specificPrice.reduction} class="hidden"{/if}> <p id="old_price"{if !$product->specificPrice || !$product->specificPrice.reduction} class="hidden"{/if}>
{if $priceDisplay >= 0 && $priceDisplay <= 2} {if $priceDisplay >= 0 && $priceDisplay <= 2}
@@ -382,11 +458,15 @@ var contentOnly = {if $content_only}true{else}false{/if}
<!-- {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if} --> <!-- {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if} -->
{/if} {/if}
</p> </p>
{if $priceDisplay == 2} {if $priceDisplay == 2}
<br /> <br />
<span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span>&nbsp;{l s='tax excl.'}</span> <span id="pretaxe_price">
<span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span>
{l s='tax excl.'}
</span>
{/if} {/if}
</div> </div> <!-- end prices -->
<p id="reduction_amount" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|intval ==0} style="display:none"{/if}> <p id="reduction_amount" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|intval ==0} style="display:none"{/if}>
<span id="reduction_amount_display"> <span id="reduction_amount_display">
@@ -398,8 +478,8 @@ var contentOnly = {if $content_only}true{else}false{/if}
{if $packItems|@count && $productPrice < $product->getNoPackPrice()} {if $packItems|@count && $productPrice < $product->getNoPackPrice()}
<p class="pack_price">{l s='Instead of'} <span style="text-decoration: line-through;">{convertPrice price=$product->getNoPackPrice()}</span></p> <p class="pack_price">{l s='Instead of'} <span style="text-decoration: line-through;">{convertPrice price=$product->getNoPackPrice()}</span></p>
{/if} {/if}
{if $product->ecotax != 0} {if $product->ecotax != 0}
<p class="price-ecotax">{l s='Include'} <span id="ecotax_price_display">{if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if}</span> {l s='For green tax'} <p class="price-ecotax">{l s='Include'} <span id="ecotax_price_display">{if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if}</span> {l s='For green tax'}
{if $product->specificPrice AND $product->specificPrice.reduction} {if $product->specificPrice AND $product->specificPrice.reduction}
@@ -407,31 +487,35 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if} {/if}
</p> </p>
{/if} {/if}
{if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000}
{math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price}
<p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'html':'UTF-8'}</p> <p class="unit-price"><span id="unit_price_display">{convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'html':'UTF-8'}</p>
{/if} {/if}
{*close if for show price*} {/if} {*close if for show price*}
{/if}
<div class="clear"></div> <div class="clear"></div>
</div> </div> <!-- end content_prices -->
<div class="product_attributes clearfix"> <div class="product_attributes clearfix">
<!-- quantity wanted --> <!-- quantity wanted -->
<p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <p id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
<label>{l s='Quantity:'}</label> <label>{l s='Quantity:'}</label>
<input
type="text"
<input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}" size="2" maxlength="3" {if $product->minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> name="qty"
<a href="#" rel="qty" class="btn btn-default button-minus product_quantity_down"><span><i class="icon-minus"></i></span></a> id="quantity_wanted"
<a href="#" rel="qty" class="btn btn-default button-plus product_quantity_up "><span><i class="icon-plus"></i></span></a> class="text"
value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}"
maxlength="3"
{if $product->minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} />
<a href="#" rel="qty" class="btn btn-default button-minus product_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
<a href="#" rel="qty" class="btn btn-default button-plus product_quantity_up ">
<span><i class="icon-plus"></i></span>
</a>
<span class="clearfix"></span> <span class="clearfix"></span>
</p> </p>
<!-- minimal quantity wanted --> <!-- minimal quantity wanted -->
<p id="minimal_quantity_wanted_p"{if $product->minimal_quantity <= 1 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <p id="minimal_quantity_wanted_p"{if $product->minimal_quantity <= 1 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>
{l s='This product is not sold individually. You must select at least'} <b id="minimal_quantity_label">{$product->minimal_quantity}</b> {l s='quantity for this product.'} {l s='This product is not sold individually. You must select at least'} <b id="minimal_quantity_label">{$product->minimal_quantity}</b> {l s='quantity for this product.'}
@@ -485,65 +569,58 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/foreach} {/foreach}
</ul> </ul>
{/if} {/if}
</div> </div> <!-- end attribute_list -->
</fieldset> </fieldset>
{/if} {/if}
{/foreach} {/foreach}
</div> </div> <!-- end attributes -->
{/if} {/if}
</div> <!-- end product_attributes -->
</div>
<div class="box-cart-bottom"> <div class="box-cart-bottom">
<p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block"> <p id="add_to_cart" {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}style="display:none"{/if} class="buttons_bottom_block">
<button type="submit" name="Submit" class="exclusive"><span>{l s='Add to cart'}</span> </button> <button type="submit" name="Submit" class="exclusive">
<span>{l s='Add to cart'}</span>
</button>
</p> </p>
{if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}<strong></strong> {if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}<strong></strong>
</div> <!-- end box-cart-bottom -->
</div> <!-- end box-info-product -->
</div> </div> <!-- end pb-right-column1-->
</div> <!-- end primary_block -->
</div>
</div>
<!-- end pb-right-column1-->
</div>
{if !$content_only} {if !$content_only}
<!-- More info -->
{if $product->description} {if $product->description}
<!-- More info -->
<section class="page-product-box"> <section class="page-product-box">
<h3 class="page-product-heading">{l s='More info'}</h3>{/if} <h3 class="page-product-heading">{l s='More info'}</h3>{/if}
{if isset($product) && $product->description} {if isset($product) && $product->description}
<!-- full description --> <!-- full description -->
<div class="rte">{$product->description}</div> <div class="rte">{$product->description}</div>
</section> </section>
{/if}
<!--end More info --> <!--end More info -->
{/if}
<!-- Data sheet -->
{if $features} {if $features}
<!-- Data sheet -->
<section class="page-product-box"> <section class="page-product-box">
<h3 class="page-product-heading">{l s='Data sheet'}</h3>{/if} <h3 class="page-product-heading">{l s='Data sheet'}</h3>
{/if}
{if isset($features) && $features} {if isset($features) && $features}
<table class="table-data-sheet"> <table class="table-data-sheet">
{foreach from=$features item=feature} {foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}"> <tr class="{cycle values="odd,even"}">
{if isset($feature.value)} {if isset($feature.value)}
<td>{$feature.name|escape:'html':'UTF-8'}</td><td> {$feature.value|escape:'html':'UTF-8'}</td> <td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if} {/if}
</tr> </tr>
{/foreach} {/foreach}
</table> </table>
</section> </section>
{/if}
<!--end Data sheet --> <!--end Data sheet -->
{/if}
<!--HOOK_PRODUCT_TAB --> <!--HOOK_PRODUCT_TAB -->
<section class="page-product-box"> <section class="page-product-box">
@@ -552,12 +629,10 @@ var contentOnly = {if $content_only}true{else}false{/if}
</section> </section>
<!--end HOOK_PRODUCT_TAB --> <!--end HOOK_PRODUCT_TAB -->
<!--Accessories -->
{if isset($accessories) AND $accessories} {if isset($accessories) AND $accessories}
<!--Accessories -->
<section class="page-product-box"> <section class="page-product-box">
<h3 class="page-product-heading">{l s='Accessories'}</h3> <h3 class="page-product-heading">{l s='Accessories'}</h3>
<!-- accessories -->
<div class="block products_block accessories-block clearfix"> <div class="block products_block accessories-block clearfix">
<div class="block_content"> <div class="block_content">
<ul id="bxslider" class="bxslider clearfix"> <ul id="bxslider" class="bxslider clearfix">
@@ -565,22 +640,39 @@ var contentOnly = {if $content_only}true{else}false{/if}
{if ($accessory.allow_oosp || $accessory.quantity_all_versions > 0 || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)} {if ($accessory.allow_oosp || $accessory.quantity_all_versions > 0 || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)}
{assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)}
<li class="item product-box ajax_block_product{if $smarty.foreach.accessories_list.first} first_item{elseif $smarty.foreach.accessories_list.last} last_item{else} item{/if} product_accessories_description"> <li class="item product-box ajax_block_product{if $smarty.foreach.accessories_list.first} first_item{elseif $smarty.foreach.accessories_list.last} last_item{else} item{/if} product_accessories_description">
<div class="product_desc"> <div class="product_desc">
<a href="{$accessoryLink|escape:'html':'UTF-8'}" title="{$accessory.legend|escape:'html':'UTF-8'}" class="product-image product_image"><img src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'home_default')|escape:'html'}" alt="{$accessory.legend|escape:'html':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" class="lazyOwl" /></a> <a
href="{$accessoryLink|escape:'html':'UTF-8'}"
title="{$accessory.legend|escape:'html':'UTF-8'}"
class="product-image product_image">
<img
class="lazyOwl"
src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'home_default')|escape:'html'}"
alt="{$accessory.legend|escape:'html':'UTF-8'}"
width="{$homeSize.width}"
height="{$homeSize.height}"
/>
</a>
<div class="block_description"> <div class="block_description">
<a href="{$accessoryLink|escape:'html':'UTF-8'}" title="{l s='More'}" class="product_description">{$accessory.description_short|strip_tags|truncate:25:'...'}</a> <a href="{$accessoryLink|escape:'html':'UTF-8'}" title="{l s='More'}" class="product_description">
{$accessory.description_short|strip_tags|truncate:25:'...'}
</a>
</div> </div>
</div> </div>
<div class="s_title_block"> <div class="s_title_block">
<h5 class="product-name"><a href="{$accessoryLink|escape:'html':'UTF-8'}"> {$accessory.name|truncate:20:'...':true|escape:'html':'UTF-8'}</a></h5> <h5 class="product-name">
<a href="{$accessoryLink|escape:'html':'UTF-8'}">
{$accessory.name|truncate:20:'...':true|escape:'html':'UTF-8'}
</a>
</h5>
{if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
<span class="price">{if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}</span>{/if} <span class="price">
{if $priceDisplay != 1}
{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}
{/if}
</span>
{/if}
</div> </div>
<div class="clearfix" style="margin-top:5px"> <div class="clearfix" style="margin-top:5px">
{if !$PS_CATALOG_MODE && ($accessory.allow_oosp || $accessory.quantity > 0)} {if !$PS_CATALOG_MODE && ($accessory.allow_oosp || $accessory.quantity > 0)}
<div> <div>
@@ -596,11 +688,8 @@ var contentOnly = {if $content_only}true{else}false{/if}
</div> </div>
</div> </div>
</div> </div>
{/if} {/if}
</div> </div>
</li> </li>
{/if} {/if}
{/foreach} {/foreach}
@@ -608,11 +697,11 @@ var contentOnly = {if $content_only}true{else}false{/if}
</div> </div>
</div> </div>
</section> </section>
{/if}
<!--end Accessories --> <!--end Accessories -->
{/if}
{if (isset($quantity_discounts) && count($quantity_discounts) > 0)} {if (isset($quantity_discounts) && count($quantity_discounts) > 0)}
<!-- quantity discount --> <!-- quantity discount -->
<section class="page-product-box"> <section class="page-product-box">
<h3 class="page-product-heading">{l s='Volume discounts'}</h3> <h3 class="page-product-heading">{l s='Volume discounts'}</h3>
@@ -653,42 +742,40 @@ var contentOnly = {if $content_only}true{else}false{/if}
</tbody> </tbody>
</table> </table>
</div> </div>
</section>
{/if} {/if}
</section>
{if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if}
<!-- description and features --> <!-- description and features -->
{if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || isset($product) && $product->customizable} {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || isset($product) && $product->customizable}
<!--Download -->
{if isset($attachments) && $attachments} {if isset($attachments) && $attachments}
<!--Download -->
<section class="page-product-box"> <section class="page-product-box">
<h3 class="page-product-heading">{l s='Download'}</h3> <h3 class="page-product-heading">{l s='Download'}</h3>
{foreach from=$attachments item=attachment} {foreach from=$attachments item=attachment}
<a href="{$link->getPageLink('attachment', true, NULL, "id_attachment={$attachment.id_attachment}")|escape:'html'}"><span>{$attachment.name|escape:'html':'UTF-8'}</span></a><br />{$attachment.description|escape:'html':'UTF-8'} <a href="{$link->getPageLink('attachment', true, NULL, "id_attachment={$attachment.id_attachment}")|escape:'html'}">
<span>{$attachment.name|escape:'html':'UTF-8'}</span>
</a>
<br />
{$attachment.description|escape:'html':'UTF-8'}
{/foreach} {/foreach}
</section> </section>
{/if}
<!--end Download --> <!--end Download -->
{/if}
<!--Customization -->
{if isset($product) && $product->customizable} {if isset($product) && $product->customizable}
<!--Customization -->
<section class="page-product-box"> <section class="page-product-box">
<h3 class="page-product-heading">{l s='Product customization'}</h3> <h3 class="page-product-heading">{l s='Product customization'}</h3>
<!-- Customizable products --> <!-- Customizable products -->
<form method="post" action="{$customizationFormTarget}" enctype="multipart/form-data" id="customizationForm" class="clearfix"> <form method="post" action="{$customizationFormTarget}" enctype="multipart/form-data" id="customizationForm" class="clearfix">
<p class="infoCustomizable"> <p class="infoCustomizable">
{l s='After saving your customized product, remember to add it to your cart.'} {l s='After saving your customized product, remember to add it to your cart.'}
{if $product->uploadable_files}<br />{l s='Allowed file formats are: GIF, JPG, PNG'}{/if} {if $product->uploadable_files}
<br />
{l s='Allowed file formats are: GIF, JPG, PNG'}{/if}
</p> </p>
{if $product->uploadable_files|intval} {if $product->uploadable_files|intval}
<div class="customizableProductsFile"> <div class="customizableProductsFile">
@@ -707,7 +794,14 @@ var contentOnly = {if $content_only}true{else}false{/if}
</div> </div>
{/if} {/if}
<div class="customizationUploadBrowse form-group"> <div class="customizationUploadBrowse form-group">
<label class="customizationUploadBrowseDescription">{if !empty($field.name)}{$field.name}{else}{l s='Please select an image file from your computer'}{/if}{if $field.required}<sup>*</sup>{/if}</label> <label class="customizationUploadBrowseDescription">
{if !empty($field.name)}
{$field.name}
{else}
{l s='Please select an image file from your computer'}
{/if}
{if $field.required}<sup>*</sup>{/if}
</label>
<input type="file" name="file{$field.id_customization_field}" id="img{$customizationField}" class="form-control customization_block_input {if isset($pictures.$key)}filled{/if}" /> <input type="file" name="file{$field.id_customization_field}" id="img{$customizationField}" class="form-control customization_block_input {if isset($pictures.$key)}filled{/if}" />
</div> </div>
</li> </li>
@@ -717,6 +811,7 @@ var contentOnly = {if $content_only}true{else}false{/if}
</ul> </ul>
</div> </div>
{/if} {/if}
{if $product->text_fields|intval} {if $product->text_fields|intval}
<div class="customizableProductsText"> <div class="customizableProductsText">
<h5 class="product-heading-h5">{l s='Text'}</h5> <h5 class="product-heading-h5">{l s='Text'}</h5>
@@ -725,8 +820,18 @@ var contentOnly = {if $content_only}true{else}false{/if}
{foreach from=$customizationFields item='field' name='customizationFields'} {foreach from=$customizationFields item='field' name='customizationFields'}
{if $field.type == 1} {if $field.type == 1}
<li class="customizationUploadLine{if $field.required} required{/if}"> <li class="customizationUploadLine{if $field.required} required{/if}">
<label for ="textField{$customizationField}">{assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if !empty($field.name)}{$field.name}{/if}{if $field.required}<sup>*</sup>{/if}</label> <label for ="textField{$customizationField}">
<textarea name="textField{$field.id_customization_field}" class="form-control" id="textField{$customizationField}" rows="3" cols="20" class="customization_block_input">{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if} </textarea> {assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field}
{if !empty($field.name)}
{$field.name}
{/if}
{if $field.required}<sup>*</sup>{/if}
</label>
<textarea name="textField{$field.id_customization_field}" class="form-control" id="textField{$customizationField}" rows="3" cols="20" class="customization_block_input">
{if isset($textFields.$key)}
{$textFields.$key|stripslashes}
{/if}
</textarea>
</li> </li>
{counter} {counter}
{/if} {/if}
@@ -734,35 +839,36 @@ var contentOnly = {if $content_only}true{else}false{/if}
</ul> </ul>
</div> </div>
{/if} {/if}
<p id="customizedDatas"> <p id="customizedDatas">
<input type="hidden" name="quantityBackup" id="quantityBackup" value="" /> <input type="hidden" name="quantityBackup" id="quantityBackup" value="" />
<input type="hidden" name="submitCustomizedDatas" value="1" /> <input type="hidden" name="submitCustomizedDatas" value="1" />
<!--<input type="button" class="button btn btn-default button button-small" value="{l s='Save'}" onclick="javascript:saveCustomization()" />--> <!--<input type="button" class="button btn btn-default button button-small" value="{l s='Save'}" onclick="javascript:saveCustomization()" />-->
<button class="button btn btn-default button button-small" onclick="javascript:saveCustomization()" /><span>{l s='Save'}</span></button> <button class="button btn btn-default button button-small" onclick="javascript:saveCustomization()">
<span id="ajax-loader" style="display:none"><img src="{$img_ps_dir}loader.gif" alt="loader" /></span> <span>{l s='Save'}</span>
</button>
<span id="ajax-loader" style="display:none">
<img src="{$img_ps_dir}loader.gif" alt="loader" />
</span>
</p> </p>
</form> </form>
<p class="clear required"><sup>*</sup> {l s='required fields'}</p> <p class="clear required"><sup>*</sup> {l s='required fields'}</p>
</section> </section>
{/if}
<!--end Customization --> <!--end Customization -->
{/if} {/if}
{/if}
{if isset($packItems) && $packItems|@count > 0} {if isset($packItems) && $packItems|@count > 0}
<section id="blockpack"> <section id="blockpack">
<h3 class="page-product-heading">{l s='Pack content'}</h3> <h3 class="page-product-heading">{l s='Pack content'}</h3>
{include file="$tpl_dir./product-list.tpl" products=$packItems} {include file="$tpl_dir./product-list.tpl" products=$packItems}
</section> </section>
{/if} {/if}
{/if}
{/if}
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
$('#bxslider').bxSlider({ $('#bxslider').bxSlider({
minSlides: 1, minSlides: 1,
maxSlides: 6, maxSlides: 6,
@@ -775,8 +881,6 @@ $('#bxslider').bxSlider({
infiniteLoop:false, infiniteLoop:false,
hideControlOnEnd: true hideControlOnEnd: true
}); });
}); });
</script> </script>
{/if} {/if}