PageRenderTime 336ms CodeModel.GetById 66ms app.highlight 229ms RepoModel.GetById 22ms app.codeStats 1ms

/tools/smarty/compile/0bcc4f733e3111ea5f31239e33cebce82446c81b.file.product.tpl.php

http://marocmall.googlecode.com/
PHP | 886 lines | 831 code | 45 blank | 10 comment | 133 complexity | 282a256a588947dedb2ce8142a0a89b3 MD5 | raw file
  1<?php /* Smarty version Smarty-3.0.7, created on 2011-12-27 11:35:24
  2         compiled from "C:\D\prestashoplf\prestashop/themes/prestashop/product.tpl" */ ?>
  3<?php /*%%SmartyHeaderCode:246174ef9ad7c57aab3-89333898%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4$_smarty_tpl->decodeProperties(array (
  5  'file_dependency' => 
  6  array (
  7    '0bcc4f733e3111ea5f31239e33cebce82446c81b' => 
  8    array (
  9      0 => 'C:\\D\\prestashoplf\\prestashop/themes/prestashop/product.tpl',
 10      1 => 1308061904,
 11      2 => 'file',
 12    ),
 13  ),
 14  'nocache_hash' => '246174ef9ad7c57aab3-89333898',
 15  'function' => 
 16  array (
 17  ),
 18  'has_nocache_code' => false,
 19)); /*/%%SmartyHeaderCode%%*/?>
 20<?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
 21if (!is_callable('smarty_modifier_date_format')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.date_format.php';
 22if (!is_callable('smarty_function_math')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\function.math.php';
 23if (!is_callable('smarty_function_counter')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\function.counter.php';
 24?>
 25
 26<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 27 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
 28<?php if (count($_smarty_tpl->getVariable('errors')->value)==0){?>
 29<script type="text/javascript">
 30// <![CDATA[
 31
 32// PrestaShop internal settings
 33var currencySign = '<?php echo html_entity_decode($_smarty_tpl->getVariable('currencySign')->value,2,"UTF-8");?>
 34';
 35var currencyRate = '<?php echo floatval($_smarty_tpl->getVariable('currencyRate')->value);?>
 36';
 37var currencyFormat = '<?php echo intval($_smarty_tpl->getVariable('currencyFormat')->value);?>
 38';
 39var currencyBlank = '<?php echo intval($_smarty_tpl->getVariable('currencyBlank')->value);?>
 40';
 41var taxRate = <?php echo floatval($_smarty_tpl->getVariable('tax_rate')->value);?>
 42;
 43var jqZoomEnabled = <?php if ($_smarty_tpl->getVariable('jqZoomEnabled')->value){?>true<?php }else{ ?>false<?php }?>;
 44
 45//JS Hook
 46var oosHookJsCodeFunctions = new Array();
 47
 48// Parameters
 49var id_product = '<?php echo intval($_smarty_tpl->getVariable('product')->value->id);?>
 50';
 51var productHasAttributes = <?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)){?>true<?php }else{ ?>false<?php }?>;
 52var quantitiesDisplayAllowed = <?php if ($_smarty_tpl->getVariable('display_qties')->value==1){?>true<?php }else{ ?>false<?php }?>;
 53var quantityAvailable = <?php if ($_smarty_tpl->getVariable('display_qties')->value==1&&$_smarty_tpl->getVariable('product')->value->quantity){?><?php echo $_smarty_tpl->getVariable('product')->value->quantity;?>
 54<?php }else{ ?>0<?php }?>;
 55var allowBuyWhenOutOfStock = <?php if ($_smarty_tpl->getVariable('allow_oosp')->value==1){?>true<?php }else{ ?>false<?php }?>;
 56var availableNowValue = '<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->available_now,'quotes','UTF-8');?>
 57';
 58var availableLaterValue = '<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->available_later,'quotes','UTF-8');?>
 59';
 60var productPriceTaxExcluded = <?php echo (($tmp = @$_smarty_tpl->getVariable('product')->value->getPriceWithoutReduct(true))===null||$tmp==='' ? 'null' : $tmp);?>
 61 - <?php echo $_smarty_tpl->getVariable('product')->value->ecotax;?>
 62;
 63var reduction_percent = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction_type']=='percentage'){?><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['reduction']*100;?>
 64<?php }else{ ?>0<?php }?>;
 65var reduction_price = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction_type']=='amount'){?><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['reduction'];?>
 66<?php }else{ ?>0<?php }?>;
 67var specific_price = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['price']){?><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['price'];?>
 68<?php }else{ ?>0<?php }?>;
 69var specific_currency = <?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['id_currency']){?>true<?php }else{ ?>false<?php }?>;
 70var group_reduction = '<?php echo $_smarty_tpl->getVariable('group_reduction')->value;?>
 71';
 72var default_eco_tax = <?php echo $_smarty_tpl->getVariable('product')->value->ecotax;?>
 73;
 74var ecotaxTax_rate = <?php echo $_smarty_tpl->getVariable('ecotaxTax_rate')->value;?>
 75;
 76var currentDate = '<?php echo smarty_modifier_date_format(time(),'%Y-%m-%d %H:%M:%S');?>
 77';
 78var maxQuantityToAllowDisplayOfLastQuantityMessage = <?php echo $_smarty_tpl->getVariable('last_qties')->value;?>
 79;
 80var noTaxForThisProduct = <?php if ($_smarty_tpl->getVariable('no_tax')->value==1){?>true<?php }else{ ?>false<?php }?>;
 81var displayPrice = <?php echo $_smarty_tpl->getVariable('priceDisplay')->value;?>
 82;
 83var productReference = '<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->reference,'htmlall','UTF-8');?>
 84';
 85var productAvailableForOrder = <?php if ((isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&$_smarty_tpl->getVariable('restricted_country_mode')->value)||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>'0'<?php }else{ ?>'<?php echo $_smarty_tpl->getVariable('product')->value->available_for_order;?>
 86'<?php }?>;
 87var productShowPrice = '<?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><?php echo $_smarty_tpl->getVariable('product')->value->show_price;?>
 88<?php }else{ ?>0<?php }?>';
 89var productUnitPriceRatio = '<?php echo $_smarty_tpl->getVariable('product')->value->unit_price_ratio;?>
 90';
 91var idDefaultImage = <?php if (isset($_smarty_tpl->getVariable('cover',null,true,false)->value['id_image_only'])){?><?php echo $_smarty_tpl->getVariable('cover')->value['id_image_only'];?>
 92<?php }else{ ?>0<?php }?>;
 93
 94// Customizable field
 95var img_ps_dir = '<?php echo $_smarty_tpl->getVariable('img_ps_dir')->value;?>
 96';
 97var customizationFields = new Array();
 98<?php $_smarty_tpl->tpl_vars['imgIndex'] = new Smarty_variable(0, null, null);?>
 99<?php $_smarty_tpl->tpl_vars['textFieldIndex'] = new Smarty_variable(0, null, null);?>
