<?php /* Smarty version 2.6.18, created on 2008-12-28 15:06:19
         compiled from /homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 15, false),array('function', 'convertPrice', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 27, false),array('function', 'displayWtPrice', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 39, false),array('modifier', 'escape', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 37, false),array('modifier', 'truncate', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 37, false),array('modifier', 'count', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 51, false),array('modifier', 'cat', '/homez.47/arboreth/www/arborethic_boutique_backup/modules/blockcart/blockcart.tpl', 55, false),)), $this); ?>


<?php if ($this->_tpl_vars['ajax_allowed']): ?>

<script type="text/javascript" src="<?php echo $this->_tpl_vars['base_dir']; ?>
js/jquery/iutil.prestashop-modifications.js"></script>

<script type="text/javascript" src="<?php echo $this->_tpl_vars['base_dir']; ?>
js/jquery/ifxtransfer.js"></script>

<script type="text/javascript" src="<?php echo $this->_tpl_vars['base_dir']; ?>
modules/blockcart/ajax-cart.js"></script>

<?php endif; ?>



<!-- MODULE Block cart -->

<div id="cart_block" class="block exclusive">

	<h4>

		<a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php"><?php echo smartyTranslate(array('s' => 'Cart','mod' => 'blockcart'), $this);?>
</a>

		<?php if ($this->_tpl_vars['ajax_allowed']): ?>

		<span id="block_cart_expand" <?php if ($this->_tpl_vars['colapseExpandStatus'] == 'expanded'): ?>class="hidden"<?php endif; ?>>&nbsp;</span>

		<span id="block_cart_collapse" <?php if ($this->_tpl_vars['colapseExpandStatus'] == 'collapsed' || ! isset ( $this->_tpl_vars['colapseExpandStatus'] )): ?>class="hidden"<?php endif; ?>>&nbsp;</span>

		<?php endif; ?>

	</h4>

	<div class="block_content">

	<!-- block summary -->

	<div id="cart_block_summary" class="<?php if ($this->_tpl_vars['colapseExpandStatus'] == 'expanded' || ! $this->_tpl_vars['ajax_allowed']): ?>collapsed<?php else: ?>expanded<?php endif; ?>">

		<span class="ajax_cart_quantity"><?php if ($this->_tpl_vars['cart_qties'] > 0): ?><?php echo $this->_tpl_vars['cart_qties']; ?>
<?php endif; ?></span>

		<span class="ajax_cart_product_txt_s<?php if ($this->_tpl_vars['cart_qties'] < 2): ?> hidden<?php endif; ?>"><?php echo smartyTranslate(array('s' => 'products','mod' => 'blockcart'), $this);?>
</span>

		<span class="ajax_cart_product_txt<?php if ($this->_tpl_vars['cart_qties'] != 1): ?> hidden<?php endif; ?>"><?php echo smartyTranslate(array('s' => 'product','mod' => 'blockcart'), $this);?>
</span>

		<span class="ajax_cart_total"><?php if ($this->_tpl_vars['cart_qties'] > 0): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(true)), $this);?>
<?php endif; ?></span>

		<span class="ajax_cart_no_product"><?php if ($this->_tpl_vars['cart_qties'] == 0): ?><?php echo smartyTranslate(array('s' => '(empty)','mod' => 'blockcart'), $this);?>
<?php endif; ?></span>

	</div>

	<!-- block list of products -->

	<div id="cart_block_list" class="<?php if ($this->_tpl_vars['colapseExpandStatus'] == 'expanded' || ! $this->_tpl_vars['ajax_allowed']): ?>expanded<?php else: ?>collapsed<?php endif; ?>">

	<?php if ($this->_tpl_vars['products']): ?>

		<dl class="products">

		<?php $_from = $this->_tpl_vars['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['myLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['myLoop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['product']):
        $this->_foreach['myLoop']['iteration']++;
?>

			<dt id="cart_block_product_<?php echo $this->_tpl_vars['product']['id_product']; ?>
<?php if ($this->_tpl_vars['product']['id_product_attribute']): ?>_<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
<?php endif; ?>" class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>">

				<span class="quantity-formated"><span class="quantity"><?php echo $this->_tpl_vars['product']['cart_quantity']; ?>
</span>x</span>

				<a class="cart_block_product_name" href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['product']['id_product'],$this->_tpl_vars['product']['link_rewrite']); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')))) ? $this->_run_mod_handler('truncate', true, $_tmp, 30) : smarty_modifier_truncate($_tmp, 30)); ?>
</a>

				<a class="ajax_cart_block_remove_link" href="<?php echo $this->_tpl_vars['base_dir']; ?>
cart.php?delete&amp;id_product=<?php echo $this->_tpl_vars['product']['id_product']; ?>
&amp;ipa=<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
&amp;token=<?php echo $this->_tpl_vars['static_token']; ?>
" title="<?php echo smartyTranslate(array('s' => 'remove this product from my cart'), $this);?>
">&nbsp;</a>

				<span class="price"><?php echo Product::displayWtPrice(array('p' => ($this->_tpl_vars['product']['price_wt']*$this->_tpl_vars['product']['cart_quantity'])), $this);?>
</span>

			</dt>

			<?php if (isset ( $this->_tpl_vars['product']['attributes_small'] )): ?>

			<dd id="cart_block_combination_of_<?php echo $this->_tpl_vars['product']['id_product']; ?>
<?php if ($this->_tpl_vars['product']['id_product_attribute']): ?>_<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
<?php endif; ?>" class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>">

				<a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['product']['id_product'],$this->_tpl_vars['product']['link_rewrite']); ?>
" title="<?php echo smartyTranslate(array('s' => 'Product detail'), $this);?>
"><?php echo $this->_tpl_vars['product']['attributes_small']; ?>
</a>

			</dd>

			<?php endif; ?>

		<?php endforeach; endif; unset($_from); ?>

		</dl>

	<?php endif; ?>

		<p <?php if ($this->_tpl_vars['products']): ?>class="hidden"<?php endif; ?> id="cart_block_no_products"><?php echo smartyTranslate(array('s' => 'No products','mod' => 'blockcart'), $this);?>
</p>

		

		<?php if (count($this->_tpl_vars['discounts']) > 0): ?><table id="vouchers">

			<tbody>

			<?php $_from = $this->_tpl_vars['discounts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['discount']):
?>

				<tr id="bloc_cart_voucher_<?php echo $this->_tpl_vars['discount']['id_discount']; ?>
">

					<td class="name" title="<?php echo $this->_tpl_vars['discount']['description']; ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['discount']['name'])) ? $this->_run_mod_handler('cat', true, $_tmp, ' : ') : smarty_modifier_cat($_tmp, ' : ')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['discount']['description']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['discount']['description'])))) ? $this->_run_mod_handler('truncate', true, $_tmp, 18, '...', true, false) : smarty_modifier_truncate($_tmp, 18, '...', true, false)); ?>
</td>

					<td class="price">-<?php echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_real']), $this);?>
</td>

					<td class="delete"><a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php?deleteDiscount=<?php echo $this->_tpl_vars['discount']['id_discount']; ?>
" title="<?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
icon/delete.gif" alt="<?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
" class="icon" /></a></td>

				</tr>

			<?php endforeach; endif; unset($_from); ?>

			</tbody>

		</table>

		<?php endif; ?>

		

		<p id="cart-prices">

			<span><?php echo smartyTranslate(array('s' => 'Shipping','mod' => 'blockcart'), $this);?>
</span>

			<span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost"><?php echo $this->_tpl_vars['shipping_cost']; ?>
</span>

			<br/>

			<?php if ($this->_tpl_vars['show_wrapping']): ?>

			<span><?php echo smartyTranslate(array('s' => 'Wrapping','mod' => 'blockcart'), $this);?>
</span>

			<span id="cart_block_wrapping_cost" class="price"><?php echo $this->_tpl_vars['wrapping_cost']; ?>
</span>

			<br/>

            <?php endif; ?>

			<span><?php echo smartyTranslate(array('s' => 'Total','mod' => 'blockcart'), $this);?>
</span>

			<span id="cart_block_total" class="price ajax_block_cart_total"><?php echo $this->_tpl_vars['total']; ?>
</span>

		</p>

		<p id="cart-buttons">

			<a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php" class="button_small" title="<?php echo smartyTranslate(array('s' => 'Cart','mod' => 'blockcart'), $this);?>
"><?php echo smartyTranslate(array('s' => 'Cart','mod' => 'blockcart'), $this);?>
</a>

			<a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php?step=1" id="button_order_cart" class="exclusive" title="<?php echo smartyTranslate(array('s' => 'Check out','mod' => 'blockcart'), $this);?>
"><?php echo smartyTranslate(array('s' => 'Check out','mod' => 'blockcart'), $this);?>
</a>

		</p>

	</div>

	</div>

</div>

<!-- /MODULE Block cart -->
