PageRenderTime 8ms CodeModel.GetById 181ms app.highlight 256ms RepoModel.GetById 186ms app.codeStats 1ms

/tools/smarty/compile/0a22dc7d7629a2f640b06e6a624fbd7293096d7e.file.shopping-cart.tpl.php

http://marocmall.googlecode.com/
PHP | 576 lines | 561 code | 13 blank | 2 comment | 92 complexity | 878b3f3bb299d7c98fd232ec71d7ec97 MD5 | raw file
  1<?php /* Smarty version Smarty-3.0.7, created on 2011-12-29 10:47:08
  2         compiled from "C:\D\prestashoplf\prestashop/themes/ling/shopping-cart.tpl" */ ?>
  3<?php /*%%SmartyHeaderCode:119344efc452ca07f87-85153754%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4$_smarty_tpl->decodeProperties(array (
  5  'file_dependency' => 
  6  array (
  7    '0a22dc7d7629a2f640b06e6a624fbd7293096d7e' => 
  8    array (
  9      0 => 'C:\\D\\prestashoplf\\prestashop/themes/ling/shopping-cart.tpl',
 10      1 => 1309335596,
 11      2 => 'file',
 12    ),
 13  ),
 14  'nocache_hash' => '119344efc452ca07f87-85153754',
 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';
 21?><?php ob_start(); ?><?php echo smartyTranslate(array('s'=>'Your shopping cart'),$_smarty_tpl);?>
 22<?php  Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
 23<?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);
 24 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
 25<h1 id="cart_title"><?php echo smartyTranslate(array('s'=>'Shopping cart summary'),$_smarty_tpl);?>
 26</h1>
 27<?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('summary', null, null);?>
 28<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./order-steps.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 29 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
 30<?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);
 31 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
 32<?php if (isset($_smarty_tpl->getVariable('empty',null,true,false)->value)){?>
 33	<p class="warning"><?php echo smartyTranslate(array('s'=>'Your shopping cart is empty.'),$_smarty_tpl);?>
 34</p>
 35<?php }elseif($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
 36	<p class="warning"><?php echo smartyTranslate(array('s'=>'This store has not accepted your new order.'),$_smarty_tpl);?>
 37</p>
 38<?php }else{ ?>
 39	<script type="text/javascript">
 40	// <![CDATA[
 41	var baseDir = '<?php echo $_smarty_tpl->getVariable('base_dir_ssl')->value;?>
 42';
 43	var currencySign = '<?php echo html_entity_decode($_smarty_tpl->getVariable('currencySign')->value,2,"UTF-8");?>
 44';
 45	var currencyRate = '<?php echo floatval($_smarty_tpl->getVariable('currencyRate')->value);?>
 46';
 47	var currencyFormat = '<?php echo intval($_smarty_tpl->getVariable('currencyFormat')->value);?>
 48';
 49	var currencyBlank = '<?php echo intval($_smarty_tpl->getVariable('currencyBlank')->value);?>
 50';
 51	var txtProduct = "<?php echo smartyTranslate(array('s'=>'product'),$_smarty_tpl);?>
 52";
 53	var txtProducts = "<?php echo smartyTranslate(array('s'=>'products'),$_smarty_tpl);?>
 54";
 55	// ]]>
 56	</script>
 57	<p style="display:none" id="emptyCartWarning" class="warning"><?php echo smartyTranslate(array('s'=>'Your shopping cart is empty.'),$_smarty_tpl);?>
 58</p>
 59<?php if (isset($_smarty_tpl->getVariable('lastProductAdded',null,true,false)->value)&&$_smarty_tpl->getVariable('lastProductAdded')->value){?>
 60	<?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable;
 61 $_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 62if ($_smarty_tpl->_count($_from) > 0){
 63    foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
 64?>
 65		<?php if ($_smarty_tpl->tpl_vars['product']->value['id_product']==$_smarty_tpl->getVariable('lastProductAdded')->value['id_product']&&(!$_smarty_tpl->tpl_vars['product']->value['id_product_attribute']||($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']==$_smarty_tpl->getVariable('lastProductAdded')->value['id_product_attribute']))){?>
 66		<table class="cart_last_product std">
 67			<tr>
 68				<th colspan="2"><?php echo smartyTranslate(array('s'=>'Last added product'),$_smarty_tpl);?>
 69</th>
 70			</tr>
 71			<tr>
 72				<td class="cart_product"><a class="cart_last_product_img" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']),'htmlall','UTF-8');?>
 73"><img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'small');?>
 74" alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'],'htmlall','UTF-8');?>
 75"/></a></td>
 76				<td>
 77					<h5><a class="product_link" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']),'htmlall','UTF-8');?>
 78"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'],'htmlall','UTF-8');?>
 79</a></h5>
 80					<?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes'])&&$_smarty_tpl->tpl_vars['product']->value['attributes']){?><a class="product_descr" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']),'htmlall','UTF-8');?>
 81"><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['attributes'],'htmlall','UTF-8');?>
 82</a><?php }?>
 83				</td>
 84			</tr>
 85		</table>
 86		<?php }?>
 87	<?php }} ?>
 88<?php }?>
 89<p><?php echo smartyTranslate(array('s'=>'Your shopping cart contains'),$_smarty_tpl);?>
 90 <span id="summary_products_quantity"><?php echo $_smarty_tpl->getVariable('productNumber')->value;?>
 91 <?php if ($_smarty_tpl->getVariable('productNumber')->value==1){?><?php echo smartyTranslate(array('s'=>'product'),$_smarty_tpl);?>
 92<?php }else{ ?><?php echo smartyTranslate(array('s'=>'products'),$_smarty_tpl);?>
 93<?php }?></span></p>
 94<div id="order-detail-content" class="table_block">
 95	<table id="cart_summary" class="std">
 96		<thead>
 97			<tr>
 98				<th class="cart_product first_item"><?php echo smartyTranslate(array('s'=>'Product'),$_smarty_tpl);?>
 99</th>
100				<th class="cart_description item"><?php echo smartyTranslate(array('s'=>'Description'),$_smarty_tpl);?>
101</th>
102				<th class="cart_ref item"><?php echo smartyTranslate(array('s'=>'Ref.'),$_smarty_tpl);?>
103</th>
104				<th class="cart_availability item"><?php echo smartyTranslate(array('s'=>'Avail.'),$_smarty_tpl);?>
105</th>
106				<th class="cart_unit item"><?php echo smartyTranslate(array('s'=>'Unit price'),$_smarty_tpl);?>
107</th>
108				<th class="cart_quantity item"><?php echo smartyTranslate(array('s'=>'Qty'),$_smarty_tpl);?>
109</th>
110				<th class="cart_total last_item"><?php echo smartyTranslate(array('s'=>'Total'),$_smarty_tpl);?>
111</th>
112			</tr>
113		</thead>
114		<tfoot>
115			<?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
116				<?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
117					<tr class="cart_total_price">
118						<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total products'),$_smarty_tpl);?>
119<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
120<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
121</td>
122						<td class="price" id="total_product"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_products')->value),$_smarty_tpl);?>
123</span></td>
124					</tr>
125				<?php }else{ ?>
126					<tr class="cart_total_price">
127						<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total products'),$_smarty_tpl);?>
128<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
129<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
130</td>
131						<td class="price" id="total_product"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_products_wt')->value),$_smarty_tpl);?>
132</span></td>
133					</tr>
134				<?php }?>
135			<?php }else{ ?>
136				<tr class="cart_total_price">
137					<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total products:'),$_smarty_tpl);?>
138</td>
139					<td class="price" id="total_product"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_products')->value),$_smarty_tpl);?>
140</span></td>
141				</tr>
142			<?php }?>
143			<tr class="cart_total_voucher" <?php if ($_smarty_tpl->getVariable('total_discounts')->value==0){?>style="display: none;"<?php }?>>
144				<td colspan="6">
145				<?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
146					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
147						<?php echo smartyTranslate(array('s'=>'Total vouchers'),$_smarty_tpl);?>
148<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
149<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
150
151					<?php }else{ ?>
152						<?php echo smartyTranslate(array('s'=>'Total vouchers'),$_smarty_tpl);?>
153<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
154<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
155
156					<?php }?>
157				<?php }else{ ?>
158					<?php echo smartyTranslate(array('s'=>'Total vouchers:'),$_smarty_tpl);?>
159
160				<?php }?>
161				</td>
162				<td class="price-discount" id="total_discount">
163					<span class="price"><?php if ($_smarty_tpl->getVariable('use_taxes')->value){?><?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_discounts_tax_exc')->value),$_smarty_tpl);?>
164<?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_discounts')->value),$_smarty_tpl);?>
165<?php }?><?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_discounts_tax_exc')->value),$_smarty_tpl);?>
166<?php }?></span>
167				</td>
168			</tr>
169			<tr class="cart_total_voucher" <?php if ($_smarty_tpl->getVariable('total_wrapping')->value==0){?>style="display: none;"<?php }?>>
170				<td colspan="6">
171				<?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
172					<?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
173						<?php echo smartyTranslate(array('s'=>'Total gift-wrapping'),$_smarty_tpl);?>
174<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
175<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
176
177					<?php }else{ ?>
178						<?php echo smartyTranslate(array('s'=>'Total gift-wrapping'),$_smarty_tpl);?>
179<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
180<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
181
182					<?php }?>
183				<?php }else{ ?>
184					<?php echo smartyTranslate(array('s'=>'Total gift-wrapping:'),$_smarty_tpl);?>
185
186				<?php }?>
187				</td>
188				<td class="price-discount" id="total_wrapping">
189					<span class="price"><?php if ($_smarty_tpl->getVariable('use_taxes')->value){?><?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_wrapping_tax_exc')->value),$_smarty_tpl);?>
190<?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_wrapping')->value),$_smarty_tpl);?>
191<?php }?><?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_wrapping_tax_exc')->value),$_smarty_tpl);?>
192<?php }?></span>
193				</td>
194			</tr>
195			<?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
196				<?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
197					<tr class="cart_total_delivery" <?php if ($_smarty_tpl->getVariable('shippingCost')->value<=0){?> style="display:none;"<?php }?>>
198						<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total shipping'),$_smarty_tpl);?>
199<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
200<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
201</td>
202						<td class="price" id="total_shipping"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('shippingCostTaxExc')->value),$_smarty_tpl);?>
203</span></td>
204					</tr>
205				<?php }else{ ?>
206					<tr class="cart_total_delivery"<?php if ($_smarty_tpl->getVariable('shippingCost')->value<=0){?> style="display:none;"<?php }?>>
207						<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total shipping'),$_smarty_tpl);?>
208<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
209<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
210</td>
211						<td class="price" id="total_shipping" ><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('shippingCost')->value),$_smarty_tpl);?>
212</span></td>
213					</tr>
214				<?php }?>
215			<?php }else{ ?>
216				<tr class="cart_total_delivery"<?php if ($_smarty_tpl->getVariable('shippingCost')->value<=0){?> style="display:none;"<?php }?>>
217					<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total shipping:'),$_smarty_tpl);?>
218</td>
219					<td class="price" id="total_shipping" ><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('shippingCostTaxExc')->value),$_smarty_tpl);?>
220</span></td>
221				</tr>
222			<?php }?>
223			<?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
224			<tr class="cart_total_price">
225				<td colspan="6">
226					<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?>
227						<?php echo smartyTranslate(array('s'=>'Total (tax excl.):'),$_smarty_tpl);?>
228
229					<?php }else{ ?>
230						<?php echo smartyTranslate(array('s'=>'Subtotal:'),$_smarty_tpl);?>
231
232					<?php }?>
233				</td>
234				<td class="price" id="total_price_without_tax"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_price_without_tax')->value),$_smarty_tpl);?>
235</span></td>
236			</tr>
237			<tr class="cart_total_tax">
238				<td colspan="6">
239					<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?>
240						<?php echo smartyTranslate(array('s'=>'Total tax:'),$_smarty_tpl);?>
241
242					<?php }else{ ?>
243						<?php echo smartyTranslate(array('s'=>'Estimated Sales Tax:'),$_smarty_tpl);?>
244
245					<?php }?>
246				</td>
247				<td class="price" id="total_tax"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_tax')->value),$_smarty_tpl);?>
248</span></td>
249			</tr>
250			<tr class="cart_total_price">
251				<td colspan="6">
252					<?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?>
253						<?php echo smartyTranslate(array('s'=>'Total (tax incl.):'),$_smarty_tpl);?>
254
255					<?php }else{ ?>
256						<?php echo smartyTranslate(array('s'=>'Total:'),$_smarty_tpl);?>
257
258					<?php }?>
259				</td>
260				<td class="price" id="total_price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_price')->value),$_smarty_tpl);?>
261</span></td>
262			</tr>
263			<?php }else{ ?>
264			<tr class="cart_total_price">
265				<td colspan="6"><?php echo smartyTranslate(array('s'=>'Total:'),$_smarty_tpl);?>
266</td>
267				<td class="price" id="total_price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_price_without_tax')->value),$_smarty_tpl);?>
268</span></td>
269			</tr>
270			<?php }?>
271			<tr class="cart_free_shipping" <?php if ($_smarty_tpl->getVariable('free_ship')->value<=0||$_smarty_tpl->getVariable('isVirtualCart')->value){?> style="display:none;" <?php }?>>
272					<td colspan="6" style="white-space:normal;"><?php echo smartyTranslate(array('s'=>'Remaining amount to be added to your cart in order to obtain free shipping:'),$_smarty_tpl);?>
273</td>
274					<td id="free_shipping" class="price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('free_ship')->value),$_smarty_tpl);?>
275</span></td>
276				</tr>
277		</tfoot>
278		<tbody>
279		<?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable;
280 $_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
281if ($_smarty_tpl->_count($_from) > 0){
282    foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
283?>
284			<?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, null);?>
285			<?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, null);?>
286			<?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable(0, null, null);?>
287			<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./shopping-cart-product-line.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
288 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
289			<?php if (isset($_smarty_tpl->getVariable('customizedDatas',null,true,false)->value[$_smarty_tpl->getVariable('productId',null,true,false)->value][$_smarty_tpl->getVariable('productAttributeId',null,true,false)->value])){?>
290				<?php  $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable;
291 $_smarty_tpl->tpl_vars['id_customization'] = new Smarty_Variable;
292 $_from = $_smarty_tpl->getVariable('customizedDatas')->value[$_smarty_tpl->getVariable('productId')->value][$_smarty_tpl->getVariable('productAttributeId')->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
293if ($_smarty_tpl->_count($_from) > 0){
294    foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value){
295 $_smarty_tpl->tpl_vars['id_customization']->value = $_smarty_tpl->tpl_vars['customization']->key;
296?>
297					<tr id="product_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
298_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
299_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
300" class="alternate_item cart_item">
301						<td colspan="5">
302							<?php  $_smarty_tpl->tpl_vars['datas'] = new Smarty_Variable;
303 $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable;
304 $_from = $_smarty_tpl->tpl_vars['customization']->value['datas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
305if ($_smarty_tpl->_count($_from) > 0){
306    foreach ($_from as $_smarty_tpl->tpl_vars['datas']->key => $_smarty_tpl->tpl_vars['datas']->value){
307 $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['datas']->key;
308?>
309								<?php if ($_smarty_tpl->tpl_vars['type']->value==$_smarty_tpl->getVariable('CUSTOMIZE_FILE')->value){?>
310									<div class="customizationUploaded">
311										<ul class="customizationUploaded">
312											<?php  $_smarty_tpl->tpl_vars['picture'] = new Smarty_Variable;
313 $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
314if ($_smarty_tpl->_count($_from) > 0){
315    foreach ($_from as $_smarty_tpl->tpl_vars['picture']->key => $_smarty_tpl->tpl_vars['picture']->value){
316?><li><img src="<?php echo $_smarty_tpl->getVariable('pic_dir')->value;?>
317<?php echo $_smarty_tpl->tpl_vars['picture']->value['value'];?>
318_small" alt="" class="customizationUploaded" /></li><?php }} ?>
319										</ul>
320									</div>
321								<?php }elseif($_smarty_tpl->tpl_vars['type']->value==$_smarty_tpl->getVariable('CUSTOMIZE_TEXTFIELD')->value){?>
322									<ul class="typedText">
323										<?php  $_smarty_tpl->tpl_vars['textField'] = new Smarty_Variable;
324 $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
325 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['typedText']['index']=-1;
326if ($_smarty_tpl->_count($_from) > 0){
327    foreach ($_from as $_smarty_tpl->tpl_vars['textField']->key => $_smarty_tpl->tpl_vars['textField']->value){
328 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['typedText']['index']++;
329?><li><?php if ($_smarty_tpl->tpl_vars['textField']->value['name']){?><?php echo $_smarty_tpl->tpl_vars['textField']->value['name'];?>
330<?php }else{ ?><?php echo smartyTranslate(array('s'=>'Text #'),$_smarty_tpl);?>
331<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['typedText']['index']+1;?>
332<?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
333 <?php echo $_smarty_tpl->tpl_vars['textField']->value['value'];?>
334</li><?php }} ?>
335									</ul>
336								<?php }?>
337							<?php }} ?>
338						</td>
339						<td class="cart_quantity">
340							<div id="cart_quantity_button" style="float:left">
341								<a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
342_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
343_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
344" href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php',true);?>
345?add&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
346&amp;ipa=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
347&amp;id_customization=<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
348&amp;token=<?php echo $_smarty_tpl->getVariable('token_cart')->value;?>
349" title="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
350"><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
351icon/quantity_up.png" alt="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
352" /></a>
353								<?php if ($_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<($_smarty_tpl->tpl_vars['customization']->value['quantity']-$_smarty_tpl->getVariable('quantityDisplayed')->value)||$_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<=1){?>
354								<input class="text" size="2" type="text" value="<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity'];?>
355" class="cart_quantity_input" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
356_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
357_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
358"/>
359								<a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
360_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
361_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
362" href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php',true);?>
363?add&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
364&amp;ipa=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
365&amp;id_customization=<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
366&amp;op=down&amp;token=<?php echo $_smarty_tpl->getVariable('token_cart')->value;?>
367" title="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
368"><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
369icon/quantity_down.png" alt="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
370" /></a>
371							<?php }else{ ?>
372							<a class="cart_quantity_down" style="opacity:0.3;" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
373_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
374_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
375" href="#" title="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
376"><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
377icon/quantity_down.png" alt="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
378" /></a>
379							<?php }?>
380							</div>
381							<a rel="nofollow" class="cart_quantity_delete" id="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
382_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
383_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
384" href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php',true);?>
385?delete&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
386&amp;ipa=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
387&amp;id_customization=<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
388&amp;token=<?php echo $_smarty_tpl->getVariable('token_cart')->value;?>
389"><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
390icon/delete.gif" alt="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
391" title="<?php echo smartyTranslate(array('s'=>'Delete this customization'),$_smarty_tpl);?>
392" class="icon" /></a>
393							<input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity'];?>
394" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
395_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
396_<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
397_hidden"/>
398						</td>
399						<td class="cart_total"></td>
400					</tr>
401					<?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable($_smarty_tpl->getVariable('quantityDisplayed')->value+$_smarty_tpl->tpl_vars['customization']->value['quantity'], null, null);?>
402				<?php }} ?>
403				<?php if ($_smarty_tpl->tpl_vars['product']->value['quantity']-$_smarty_tpl->getVariable('quantityDisplayed')->value>0){?><?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./shopping-cart-product-line.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
404 echo $_template->getRenderedTemplate();?><?php unset($_template);?><?php }?>
405			<?php }?>
406		<?php }} ?>
407		</tbody>
408	<?php if (sizeof($_smarty_tpl->getVariable('discounts')->value)){?>
409		<tbody>
410		<?php  $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable;
411 $_from = $_smarty_tpl->getVariable('discounts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
412 $_smarty_tpl->tpl_vars['discount']->total= $_smarty_tpl->_count($_from);
413 $_smarty_tpl->tpl_vars['discount']->iteration=0;
414 $_smarty_tpl->tpl_vars['discount']->index=-1;
415if ($_smarty_tpl->tpl_vars['discount']->total > 0){
416    foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value){
417 $_smarty_tpl->tpl_vars['discount']->iteration++;
418 $_smarty_tpl->tpl_vars['discount']->index++;
419 $_smarty_tpl->tpl_vars['discount']->first = $_smarty_tpl->tpl_vars['discount']->index === 0;
420 $_smarty_tpl->tpl_vars['discount']->last = $_smarty_tpl->tpl_vars['discount']->iteration === $_smarty_tpl->tpl_vars['discount']->total;
421 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['discountLoop']['first'] = $_smarty_tpl->tpl_vars['discount']->first;
422 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['discountLoop']['last'] = $_smarty_tpl->tpl_vars['discount']->last;
423?>
424			<tr class="cart_discount <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['discountLoop']['last']){?>last_item<?php }elseif($_smarty_tpl->getVariable('smarty')->value['foreach']['discountLoop']['first']){?>first_item<?php }else{ ?>item<?php }?>" id="cart_discount_<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount'];?>
425">
426				<td class="cart_discount_name" colspan="2"><?php echo $_smarty_tpl->tpl_vars['discount']->value['name'];?>
427</td>
428				<td class="cart_discount_description" colspan="3"><?php echo $_smarty_tpl->tpl_vars['discount']->value['description'];?>
429</td>
430				<td class="cart_discount_delete"><a href="<?php if ($_smarty_tpl->getVariable('opc')->value){?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order-opc.php',true);?>
431<?php }else{ ?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php',true);?>
432<?php }?>?deleteDiscount=<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount'];?>
433" title="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
434"><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
435icon/delete.gif" alt="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
436" class="icon" /></a></td>
437				<td class="cart_discount_price"><span class="price-discount price">
438					<?php if ($_smarty_tpl->tpl_vars['discount']->value['value_real']>0){?>
439						<?php if (!$_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_real']*-1),$_smarty_tpl);?>
440<?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']*-1),$_smarty_tpl);?>
441<?php }?>
442					<?php }?>
443				</span></td>
444			</tr>
445		<?php }} ?>
446		</tbody>
447	<?php }?>
448	</table>
449</div>
450<?php if ($_smarty_tpl->getVariable('voucherAllowed')->value){?>
451<div id="cart_voucher" class="table_block">
452	<?php if (isset($_smarty_tpl->getVariable('errors_discount',null,true,false)->value)&&$_smarty_tpl->getVariable('errors_discount')->value){?>
453		<ul class="error">
454		<?php  $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable;
455 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
456 $_from = $_smarty_tpl->getVariable('errors_discount')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
457if ($_smarty_tpl->_count($_from) > 0){
458    foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value){
459 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['error']->key;
460?>
461			<li><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['error']->value,'htmlall','UTF-8');?>
462</li>
463		<?php }} ?>
464		</ul>
465	<?php }?>
466	<form action="<?php if ($_smarty_tpl->getVariable('opc')->value){?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order-opc.php',true);?>
467<?php }else{ ?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php',true);?>
468<?php }?>" method="post" id="voucher">
469		<fieldset>
470			<h2><?php echo smartyTranslate(array('s'=>'Vouchers'),$_smarty_tpl);?>
471</h2>
472			<p class="text">
473				<label for="discount_name"><?php echo smartyTranslate(array('s'=>'Code:'),$_smarty_tpl);?>
474</label>
475				<input type="text" id="discount_name" name="discount_name" value="<?php if (isset($_smarty_tpl->getVariable('discount_name',null,true,false)->value)&&$_smarty_tpl->getVariable('discount_name')->value){?><?php echo $_smarty_tpl->getVariable('discount_name')->value;?>
476<?php }?>" />
477			</p>
478			<p class="submit"><input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
479" class="button" /></p>
480		<?php if ($_smarty_tpl->getVariable('displayVouchers')->value){?>
481			<div class="clearblock"></div>
482			<div id="display_cart_vouchers">
483			<h4><?php echo smartyTranslate(array('s'=>'Take advantage of our offers:'),$_smarty_tpl);?>
484</h4>
485			<?php  $_smarty_tpl->tpl_vars['voucher'] = new Smarty_Variable;
486 $_from = $_smarty_tpl->getVariable('displayVouchers')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
487if ($_smarty_tpl->_count($_from) > 0){
488    foreach ($_from as $_smarty_tpl->tpl_vars['voucher']->key => $_smarty_tpl->tpl_vars['voucher']->value){
489?>
490				<div><span onclick="$('#discount_name').val('<?php echo $_smarty_tpl->tpl_vars['voucher']->value['name'];?>
491');return false;" class="voucher_name"><?php echo $_smarty_tpl->tpl_vars['voucher']->value['name'];?>
492</span> &mdash; <?php echo $_smarty_tpl->tpl_vars['voucher']->value['description'];?>
493</div>
494			<?php }} ?>
495			</div>
496		<?php }?>
497		</fieldset>
498	</form>
499</div>
500<?php }?>
501<div id="HOOK_SHOPPING_CART"><?php echo $_smarty_tpl->getVariable('HOOK_SHOPPING_CART')->value;?>
502</div>
503<?php if ((($_smarty_tpl->getVariable('carrier')->value->id&&!isset($_smarty_tpl->getVariable('virtualCart',null,true,false)->value))||$_smarty_tpl->getVariable('delivery')->value->id||$_smarty_tpl->getVariable('invoice')->value->id)&&!$_smarty_tpl->getVariable('opc')->value){?>
504<div class="order_delivery">
505	<?php if ($_smarty_tpl->getVariable('delivery')->value->id){?>
506	<ul id="delivery_address" class="address item">
507		<li class="address_title"><?php echo smartyTranslate(array('s'=>'Delivery address'),$_smarty_tpl);?>
508</li>
509		<?php if ($_smarty_tpl->getVariable('delivery')->value->company){?><li class="address_company"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->company,'htmlall','UTF-8');?>
510</li><?php }?>
511		<li class="address_name"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->firstname,'htmlall','UTF-8');?>
512 <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->lastname,'htmlall','UTF-8');?>
513</li>
514		<li class="address_address1"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->address1,'htmlall','UTF-8');?>
515</li>
516		<?php if ($_smarty_tpl->getVariable('delivery')->value->address2){?><li class="address_address2"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->address2,'htmlall','UTF-8');?>
517</li><?php }?>
518		<li class="address_city"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->postcode,'htmlall','UTF-8');?>
519 <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->city,'htmlall','UTF-8');?>
520</li>
521		<li class="address_country"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->country,'htmlall','UTF-8');?>
522 <?php if ($_smarty_tpl->getVariable('delivery_state')->value){?>(<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery_state')->value,'htmlall','UTF-8');?>
523)<?php }?></li>
524	</ul>
525	<?php }?>
526	<?php if ($_smarty_tpl->getVariable('invoice')->value->id){?>
527	<ul id="invoice_address" class="address alternate_item">
528		<li class="address_title"><?php echo smartyTranslate(array('s'=>'Invoice address'),$_smarty_tpl);?>
529</li>
530		<?php if ($_smarty_tpl->getVariable('invoice')->value->company){?><li class="address_company"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->company,'htmlall','UTF-8');?>
531</li><?php }?>
532		<li class="address_name"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->firstname,'htmlall','UTF-8');?>
533 <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->lastname,'htmlall','UTF-8');?>
534</li>
535		<li class="address_address1"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->address1,'htmlall','UTF-8');?>
536</li>
537		<?php if ($_smarty_tpl->getVariable('invoice')->value->address2){?><li class="address_address2"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->address2,'htmlall','UTF-8');?>
538</li><?php }?>
539		<li class="address_city"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->postcode,'htmlall','UTF-8');?>
540 <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->city,'htmlall','UTF-8');?>
541</li>
542		<li class="address_country"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->country,'htmlall','UTF-8');?>
543 <?php if ($_smarty_tpl->getVariable('invoice_state')->value){?>(<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice_state')->value,'htmlall','UTF-8');?>
544)<?php }?></li>
545	</ul>
546	<?php }?>
547<div class="clearblock"></div>
548	<?php if ($_smarty_tpl->getVariable('carrier')->value->id&&!isset($_smarty_tpl->getVariable('virtualCart',null,true,false)->value)){?>
549	<div id="order_carrier">
550		<h4><?php echo smartyTranslate(array('s'=>'Carrier:'),$_smarty_tpl);?>
551</h4>
552		<?php if (isset($_smarty_tpl->getVariable('carrierPicture',null,true,false)->value)){?><img src="<?php echo $_smarty_tpl->getVariable('img_ship_dir')->value;?>
553<?php echo $_smarty_tpl->getVariable('carrier')->value->id;?>
554.jpg" alt="<?php echo smartyTranslate(array('s'=>'Carrier'),$_smarty_tpl);?>
555" /><?php }?>
556		<span><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('carrier')->value->name,'htmlall','UTF-8');?>
557</span>
558	</div>
559	<?php }?>
560</div>
561<?php }?>
562<p class="cart_navigation">
563	<?php if (!$_smarty_tpl->getVariable('opc')->value){?><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php',true);?>
564?step=1<?php if ($_smarty_tpl->getVariable('back')->value){?>&amp;back=<?php echo $_smarty_tpl->getVariable('back')->value;?>
565<?php }?>" class="exclusive" title="<?php echo smartyTranslate(array('s'=>'Next'),$_smarty_tpl);?>
566"><?php echo smartyTranslate(array('s'=>'Next'),$_smarty_tpl);?>
567 &raquo;</a><?php }?>
568	<a href="<?php if ((isset($_SERVER['HTTP_REFERER'])&&strstr($_SERVER['HTTP_REFERER'],'order.php'))||!isset($_SERVER['HTTP_REFERER'])){?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('index.php');?>
569<?php }else{ ?><?php echo Tools::secureReferrer(smarty_modifier_escape($_SERVER['HTTP_REFERER'],'htmlall','UTF-8'));?>
570<?php }?>" class="button_large" title="<?php echo smartyTranslate(array('s'=>'Continue shopping'),$_smarty_tpl);?>
571">&laquo; <?php echo smartyTranslate(array('s'=>'Continue shopping'),$_smarty_tpl);?>
572</a>
573</p>
574<?php echo $_smarty_tpl->getVariable('HOOK_SHOPPING_CART_EXTRA')->value;?>
575
576<?php }?>