100<?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable;
101 $_from = $_smarty_tpl->getVariable('customizationFields')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
102 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']=-1;
103if ($_smarty_tpl->_count($_from) > 0){
104    foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
105 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++;
106?>
107	<?php $_smarty_tpl->tpl_vars["key"] = new Smarty_variable("pictures_".($_smarty_tpl->getVariable('product')->value->id)."_".($_smarty_tpl->tpl_vars['field']->value['id_customization_field']), null, null);?>
108	customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']);?>
109] = new Array();
110	customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']);?>
111][0] = '<?php if (intval($_smarty_tpl->tpl_vars['field']->value['type'])==0){?>img<?php echo $_smarty_tpl->getVariable('imgIndex')->value++;?>
112<?php }else{ ?>textField<?php echo $_smarty_tpl->getVariable('textFieldIndex')->value++;?>
113<?php }?>';
114	customizationFields[<?php echo intval($_smarty_tpl->getVariable('smarty')->value['foreach']['customizationFields']['index']);?>
115][1] = <?php if (intval($_smarty_tpl->tpl_vars['field']->value['type'])==0&&isset($_smarty_tpl->getVariable('pictures',null,true,false)->value[$_smarty_tpl->getVariable('key',null,true,false)->value])&&$_smarty_tpl->getVariable('pictures')->value[$_smarty_tpl->getVariable('key')->value]){?>2<?php }else{ ?><?php echo intval($_smarty_tpl->tpl_vars['field']->value['required']);?>
116<?php }?>;
117<?php }} ?>
118
119// Images
120var img_prod_dir = '<?php echo $_smarty_tpl->getVariable('img_prod_dir')->value;?>
121';
122var combinationImages = new Array();
123
124<?php if (isset($_smarty_tpl->getVariable('combinationImages',null,true,false)->value)){?>
125	<?php  $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable;
126 $_smarty_tpl->tpl_vars['combinationId'] = new Smarty_Variable;
127 $_from = $_smarty_tpl->getVariable('combinationImages')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
128if ($_smarty_tpl->_count($_from) > 0){
129    foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value){
130 $_smarty_tpl->tpl_vars['combinationId']->value = $_smarty_tpl->tpl_vars['combination']->key;
131?>
132		combinationImages[<?php echo $_smarty_tpl->tpl_vars['combinationId']->value;?>
133] = new Array();
134		<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable;
135 $_from = $_smarty_tpl->tpl_vars['combination']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
136 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_combinationImage']['index']=-1;
137if ($_smarty_tpl->_count($_from) > 0){
138    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
139 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_combinationImage']['index']++;
140?>
141			combinationImages[<?php echo $_smarty_tpl->tpl_vars['combinationId']->value;?>
142][<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['f_combinationImage']['index'];?>
143] = <?php echo intval($_smarty_tpl->tpl_vars['image']->value['id_image']);?>
144;
145		<?php }} ?>
146	<?php }} ?>
147<?php }?>
148
149combinationImages[0] = new Array();
150<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)){?>
151	<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable;
152 $_from = $_smarty_tpl->getVariable('images')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
153 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_defaultImages']['index']=-1;
154if ($_smarty_tpl->_count($_from) > 0){
155    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
156 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['f_defaultImages']['index']++;
157?>
158		combinationImages[0][<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['f_defaultImages']['index'];?>
159] = <?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
160;
161	<?php }} ?>
162<?php }?>
163
164// Translations
165var doesntExist = '<?php echo smartyTranslate(array('s'=>'The product does not exist in this model. Please choose another.','js'=>1),$_smarty_tpl);?>
166';
167var doesntExistNoMore = '<?php echo smartyTranslate(array('s'=>'This product is no longer in stock','js'=>1),$_smarty_tpl);?>
168';
169var doesntExistNoMoreBut = '<?php echo smartyTranslate(array('s'=>'with those attributes but is available with others','js'=>1),$_smarty_tpl);?>
170';
171var uploading_in_progress = '<?php echo smartyTranslate(array('s'=>'Uploading in progress, please wait...','js'=>1),$_smarty_tpl);?>
172';
173var fieldRequired = '<?php echo smartyTranslate(array('s'=>'Please fill in all required fields, then save the customization.','js'=>1),$_smarty_tpl);?>
174';
175
176<?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)){?>
177	// Combinations
178	<?php  $_smarty_tpl->tpl_vars['combination'] = new Smarty_Variable;
179 $_smarty_tpl->tpl_vars['idCombination'] = new Smarty_Variable;
180 $_from = $_smarty_tpl->getVariable('combinations')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
181if ($_smarty_tpl->_count($_from) > 0){
182    foreach ($_from as $_smarty_tpl->tpl_vars['combination']->key => $_smarty_tpl->tpl_vars['combination']->value){
183 $_smarty_tpl->tpl_vars['idCombination']->value = $_smarty_tpl->tpl_vars['combination']->key;
184?>
185		addCombination(<?php echo intval($_smarty_tpl->tpl_vars['idCombination']->value);?>
186, new Array(<?php echo $_smarty_tpl->tpl_vars['combination']->value['list'];?>
187), <?php echo $_smarty_tpl->tpl_vars['combination']->value['quantity'];?>
188, <?php echo $_smarty_tpl->tpl_vars['combination']->value['price'];?>
189, <?php echo $_smarty_tpl->tpl_vars['combination']->value['ecotax'];?>
190, <?php echo $_smarty_tpl->tpl_vars['combination']->value['id_image'];?>
191, '<?php echo addslashes($_smarty_tpl->tpl_vars['combination']->value['reference']);?>
192', <?php echo $_smarty_tpl->tpl_vars['combination']->value['unit_impact'];?>
193, <?php echo $_smarty_tpl->tpl_vars['combination']->value['minimal_quantity'];?>
194);
195	<?php }} ?>
196	// Colors
197	<?php if (count($_smarty_tpl->getVariable('colors')->value)>0){?>
198		<?php if ($_smarty_tpl->getVariable('product')->value->id_color_default){?>var id_color_default = <?php echo intval($_smarty_tpl->getVariable('product')->value->id_color_default);?>
199;<?php }?>
200	<?php }?>
201<?php }?>
202//]]>
203</script>
204
205<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
206 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
207<div id="primary_block" class="clearfix">
208	<h1><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
209</h1>
210
211	<?php if (isset($_smarty_tpl->getVariable('adminActionDisplay',null,true,false)->value)&&$_smarty_tpl->getVariable('adminActionDisplay')->value){?>
212	<div id="admin-action">
213		<p><?php echo smartyTranslate(array('s'=>'This product is not visible to your customers.'),$_smarty_tpl);?>
214
215		<input type="hidden" id="admin-action-product-id" value="<?php echo $_smarty_tpl->getVariable('product')->value->id;?>
216" />
217		<input type="submit" value="<?php echo smartyTranslate(array('s'=>'Publish'),$_smarty_tpl);?>
218" class="exclusive" onclick="submitPublishProduct('<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
219<?php echo $_GET['ad'];?>
220', 0)"/>
221		<input type="submit" value="<?php echo smartyTranslate(array('s'=>'Back'),$_smarty_tpl);?>
222" class="exclusive" onclick="submitPublishProduct('<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
223<?php echo $_GET['ad'];?>
224', 1)"/>
225		</p>
226		<div class="clear" ></div>
227		<p id="admin-action-result"></p>
228		</p>
229	</div>
230	<?php }?>
231
232	<?php if (isset($_smarty_tpl->getVariable('confirmation',null,true,false)->value)&&$_smarty_tpl->getVariable('confirmation')->value){?>
233	<p class="confirmation">
234		<?php echo $_smarty_tpl->getVariable('confirmation')->value;?>
235
236	</p>
237	<?php }?>
238
239	<!-- right infos-->
240	<div id="pb-right-column">
241		<!-- product img-->
242		<div id="image-block">
243		<?php if ($_smarty_tpl->getVariable('have_image')->value){?>
244			<img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('cover')->value['id_image'],'large');?>
245"
246				<?php if ($_smarty_tpl->getVariable('jqZoomEnabled')->value){?>class="jqzoom" alt="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('cover')->value['id_image'],'thickbox');?>
247"<?php }else{ ?> title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
248" alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
249" <?php }?> id="bigpic" width="<?php echo $_smarty_tpl->getVariable('largeSize')->value['width'];?>
250" height="<?php echo $_smarty_tpl->getVariable('largeSize')->value['height'];?>
251" />
252		<?php }else{ ?>
253			<img src="<?php echo $_smarty_tpl->getVariable('img_prod_dir')->value;?>
254<?php echo $_smarty_tpl->getVariable('lang_iso')->value;?>
255-default-large.jpg" id="bigpic" alt="" title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->name,'htmlall','UTF-8');?>
256" width="<?php echo $_smarty_tpl->getVariable('largeSize')->value['width'];?>
257" height="<?php echo $_smarty_tpl->getVariable('largeSize')->value['height'];?>
258" />
259		<?php }?>
260		</div>
261
262		<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)>0){?>
263		<!-- thumbnails -->
264		<div id="views_block" <?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)<2){?>class="hidden"<?php }?>>
265		<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)>3){?><span class="view_scroll_spacer"><a id="view_scroll_left" class="hidden" title="<?php echo smartyTranslate(array('s'=>'Other views'),$_smarty_tpl);?>
266" href="javascript:{}"><?php echo smartyTranslate(array('s'=>'Previous'),$_smarty_tpl);?>
267</a></span><?php }?>
268		<div id="thumbs_list">
269			<ul id="thumbs_list_frame">
270				<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)){?>
271					<?php  $_smarty_tpl->tpl_vars['image'] = new Smarty_Variable;
272 $_from = $_smarty_tpl->getVariable('images')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
273 $_smarty_tpl->tpl_vars['image']->index=-1;
274if ($_smarty_tpl->_count($_from) > 0){
275    foreach ($_from as $_smarty_tpl->tpl_vars['image']->key => $_smarty_tpl->tpl_vars['image']->value){
276 $_smarty_tpl->tpl_vars['image']->index++;
277 $_smarty_tpl->tpl_vars['image']->first = $_smarty_tpl->tpl_vars['image']->index === 0;
278 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['thumbnails']['first'] = $_smarty_tpl->tpl_vars['image']->first;
279?>
280					<?php $_smarty_tpl->tpl_vars['imageIds'] = new Smarty_variable(($_smarty_tpl->getVariable('product')->value->id)."-".($_smarty_tpl->tpl_vars['image']->value['id_image']), null, null);?>
281					<li id="thumbnail_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
282">
283						<a href="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('imageIds')->value,'thickbox');?>
284" rel="other-views" class="thickbox <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['thumbnails']['first']){?>shown<?php }?>" title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend']);?>
285">
286							<img id="thumb_<?php echo $_smarty_tpl->tpl_vars['image']->value['id_image'];?>
287" src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->getVariable('product')->value->link_rewrite,$_smarty_tpl->getVariable('imageIds')->value,'medium');?>
288" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['image']->value['legend']);?>
289" height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
290" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
291" />
292						</a>
293					</li>
294					<?php }} ?>
295				<?php }?>
296			</ul>
297		</div>
298		<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)>3){?><a id="view_scroll_right" title="<?php echo smartyTranslate(array('s'=>'Other views'),$_smarty_tpl);?>
299" href="javascript:{}"><?php echo smartyTranslate(array('s'=>'Next'),$_smarty_tpl);?>
300</a><?php }?>
301		</div>
302		<?php }?>
303		<?php if (isset($_smarty_tpl->getVariable('images',null,true,false)->value)&&count($_smarty_tpl->getVariable('images')->value)>1){?><p class="align_center clear"><span id="wrapResetImages" style="display: none;"><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
304icon/cancel_16x18.gif" alt="<?php echo smartyTranslate(array('s'=>'Cancel'),$_smarty_tpl);?>
305" width="16" height="18"/> <a id="resetImages" href="<?php echo $_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->getVariable('product')->value);?>
306" onclick="$('span#wrapResetImages').hide('slow');return (false);"><?php echo smartyTranslate(array('s'=>'Display all pictures'),$_smarty_tpl);?>
307</a></span></p><?php }?>
308		<!-- usefull links-->
309		<ul id="usefull_link_block">
310			<?php if ($_smarty_tpl->getVariable('HOOK_EXTRA_LEFT')->value){?><?php echo $_smarty_tpl->getVariable('HOOK_EXTRA_LEFT')->value;?>
311<?php }?>
312			<li><a href="javascript:print();"><?php echo smartyTranslate(array('s'=>'Print'),$_smarty_tpl);?>
313</a><br class="clear" /></li>
314			<?php if ($_smarty_tpl->getVariable('have_image')->value&&!$_smarty_tpl->getVariable('jqZoomEnabled')->value){?>
315			<li><span id="view_full_size" class="span_link"><?php echo smartyTranslate(array('s'=>'View full size'),$_smarty_tpl);?>
316</span></li>
317			<?php }?>
318		</ul>
319	</div>
320
321	<!-- left infos-->
322	<div id="pb-left-column">
323		<?php if ($_smarty_tpl->getVariable('product')->value->description_short||count($_smarty_tpl->getVariable('packItems')->value)>0){?>
324		<div id="short_description_block">
325			<?php if ($_smarty_tpl->getVariable('product')->value->description_short){?>
326				<div id="short_description_content" class="rte align_justify"><?php echo $_smarty_tpl->getVariable('product')->value->description_short;?>
327</div>
328			<?php }?>
329			<?php if ($_smarty_tpl->getVariable('product')->value->description){?>
330			<p class="buttons_bottom_block"><a href="javascript:{}" class="button"><?php echo smartyTranslate(array('s'=>'More details'),$_smarty_tpl);?>
331</a></p>
332			<?php }?>
333			<?php if (count($_smarty_tpl->getVariable('packItems')->value)>0){?>
334				<h3><?php echo smartyTranslate(array('s'=>'Pack content'),$_smarty_tpl);?>
335</h3>
336				<?php  $_smarty_tpl->tpl_vars['packItem'] = new Smarty_Variable;
337 $_from = $_smarty_tpl->getVariable('packItems')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
338if ($_smarty_tpl->_count($_from) > 0){
339    foreach ($_from as $_smarty_tpl->tpl_vars['packItem']->key => $_smarty_tpl->tpl_vars['packItem']->value){
340?>
341					<div class="pack_content">
342						<?php echo $_smarty_tpl->tpl_vars['packItem']->value['pack_quantity'];?>
343 x <a href="<?php echo $_smarty_tpl->getVariable('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']);?>
344"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['packItem']->value['name'],'htmlall','UTF-8');?>
345</a>
346						<p><?php echo $_smarty_tpl->tpl_vars['packItem']->value['description_short'];?>
347</p>
348					</div>
349				<?php }} ?>
350			<?php }?>
351		</div>
352		<?php }?>
353
354		<?php if (isset($_smarty_tpl->getVariable('colors',null,true,false)->value)&&$_smarty_tpl->getVariable('colors')->value){?>
355		<!-- colors -->
356		<div id="color_picker">
357			<p><?php echo smartyTranslate(array('s'=>'Pick a color:','js'=>1),$_smarty_tpl);?>
358</p>
359			<div class="clear"></div>
360			<ul id="color_to_pick_list">
361			<?php  $_smarty_tpl->tpl_vars['color'] = new Smarty_Variable;
362 $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable;
363 $_from = $_smarty_tpl->getVariable('colors')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
364if ($_smarty_tpl->_count($_from) > 0){
365    foreach ($_from as $_smarty_tpl->tpl_vars['color']->key => $_smarty_tpl->tpl_vars['color']->value){
366 $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['color']->key;
367?>
368				<li><a id="color_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);?>
369" class="color_pick" style="background: <?php echo $_smarty_tpl->tpl_vars['color']->value['value'];?>
370;" onclick="updateColorSelect(<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);?>
371);$('#wrapResetImages').show('slow');" title="<?php echo $_smarty_tpl->tpl_vars['color']->value['name'];?>
372"><?php if (file_exists((($_smarty_tpl->getVariable('col_img_dir')->value).($_smarty_tpl->tpl_vars['id_attribute']->value)).('.jpg'))){?><img src="<?php echo $_smarty_tpl->getVariable('img_col_dir')->value;?>
373<?php echo $_smarty_tpl->tpl_vars['id_attribute']->value;?>
374.jpg" alt="<?php echo $_smarty_tpl->tpl_vars['color']->value['name'];?>
375" width="20" height="20" /><?php }?></a></li>
376			<?php }} ?>
377			</ul>
378			<div class="clear"></div>
379		</div>
380		<?php }?>
381
382		<?php if (($_smarty_tpl->getVariable('product')->value->show_price&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value))||isset($_smarty_tpl->getVariable('groups',null,true,false)->value)||$_smarty_tpl->getVariable('product')->value->reference||(isset($_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS',null,true,false)->value)&&$_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS')->value)){?>
383		<!-- add to cart form-->
384		<form id="buy_block" <?php if ($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value&&!isset($_smarty_tpl->getVariable('groups',null,true,false)->value)&&$_smarty_tpl->getVariable('product')->value->quantity>0){?>class="hidden"<?php }?> action="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php');?>
385" method="post">
386
387			<!-- hidden datas -->
388			<p class="hidden">
389				<input type="hidden" name="token" value="<?php echo $_smarty_tpl->getVariable('static_token')->value;?>
390" />
391				<input type="hidden" name="id_product" value="<?php echo intval($_smarty_tpl->getVariable('product')->value->id);?>
392" id="product_page_product_id" />
393				<input type="hidden" name="add" value="1" />
394				<input type="hidden" name="id_product_attribute" id="idCombination" value="" />
395			</p>
396
397			<!-- prices -->
398			<?php if ($_smarty_tpl->getVariable('product')->value->show_price&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
399				<p class="price">
400					<?php if (!$_smarty_tpl->getVariable('priceDisplay')->value||$_smarty_tpl->getVariable('priceDisplay')->value==2){?>
401						<?php $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPrice(true,@NULL,2), null, null);?>
402						<?php $_smarty_tpl->tpl_vars['productPriceWithoutRedution'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPriceWithoutReduct(false,@NULL), null, null);?>
403					<?php }elseif($_smarty_tpl->getVariable('priceDisplay')->value==1){?>
404						<?php $_smarty_tpl->tpl_vars['productPrice'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPrice(false,@NULL,2), null, null);?>
405						<?php $_smarty_tpl->tpl_vars['productPriceWithoutRedution'] = new Smarty_variable($_smarty_tpl->getVariable('product')->value->getPriceWithoutReduct(true,@NULL), null, null);?>
406					<?php }?>
407					<?php if ($_smarty_tpl->getVariable('product')->value->on_sale){?>
408						<img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
409onsale_<?php echo $_smarty_tpl->getVariable('lang_iso')->value;?>
410.gif" alt="<?php echo smartyTranslate(array('s'=>'On sale'),$_smarty_tpl);?>
411" class="on_sale_img"/>
412						<span class="on_sale"><?php echo smartyTranslate(array('s'=>'On sale!'),$_smarty_tpl);?>
413</span>
414					<?php }elseif($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']&&$_smarty_tpl->getVariable('productPriceWithoutRedution')->value>$_smarty_tpl->getVariable('productPrice')->value){?>
415						<span class="discount"><?php echo smartyTranslate(array('s'=>'Reduced price!'),$_smarty_tpl);?>
416</span>
417					<?php }?>
418					<br />
419					<span class="our_price_display">
420					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value>=0&&$_smarty_tpl->getVariable('priceDisplay')->value<=2){?>
421						<span id="our_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('productPrice')->value),$_smarty_tpl);?>
422</span>
423							<?php if ($_smarty_tpl->getVariable('tax_enabled')->value&&((isset($_smarty_tpl->getVariable('display_tax_label',null,true,false)->value)&&$_smarty_tpl->getVariable('display_tax_label')->value==1)||!isset($_smarty_tpl->getVariable('display_tax_label',null,true,false)->value))){?>
424								<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
425<?php }else{ ?><?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
426<?php }?>
427							<?php }?>
428					<?php }?>
429					</span>
430					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==2){?>
431						<br />
432						<span id="pretaxe_price"><span id="pretaxe_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('product')->value->getPrice(false,@NULL)),$_smarty_tpl);?>
433</span>&nbsp;<?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
434</span>
435					<?php }?>
436					<br />
437				</p>
438				<?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']){?>
439					<p id="old_price"><span class="bold">
440					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value>=0&&$_smarty_tpl->getVariable('priceDisplay')->value<=2){?>
441						<?php if ($_smarty_tpl->getVariable('productPriceWithoutRedution')->value>$_smarty_tpl->getVariable('productPrice')->value){?>
442							<span id="old_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('productPriceWithoutRedution')->value),$_smarty_tpl);?>
443</span>
444								<?php if ($_smarty_tpl->getVariable('tax_enabled')->value&&$_smarty_tpl->getVariable('display_tax_label')->value==1){?>
445									<?php if ($_smarty_tpl->getVariable('priceDisplay')->value==1){?><?php echo smartyTranslate(array('s'=>'tax excl.'),$_smarty_tpl);?>
446<?php }else{ ?><?php echo smartyTranslate(array('s'=>'tax incl.'),$_smarty_tpl);?>
447<?php }?>
448								<?php }?>
449						<?php }?>
450					<?php }?>
451					</span>
452					</p>
453
454				<?php }?>
455				<?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction_type']=='percentage'){?>
456					<p id="reduction_percent"><?php echo smartyTranslate(array('s'=>'(price reduced by'),$_smarty_tpl);?>
457 <span id="reduction_percent_display"><?php echo $_smarty_tpl->getVariable('product')->value->specificPrice['reduction']*100;?>
458</span> %<?php echo smartyTranslate(array('s'=>')'),$_smarty_tpl);?>
459</p>
460				<?php }?>
461				<?php if (count($_smarty_tpl->getVariable('packItems')->value)){?>
462					<p class="pack_price"><?php echo smartyTranslate(array('s'=>'instead of'),$_smarty_tpl);?>
463 <span style="text-decoration: line-through;"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('product')->value->getNoPackPrice()),$_smarty_tpl);?>
464</span></p>
465					<br class="clear" />
466				<?php }?>
467				<?php if ($_smarty_tpl->getVariable('product')->value->ecotax!=0){?>
468					<p class="price-ecotax"><?php echo smartyTranslate(array('s'=>'include'),$_smarty_tpl);?>
469 <span id="ecotax_price_display"><?php if ($_smarty_tpl->getVariable('priceDisplay')->value==2){?><?php echo Product::convertAndFormatPrice($_smarty_tpl->getVariable('ecotax_tax_exc')->value);?>
470<?php }else{ ?><?php echo Product::convertAndFormatPrice($_smarty_tpl->getVariable('ecotax_tax_inc')->value);?>
471<?php }?></span> <?php echo smartyTranslate(array('s'=>'for green tax'),$_smarty_tpl);?>
472
473						<?php if ($_smarty_tpl->getVariable('product')->value->specificPrice&&$_smarty_tpl->getVariable('product')->value->specificPrice['reduction']){?>
474						<br /><?php echo smartyTranslate(array('s'=>'(not impacted by the discount)'),$_smarty_tpl);?>
475
476						<?php }?>
477					</p>
478				<?php }?>
479				<?php if (!empty($_smarty_tpl->getVariable('product',null,true,false)->value->unity)&&$_smarty_tpl->getVariable('product')->value->unit_price_ratio>0.000000){?>
480				    <?php echo smarty_function_math(array('equation'=>"pprice / punit_price",'pprice'=>$_smarty_tpl->getVariable('productPrice')->value,'punit_price'=>$_smarty_tpl->getVariable('product')->value->unit_price_ratio,'assign'=>'unit_price'),$_smarty_tpl);?>
481
482					<p class="unit-price"><span id="unit_price_display"><?php echo Product::convertPrice(array('price'=>$_smarty_tpl->getVariable('unit_price')->value),$_smarty_tpl);?>
483</span> <?php echo smartyTranslate(array('s'=>'per'),$_smarty_tpl);?>
484 <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->unity,'htmlall','UTF-8');?>
485</p>
486				<?php }?>
487			<?php }?>
488
489			<?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)){?>
490			<!-- attributes -->
491			<div id="attributes">
492			<?php  $_smarty_tpl->tpl_vars['group'] = new Smarty_Variable;
493 $_smarty_tpl->tpl_vars['id_attribute_group'] = new Smarty_Variable;
494 $_from = $_smarty_tpl->getVariable('groups')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
495if ($_smarty_tpl->_count($_from) > 0){
496    foreach ($_from as $_smarty_tpl->tpl_vars['group']->key => $_smarty_tpl->tpl_vars['group']->value){
497 $_smarty_tpl->tpl_vars['id_attribute_group']->value = $_smarty_tpl->tpl_vars['group']->key;
498?>
499			<?php if (count($_smarty_tpl->tpl_vars['group']->value['attributes'])){?>
500			<p>
501				<label for="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);?>
502"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group']->value['name'],'htmlall','UTF-8');?>
503 :</label>
504				<?php $_smarty_tpl->tpl_vars["groupName"] = new Smarty_variable("group_".($_smarty_tpl->tpl_vars['id_attribute_group']->value), null, null);?>
505				<select name="<?php echo $_smarty_tpl->getVariable('groupName')->value;?>
506" id="group_<?php echo intval($_smarty_tpl->tpl_vars['id_attribute_group']->value);?>
507" onchange="javascript:findCombination();<?php if (count($_smarty_tpl->getVariable('colors')->value)>0){?>$('#wrapResetImages').show('slow');<?php }?>;">
508					<?php  $_smarty_tpl->tpl_vars['group_attribute'] = new Smarty_Variable;
509 $_smarty_tpl->tpl_vars['id_attribute'] = new Smarty_Variable;
510 $_from = $_smarty_tpl->tpl_vars['group']->value['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
511if ($_smarty_tpl->_count($_from) > 0){
512    foreach ($_from as $_smarty_tpl->tpl_vars['group_attribute']->key => $_smarty_tpl->tpl_vars['group_attribute']->value){
513 $_smarty_tpl->tpl_vars['id_attribute']->value = $_smarty_tpl->tpl_vars['group_attribute']->key;
514?>
515						<option value="<?php echo intval($_smarty_tpl->tpl_vars['id_attribute']->value);?>
516"<?php if ((isset($_GET[$_smarty_tpl->getVariable('groupName',null,true,false)->value])&&intval($_GET[$_smarty_tpl->getVariable('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 smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value,'htmlall','UTF-8');?>
517"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['group_attribute']->value,'htmlall','UTF-8');?>
518</option>
519					<?php }} ?>
520				</select>
521			</p>
522			<?php }?>
523			<?php }} ?>
524			</div>
525			<?php }?>
526
527			<p id="product_reference" <?php if (isset($_smarty_tpl->getVariable('groups',null,true,false)->value)||!$_smarty_tpl->getVariable('product')->value->reference){?>style="display: none;"<?php }?>><label for="product_reference"><?php echo smartyTranslate(array('s'=>'Reference :'),$_smarty_tpl);?>
528 </label><span class="editable"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('product')->value->reference,'htmlall','UTF-8');?>
529</span></p>
530
531			<!-- quantity wanted -->
532			<p id="quantity_wanted_p"<?php if ((!$_smarty_tpl->getVariable('allow_oosp')->value&&$_smarty_tpl->getVariable('product')->value->quantity<=0)||$_smarty_tpl->getVariable('virtual')->value||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?>>
533				<label><?php echo smartyTranslate(array('s'=>'Quantity :'),$_smarty_tpl);?>
534</label>
535				<input type="text" name="qty" id="quantity_wanted" class="text" value="<?php if (isset($_smarty_tpl->getVariable('quantityBackup',null,true,false)->value)){?><?php echo intval($_smarty_tpl->getVariable('quantityBackup')->value);?>
536<?php }else{ ?><?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity>1){?><?php echo $_smarty_tpl->getVariable('product')->value->minimal_quantity;?>
537<?php }else{ ?>1<?php }?><?php }?>" size="2" maxlength="3" <?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity>1){?>onkeyup="checkMinimalQuantity(<?php echo $_smarty_tpl->getVariable('product')->value->minimal_quantity;?>
538);"<?php }?> />
539			</p>
540
541			<!-- minimal quantity wanted -->
542			<p id="minimal_quantity_wanted_p"<?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity<=1||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?>><?php echo smartyTranslate(array('s'=>'You must add '),$_smarty_tpl);?>
543<b id="minimal_quantity_label"><?php echo $_smarty_tpl->getVariable('product')->value->minimal_quantity;?>
544</b><?php echo smartyTranslate(array('s'=>' as a minimum quantity to buy this product.'),$_smarty_tpl);?>
545</p>
546			<?php if ($_smarty_tpl->getVariable('product')->value->minimal_quantity>1){?>
547			<script type="text/javascript">
548				checkMinimalQuantity();
549			</script>
550			<?php }?>
551
552			<!-- availability -->
553			<p id="availability_statut"<?php if (($_smarty_tpl->getVariable('product')->value->quantity<=0&&!$_smarty_tpl->getVariable('product')->value->available_later&&$_smarty_tpl->getVariable('allow_oosp')->value)||($_smarty_tpl->getVariable('product')->value->quantity>0&&!$_smarty_tpl->getVariable('product')->value->available_now)||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?>>
554				<span id="availability_label"><?php echo smartyTranslate(array('s'=>'Availability:'),$_smarty_tpl);?>
555</span>
556				<span id="availability_value"<?php if ($_smarty_tpl->getVariable('product')->value->quantity<=0){?> class="warning_inline"<?php }?>>
557					<?php if ($_smarty_tpl->getVariable('product')->value->quantity<=0){?><?php if ($_smarty_tpl->getVariable('allow_oosp')->value){?><?php echo $_smarty_tpl->getVariable('product')->value->available_later;?>
558<?php }else{ ?><?php echo smartyTranslate(array('s'=>'This product is no longer in stock'),$_smarty_tpl);?>
559<?php }?><?php }else{ ?><?php echo $_smarty_tpl->getVariable('product')->value->available_now;?>
560<?php }?>
561				</span>
562			</p>
563
564			<!-- number of item in stock -->
565			<?php if (($_smarty_tpl->getVariable('display_qties')->value==1&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value&&$_smarty_tpl->getVariable('product')->value->available_for_order)){?>
566			<p id="pQuantityAvailable"<?php if ($_smarty_tpl->getVariable('product')->value->quantity<=0){?> style="display: none;"<?php }?>>
567				<span id="quantityAvailable"><?php echo intval($_smarty_tpl->getVariable('product')->value->quantity);?>
568</span>
569				<span <?php if ($_smarty_tpl->getVariable('product')->value->quantity>1){?> style="display: none;"<?php }?> id="quantityAvailableTxt"><?php echo smartyTranslate(array('s'=>'item in stock'),$_smarty_tpl);?>
570</span>
571				<span <?php if ($_smarty_tpl->getVariable('product')->value->quantity==1){?> style="display: none;"<?php }?> id="quantityAvailableTxtMultiple"><?php echo smartyTranslate(array('s'=>'items in stock'),$_smarty_tpl);?>
572</span>
573			</p>
574     		<?php }?>
575			<!-- Out of stock hook -->
576			<p id="oosHook"<?php if ($_smarty_tpl->getVariable('product')->value->quantity>0){?> style="display: none;"<?php }?>>
577				<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_OOS')->value;?>
578
579			</p>
580
581			<p class="warning_inline" id="last_quantities"<?php if (($_smarty_tpl->getVariable('product')->value->quantity>$_smarty_tpl->getVariable('last_qties')->value||$_smarty_tpl->getVariable('product')->value->quantity<=0)||$_smarty_tpl->getVariable('allow_oosp')->value||!$_smarty_tpl->getVariable('product')->value->available_for_order||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?> ><?php echo smartyTranslate(array('s'=>'Warning: Last items in stock!'),$_smarty_tpl);?>
582</p>
583
584			<?php if ($_smarty_tpl->getVariable('product')->value->online_only){?>
585				<p><?php echo smartyTranslate(array('s'=>'Online only'),$_smarty_tpl);?>
586</p>
587			<?php }?>
588
589			<p<?php if ((!$_smarty_tpl->getVariable('allow_oosp')->value&&$_smarty_tpl->getVariable('product')->value->quantity<=0)||!$_smarty_tpl->getVariable('product')->value->available_for_order||(isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&$_smarty_tpl->getVariable('restricted_country_mode')->value)||$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?> style="display: none;"<?php }?> id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="<?php echo smartyTranslate(array('s'=>'Add to cart'),$_smarty_tpl);?>
590" class="exclusive" /></p>
591			<?php if (isset($_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS',null,true,false)->value)&&$_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS')->value){?><?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_ACTIONS')->value;?>
592<?php }?>
593			<div class="clear"></div>
594		</form>
595		<?php }?>
596		<?php if ($_smarty_tpl->getVariable('HOOK_EXTRA_RIGHT')->value){?><?php echo $_smarty_tpl->getVariable('HOOK_EXTRA_RIGHT')->value;?>
597<?php }?>
598	</div>
599</div>
600
601<?php if ($_smarty_tpl->getVariable('quantity_discounts')->value){?>
602<!-- quantity discount -->
603<ul class="idTabs">
604	<li><a style="cursor: pointer" class="selected"><?php echo smartyTranslate(array('s'=>'Quantity discount'),$_smarty_tpl);?>
605</a></li>
606</ul>
607<div id="quantityDiscount">
608	<table class="std">
609		<tr>
610			<?php  $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable;
611 $_from = $_smarty_tpl->getVariable('quantity_discounts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
612if ($_smarty_tpl->_count($_from) > 0){
613    foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value){
614?>
615				<th><?php echo intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity']);?>
616
617				<?php if (intval($_smarty_tpl->tpl_vars['quantity_discount']->value['quantity'])>1){?>
618					<?php echo smartyTranslate(array('s'=>'quantities'),$_smarty_tpl);?>
619
620				<?php }else{ ?>
621					<?php echo smartyTranslate(array('s'=>'quantity'),$_smarty_tpl);?>
622
623				<?php }?>
624				</th>
625			<?php }} ?>
626		</tr>
627		<tr>
628			<?php  $_smarty_tpl->tpl_vars['quantity_discount'] = new Smarty_Variable;
629 $_from = $_smarty_tpl->getVariable('quantity_discounts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
630if ($_smarty_tpl->_count($_from) > 0){
631    foreach ($_from as $_smarty_tpl->tpl_vars['quantity_discount']->key => $_smarty_tpl->tpl_vars['quantity_discount']->value){
632?>
633				<td>
634				<?php if ($_smarty_tpl->tpl_vars['quantity_discount']->value['price']!=0||$_smarty_tpl->tpl_vars['quantity_discount']->value['reduction_type']=='amount'){?>
635					-<?php echo Product::convertPrice(array('price'=>floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value'])),$_smarty_tpl);?>
636
637				<?php }else{ ?>
638    				-<?php echo floatval($_smarty_tpl->tpl_vars['quantity_discount']->value['real_value']);?>
639%
640				<?php }?>
641				</td>
642			<?php }} ?>
643		</tr>
644	</table>
645</div>
646<?php }?>
647
648<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_FOOTER')->value;?>
649
650
651<!-- description and features -->
652<?php if ($_smarty_tpl->getVariable('product')->value->description||$_smarty_tpl->getVariable('features')->value||$_smarty_tpl->getVariable('accessories')->value||$_smarty_tpl->getVariable('HOOK_PRODUCT_TAB')->value||$_smarty_tpl->getVariable('attachments')->value){?>
653<div id="more_info_block" class="clear">
654	<ul id="more_info_tabs" class="idTabs idTabsShort">
655		<?php if ($_smarty_tpl->getVariable('product')->value->description){?><li><a id="more_info_tab_more_info" href="#idTab1"><?php echo smartyTranslate(array('s'=>'More info'),$_smarty_tpl);?>
656</a></li><?php }?>
657		<?php if ($_smarty_tpl->getVariable('features')->value){?><li><a id="more_info_tab_data_sheet" href="#idTab2"><?php echo smartyTranslate(array('s'=>'Data sheet'),$_smarty_tpl);?>
658</a></li><?php }?>
659		<?php if ($_smarty_tpl->getVariable('attachments')->value){?><li><a id="more_info_tab_attachments" href="#idTab9"><?php echo smartyTranslate(array('s'=>'Download'),$_smarty_tpl);?>
660</a></li><?php }?>
661		<?php if (isset($_smarty_tpl->getVariable('accessories',null,true,false)->value)&&$_smarty_tpl->getVariable('accessories')->value){?><li><a href="#idTab4"><?php echo smartyTranslate(array('s'=>'Accessories'),$_smarty_tpl);?>
662</a></li><?php }?>
663		<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_TAB')->value;?>
664
665	</ul>
666	<div id="more_info_sheets" class="sheets align_justify">
667	<?php if ($_smarty_tpl->getVariable('product')->value->description){?>
668		<!-- full description -->
669		<div id="idTab1" class="rte"><?php echo $_smarty_tpl->getVariable('product')->value->description;?>
670</div>
671	<?php }?>
672	<?php if ($_smarty_tpl->getVariable('features')->value){?>
673		<!-- product's features -->
674		<ul id="idTab2" class="bullet">
675		<?php  $_smarty_tpl->tpl_vars['feature'] = new Smarty_Variable;
676 $_from = $_smarty_tpl->getVariable('features')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
677if ($_smarty_tpl->_count($_from) > 0){
678    foreach ($_from as $_smarty_tpl->tpl_vars['feature']->key => $_smarty_tpl->tpl_vars['feature']->value){
679?>
680			<li><span><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['feature']->value['name'],'htmlall','UTF-8');?>
681</span> <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['feature']->value['value'],'htmlall','UTF-8');?>
682</li>
683		<?php }} ?>
684		</ul>
685	<?php }?>
686	<?php if ($_smarty_tpl->getVariable('attachments')->value){?>
687		<ul id="idTab9" class="bullet">
688		<?php  $_smarty_tpl->tpl_vars['attachment'] = new Smarty_Variable;
689 $_from = $_smarty_tpl->getVariable('attachments')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
690if ($_smarty_tpl->_count($_from) > 0){
691    foreach ($_from as $_smarty_tpl->tpl_vars['attachment']->key => $_smarty_tpl->tpl_vars['attachment']->value){
692?>
693			<li><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('attachment.php',true);?>
694?id_attachment=<?php echo $_smarty_tpl->tpl_vars['attachment']->value['id_attachment'];?>
695"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['attachment']->value['name'],'htmlall','UTF-8');?>
696</a><br /><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['attachment']->value['description'],'htmlall','UTF-8');?>
697</li>
698		<?php }} ?>
699		</ul>
700	<?php }?>
701	<?php if (isset($_smarty_tpl->getVariable('accessories',null,true,false)->value)&&$_smarty_tpl->getVariable('accessories')->value){?>
702		<!-- accessories -->
703		<ul id="idTab4" class="bullet">
704			<div class="block products_block accessories_block clearfix">
705				<div class="block_content">
706					<ul>
707					<?php  $_smarty_tpl->tpl_vars['accessory'] = new Smarty_Variable;
708 $_from = $_smarty_tpl->getVariable('accessories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
709 $_smarty_tpl->tpl_vars['accessory']->total= $_smarty_tpl->_count($_from);
710 $_smarty_tpl->tpl_vars['accessory']->iteration=0;
711 $_smarty_tpl->tpl_vars['accessory']->index=-1;
712if ($_smarty_tpl->tpl_vars['accessory']->total > 0){
713    foreach ($_from as $_smarty_tpl->tpl_vars['accessory']->key => $_smarty_tpl->tpl_vars['accessory']->value){
714 $_smarty_tpl->tpl_vars['accessory']->iteration++;
715 $_smarty_tpl->tpl_vars['accessory']->index++;
716 $_smarty_tpl->tpl_vars['accessory']->first = $_smarty_tpl->tpl_vars['accessory']->index === 0;
717 $_smarty_tpl->tpl_vars['accessory']->last = $_smarty_tpl->tpl_vars['accessory']->iteration === $_smarty_tpl->tpl_vars['accessory']->total;
718 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessories_list']['first'] = $_smarty_tpl->tpl_vars['accessory']->first;
719 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['accessories_list']['last'] = $_smarty_tpl->tpl_vars['accessory']->last;
720?>
721						<?php $_smarty_tpl->tpl_vars['accessoryLink'] = new Smarty_variable($_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['accessory']->value['id_product'],$_smarty_tpl->tpl_vars['accessory']->value['link_rewrite'],$_smarty_tpl->tpl_vars['accessory']->value['category']), null, null);?>
722						<li class="ajax_block_product <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['first']){?>first_item<?php }elseif($_smarty_tpl->getVariable('smarty')->value['foreach']['accessories_list']['last']){?>last_item<?php }else{ ?>item<?php }?> product_accessories_description">
723							<h5><a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
724"><?php echo smarty_modifier_escape(smarty_modifier_truncate($_smarty_tpl->tpl_vars['accessory']->value['name'],22,'...',true),'htmlall','UTF-8');?>
725</a></h5>
726							<div class="product_desc">
727								<a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
728" title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['legend'],'htmlall','UTF-8');?>
729" class="product_image"><img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->tpl_vars['accessory']->value['link_rewrite'],$_smarty_tpl->tpl_vars['accessory']->value['id_image'],'medium');?>
730" alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['accessory']->value['legend'],'htmlall','UTF-8');?>
731" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
732" height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
733" /></a>
734								<a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
735" title="<?php echo smartyTranslate(array('s'=>'More'),$_smarty_tpl);?>
736" class="product_description"><?php echo smarty_modifier_truncate(preg_replace('!<[^>]*?>!', ' ', $_smarty_tpl->tpl_vars['accessory']->value['description_short']),70,'...');?>
737</a>
738							</div>
739							<p class="product_accessories_price">
740								<?php if ($_smarty_tpl->tpl_vars['accessory']->value['show_price']&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?><span class="price"><?php if ($_smarty_tpl->getVariable('priceDisplay')->value!=1){?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['accessory']->value['price']),$_smarty_tpl);?>
741<?php }else{ ?><?php echo Product::displayWtPrice(array('p'=>$_smarty_tpl->tpl_vars['accessory']->value['price_tax_exc']),$_smarty_tpl);?>
742<?php }?></span><?php }?>
743								<a class="button" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('accessoryLink')->value,'htmlall','UTF-8');?>
744" title="<?php echo smartyTranslate(array('s'=>'View'),$_smarty_tpl);?>
745"><?php echo smartyTranslate(array('s'=>'View'),$_smarty_tpl);?>
746</a>
747								<?php if (($_smarty_tpl->tpl_vars['accessory']->value['allow_oosp']||$_smarty_tpl->tpl_vars['accessory']->value['quantity']>0)&&$_smarty_tpl->tpl_vars['accessory']->value['available_for_order']&&!isset($_smarty_tpl->getVariable('restricted_country_mode',null,true,false)->value)&&!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
748									<a class="exclusive button ajax_add_to_cart_button" href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php');?>
749?qty=1&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['accessory']->value['id_product']);?>
750&amp;token=<?php echo $_smarty_tpl->getVariable('static_token')->value;?>
751&amp;add" rel="ajax_id_product_<?php echo intval($_smarty_tpl->tpl_vars['accessory']->value['id_product']);?>
752" title="<?php echo smartyTranslate(array('s'=>'Add to cart'),$_smarty_tpl);?>
753"><?php echo smartyTranslate(array('s'=>'Add to cart'),$_smarty_tpl);?>
754</a>
755								<?php }else{ ?>
756									<span class="exclusive"><?php echo smartyTranslate(array('s'=>'Add to cart'),$_smarty_tpl);?>
757</span>
758									<span class="availability"><?php if ((isset($_smarty_tpl->tpl_vars['accessory']->value['quantity_all_versions'])&&$_smarty_tpl->tpl_vars['accessory']->value['quantity_all_versions']>0)){?><?php echo smartyTranslate(array('s'=>'Product available with different options'),$_smarty_tpl);?>
759<?php }else{ ?><?php echo smartyTranslate(array('s'=>'Out of stock'),$_smarty_tpl);?>
760<?php }?></span>
761								<?php }?>
762							</p>
763						</li>
764
765					<?php }} ?>
766					</ul>
767				</div>
768			</div>
769		</ul>
770	<?php }?>
771	<?php echo $_smarty_tpl->getVariable('HOOK_PRODUCT_TAB_CONTENT')->value;?>
772
773	</div>
774</div>
775<?php }?>
776
777<!-- Customizable products -->
778<?php if ($_smarty_tpl->getVariable('product')->value->customizable){?>
779	<ul class="idTabs">
780		<li><a style="cursor: pointer"><?php echo smartyTranslate(array('s'=>'Product customization'),$_smarty_tpl);?>
781</a></li>
782	</ul>
783	<div class="customization_block">
784		<form method="post" action="<?php echo $_smarty_tpl->getVariable('customizationFormTarget')->value;?>
785" enctype="multipart/form-data" id="customizationForm">
786			<p>
787				<img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
788icon/infos.gif" alt="Informations" />
789				<?php echo smartyTranslate(array('s'=>'After saving your customized product, remember to add it to your cart.'),$_smarty_tpl);?>
790
791				<?php if ($_smarty_tpl->getVariable('product')->value->uploadable_files){?><br /><?php echo smartyTranslate(array('s'=>'Allowed file formats are: GIF, JPG, PNG'),$_smarty_tpl);?>
792<?php }?>
793			</p>
794			<?php if (intval($_smarty_tpl->getVariable('product')->value->uploadable_files)){?>
795			<h2><?php echo smartyTranslate(array('s'=>'Pictures'),$_smarty_tpl);?>
796</h2>
797			<ul id="uploadable_files">
798				<?php echo smarty_function_counter(array('start'=>0,'assign'=>'customizationField'),$_smarty_tpl);?>
799
800				<?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable;
801 $_from = $_smarty_tpl->getVariable('customizationFields')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
802 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']=-1;
803if ($_smarty_tpl->_count($_from) > 0){
804    foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
805 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++;
806?>
807					<?php if ($_smarty_tpl->tpl_vars['field']->value['type']==0){?>
808						<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->getVariable('product')->value->id)).('_')).($_smarty_tpl->tpl_vars['field']->value['id_customization_field']), null, null);?>
809							<?php if (isset($_smarty_tpl->getVariable('pictures',null,true,false)->value[$_smarty_tpl->getVariable('key',null,true,false)->value])){?><div class="customizationUploadBrowse">
810									<img src="<?php echo $_smarty_tpl->getVariable('pic_dir')->value;?>
811<?php echo $_smarty_tpl->getVariable('pictures')->value[$_smarty_tpl->getVariable('key')->value];?>
812_small" alt="" />
813									<a href="<?php echo $_smarty_tpl->getVariable('link')->value->getProductDeletePictureLink($_smarty_tpl->getVariable('product')->value,$_smarty_tpl->tpl_vars['field']->value['id_customization_field']);?>
814" title="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
815" >
816										<img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
817icon/delete.gif" alt="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
818" class="customization_delete_icon" width="11" height="13" />
819									</a>
820								</div><?php }?>
821							<div class="customizationUploadBrowse"><input type="file" name="file<?php echo $_smarty_tpl->tpl_vars['field']->value['id_customization_field'];?>
822" id="img<?php echo $_smarty_tpl->getVariable('customizationField')->value;?>
823" class="customization_block_input <?php if (isset($_smarty_tpl->getVariable('pictures',null,true,false)->value[$_smarty_tpl->getVariable('key',null,true,false)->value])){?>filled<?php }?>" /><?php if ($_smarty_tpl->tpl_vars['field']->value['required']){?><sup>*</sup><?php }?>
824							<div class="customizationUploadBrowseDescription"><?php if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])){?><?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
825<?php }else{ ?><?php echo smartyTranslate(array('s'=>'Please select an image file from your hard drive'),$_smarty_tpl);?>
826<?php }?></div></div>
827						</li>
828						<?php echo smarty_function_counter(array(),$_smarty_tpl);?>
829
830					<?php }?>
831				<?php }} ?>
832			</ul>
833			<?php }?>
834			<div class="clear"></div>
835			<?php if (intval($_smarty_tpl->getVariable('product')->value->text_fields)){?>
836			<h2><?php echo smartyTranslate(array('s'=>'Texts'),$_smarty_tpl);?>
837</h2>
838			<ul id="text_fields">
839				<?php echo smarty_function_counter(array('start'=>0,'assign'=>'customizationField'),$_smarty_tpl);?>
840
841				<?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable;
842 $_from = $_smarty_tpl->getVariable('customizationFields')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
843 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']=-1;
844if ($_smarty_tpl->_count($_from) > 0){
845    foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value){
846 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['customizationFields']['index']++;
847?>
848					<?php if ($_smarty_tpl->tpl_vars['field']->value['type']==1){?>
849						<li class="customizationUploadLine<?php if ($_smarty_tpl->tpl_vars['field']->value['required']){?> required<?php }?>"><?php $_smarty_tpl->tpl_vars['key'] = new Smarty_variable(((('textFields_').($_smarty_tpl->getVariable('product')->value->id)).('_')).($_smarty_tpl->tpl_vars['field']->value['id_customization_field']), null, null);?>
850							<?php if (!empty($_smarty_tpl->tpl_vars['field']->value['name'])){?><?php echo $_smarty_tpl->tpl_vars['field']->value['name'];?>
851<?php }?><?php if ($_smarty_tpl->tpl_vars['field']->value['required']){?><sup>*</sup><?php }?><textarea type="text" name="textField<?php echo $_smarty_tpl->tpl_vars['field']->value['id_customization_field'];?>
852" id="textField<?php echo $_smarty_tpl->getVariable('customizationField')->value;?>
853" rows="1" cols="40" class="customization_block_input" /><?php if (isset($_smarty_tpl->getVariable('textFields',null,true,false)->value[$_smarty_tpl->getVariable('key',null,true,false)->value])){?><?php echo stripslashes($_smarty_tpl->getVariable('textFields')->value[$_smarty_tpl->getVariable('key')->value]);?>
854<?php }?></textarea>
855						</li>
856						<?php echo smarty_function_counter(array(),$_smarty_tpl);?>
857
858					<?php }?>
859				<?php }} ?>
860			</ul>
861			<?php }?>
862			<p style="clear: left;" id="customizedDatas">
863				<input type="hidden" name="quantityBackup" id="quantityBackup" value="" />
864				<input type="hidden" name="submitCustomizedDatas" value="1" />
865				<input type="button" class="button" value="<?php echo smartyTranslate(array('s'=>'Save'),$_smarty_tpl);?>
866" onclick="javascript:saveCustomization()" />
867				<span id="ajax-loader" style="display:none"><img src="<?php echo $_smarty_tpl->getVariable('img_ps_dir')->value;?>
868loader.gif" alt="loader" /></span>
869			</p>
870		</form>
871		<p class="clear required"><sup>*</sup> <?php echo smartyTranslate(array('s'=>'required fields'),$_smarty_tpl);?>
872</p>
873	</div>
874<?php }?>
875
876<?php if (count($_smarty_tpl->getVariable('packItems')->value)>0){?>
877	<div>
878		<h2><?php echo smartyTranslate(array('s'=>'Pack content'),$_smarty_tpl);?>
879</h2>
880		<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-list.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
881$_template->assign('products',$_smarty_tpl->getVariable('packItems')->value); echo $_template->getRenderedTemplate();?><?php unset($_template);?>
882	</div>
883<?php }?>
884
885<?php }?>
886