garancia/themes/default/_mobile/shopping-cart.tpl
2016-10-10 15:24:25 +02:00

337 lines
14 KiB
Smarty
Executable File

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $step!=0}
<script type="text/javascript">document.location.href='{$link->getPageLink('order.php')}?step=0';</script>
{/if}
{capture name=path}{l s='Your shopping cart'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<div class="borderGreen auto">
<h1>[{l s='Mon panier'}]</h1>
{assign var="current_step" value="summary"}
{include file="$tpl_dir./order-opc-steps.tpl"}
<p class="green">{l s='Livraison offerte à partir de 60€ d\'achats'}</p>
<div style="float:right" class="submit clear">
<a href="javascript:void(0)" onclick="$('#submitPanier').click()" class="button uppercase"><span>{l s='Valider mon panier'}</span></a>
</div>
<div style="float:left" class="fleche_off submit simple ">
<a href="{$link->getCategoryLink(2,'nos-produits')}" class="button simple">{l s='Continuer mes achats'}</a>
</div>
<div class="clear"></div>
<div class="order-opc-leftColumn">
<div class="contenu">
{if isset($account_created)}
<p class="success">
{l s='Your account has been created.'}
</p>
{/if}
{include file="$tpl_dir./errors.tpl"}
{if isset($empty)}
<p class="warning">{l s='Your shopping cart is empty.'}</p>
{elseif $PS_CATALOG_MODE}
<p class="warning">{l s='This store has not accepted your new order.'}</p>
{else}
<script type="text/javascript">
// <![CDATA[
var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}';
var currencyRate = '{$currencyRate|floatval}';
var currencyFormat = '{$currencyFormat|intval}';
var currencyBlank = '{$currencyBlank|intval}';
var txtProduct = "{l s='product' js=1}";
var txtProducts = "{l s='products' js=1}";
var deliveryAddress = {$cart->id_address_delivery|intval};
{if $total_products_wt>=100}
var maxE=5;
{else}
var maxE=3;
{/if}
// ]]>
</script>
<p style="display:none" id="emptyCartWarning" class="warning">{l s='Your shopping cart is empty.'}</p>
<div id="order-detail-content" class="table_block">
<table id="cart_summary" class="std">
<tfoot>
{*if $use_taxes}
{if $priceDisplay}
<tr class="cart_total_price">
<td colspan="5">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
<td class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{else}
<tr class="cart_total_price">
<td colspan="5">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
<td class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
</tr>
{/if}
{else}
<tr class="cart_total_price">
<td colspan="5">{l s='Total products'}</td>
<td class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{/if*}
<tr{if $total_wrapping == 0} style="display: none;"{/if}>
<td colspan="5">
{if $use_taxes}
{if $display_tax_label}{l s='Total gift wrapping (tax incl.):'}{else}{l s='Total gift-wrapping cost:'}{/if}
{else}
{l s='Total gift-wrapping cost:'}
{/if}
</td>
<td class="price-discount price" id="total_wrapping">
{if $use_taxes}
{if $priceDisplay}
{displayPrice price=$total_wrapping_tax_exc}
{else}
{displayPrice price=$total_wrapping}
{/if}
{else}
{displayPrice price=$total_wrapping_tax_exc}
{/if}
</td>
</tr>
{*if $total_shipping_tax_exc <= 0 && !isset($virtualCart)}
<tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}">
<td colspan="5">{l s='Shipping'}</td>
<td class="price" id="total_shipping">{l s='Free Shipping!'}</td>
</tr>
{else}
{if $use_taxes}
{if $priceDisplay}
<tr class="cart_total_delivery" {if $total_shipping_tax_exc <= 0} style="display:none;"{/if}>
<td colspan="5">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
<td class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>
</tr>
{else}
<tr class="cart_total_delivery"{if $total_shipping <= 0} style="display:none;"{/if}>
<td colspan="5">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
<td class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>
</tr>
{/if}
{else}
<tr class="cart_total_delivery"{if $total_shipping_tax_exc <= 0} style="display:none;"{/if}>
<td colspan="5">{l s='Total shipping'}</td>
<td class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td>
</tr>
{/if}
{/if*}
<tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}>
<td colspan="5">
{if $display_tax_label}
{if $use_taxes && $priceDisplay == 0}
{l s='Total vouchers (tax incl.):'}
{else}
{l s='Total vouchers (tax excl.)'}
{/if}
{else}
{l s='Total vouchers'}
{/if}
</td>
<td class="price-discount price" id="total_discount">
{if $use_taxes && $priceDisplay == 0}
{assign var='total_discounts_negative' value=$total_discounts * -1}
{else}
{assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1}
{/if}
{displayPrice price=$total_discounts_negative}
</td>
</tr>
<tr class="cart_total_price">
<td colspan="5" class="price total_price_container" id="total_price_container">
<b>{l s='Total'}</b> ({l s='Hors frais de livraison'})
</td>
<td class="bold"><span id="total_price_sansTransport">{displayPrice price=$total_products}</span></td>
</tr>
<tr class="free_ship">
<td colspan="6">
<div class="notfree {if $total_products_wt>=60}hidden{/if}">{l s='Plus que'} <span>{displayPrice price=60-$total_products_wt}</span> {l s='pour bénéficier d\'une livraison gratuite en France'}*</div>
<div class="free {if $total_products_wt<60}hidden{/if}">{l s='Livraison offerte'}</div>
</td>
</tr>
<tr class="tr_cart_voucher">
<td colspan="6" id="cart_voucher" class="cart_voucher">
{if $voucherAllowed}
{if isset($errors_discount) && $errors_discount}
<ul class="error">
{foreach $errors_discount as $k=>$error}
<li>{$error|escape:'htmlall':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher" class="std">
<fieldset>
<label for="discount_name">{l s='Code promotion / e-carte cadeau'}</label>
<div class="text">
<input type="text" class="inputText146" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
</div>
<div class="submit fleche_off">
<input type="submit" name="submitAddDiscount" value="{l s='Appliquer au panier'}" class="button simple" />
</div>
<input type="hidden" name="submitDiscount" />
</fieldset>
</form>
{if $displayVouchers}
<p id="title" class="title_offers">{l s='Take advantage of our exclusive offers:'}</p>
<div id="display_cart_vouchers">
{foreach $displayVouchers as $voucher}
{if $voucher.code != ''}<span onclick="$('#discount_name').val('{$voucher.code}');return false;" class="voucher_name">{$voucher.code}</span> - {/if}{$voucher.name}<br />
{/foreach}
</div>
{/if}
{/if}
</td>
</tr>
</tfoot>
<tbody>
{foreach $products as $product}
{if $product.id_category_default!=12}
{assign var='productId' value=$product.id_product}
{assign var='productAttributeId' value=$product.id_product_attribute}
{assign var='quantityDisplayed' value=0}
{assign var='odd' value=$product@iteration%2}
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)}
{* Display the product line *}
{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
{/if}
{/foreach}
{assign var='last_was_odd' value=$product@iteration%2}
{foreach $gift_products as $product}
{assign var='productId' value=$product.id_product}
{assign var='productAttributeId' value=$product.id_product_attribute}
{assign var='quantityDisplayed' value=0}
{assign var='odd' value=($product@iteration+$last_was_odd)%2}
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)}
{assign var='cannotModify' value=1}
{* Display the gift product line *}
{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
{/foreach}
</tbody>
{if sizeof($discounts)}
<tbody>
{foreach $discounts as $discount}
<tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
<td class="cart_discount_name" colspan="4"><i>{$discount.code}</i> - {$discount.name}</td>
<td class="price_discount_del">
{if strlen($discount.code)}<a href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}" class="price_discount_delete" title="{l s='Delete'}">{l s='Delete'}</a>{/if}
</td>
<td class="cart_discount_price">
<span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span>
</td>
</tr>
{/foreach}
</tbody>
{/if}
</table>
</div>
{if $show_option_allow_separate_package}
<p>
<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} />
<label for="allow_seperated_package">{l s='Send available products first'}</label>
</p>
{/if}
{if !$opc}
{if Configuration::get('PS_ALLOW_MULTISHIPPING')}
<p>
<input type="checkbox" {if $multi_shipping}checked="checked"{/if} id="enable-multishipping" />
<label for="enable-multishipping">{l s='I would like to specify a delivery address for each individual product.'}</label>
</p>
{/if}
{/if}
<form action="{if !$logged}{$link->getPageLink('authentication', true, NULL)}?back=order&step=1&amp;refresh=1{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" method="post">
<!-- MODE DE LIVRAISON -->
<div id="modeDeLivraison" class="modes">
<h2>[{l s='Mode de livraison'}]</h2>
<div class="carriers_list">
{include file="./order-carrier-simple.tpl"}
</div>
<p class="grey6"><br/>* {l s='Délai et participation aux frais de livraison pour la France métropolitaine, Corse et Monaco uniquement.'}</p>
<p class="grey6" style="text-align:right;"><a href="{$link->getCMSLink(1,'livraison')}" class="underline">{l s='En savoir plus'}</a></p>
</div>
<!-- ECHANTILLONS -->
{if isset($echantillons) && $echantillons|@count>0}
<div id="echantillons">
<h2>[{l s='Sélectionnez'} <span class="maxE">3</span> {l s='échantillons gratuits'}]</h2>
<div class="order-opc-echantillons">
{include file="./order-opc-echantillons.tpl"}
</div>
<div class="clear"></div>
</div>
{/if}
<div class="totalTTC">
{l s='Total TTC'} <span id="total_price">{displayPrice price=$total_price}
</div>
{*</form>*}
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
{*<form action="{if !$logged}{$link->getPageLink('authentication', true, NULL)}?back=order&step=1&amp;refresh=1{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" method="post" class="std">*}
<div class="clear">
<div class="submit " style="float:right">
<input type="submit" name="submitPanier" id="submitPanier" value="{l s='Valider mon panier'}" class="button uppercase" style="height:38px;line-height:38px"/>
</div>
{*<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&amp;back={$back}')}{else}{$link->getPageLink('order', true, NULL, 'step=1')}{/if}" class="button uppercase">{l s='Valider mon panier'}</a>*}
<div class="submit fleche_off" style="float:left">
<a href="{$link->getCategoryLink(2,'nos-produits')}" class="button simple">{l s='Continuer mes achats'}</a>
</div>
</div>
</form>
{if !empty($HOOK_SHOPPING_CART_EXTRA)}
<div class="clear"></div>
<div class="cart_navigation_extra">
<div id="HOOK_SHOPPING_CART_EXTRA">{$HOOK_SHOPPING_CART_EXTRA}</div>
</div>
{/if}
{/if}
</div>
<p class="emptyCartWarning hidden warning">{l s='Your shopping cart is empty.'}</p>
<div class="clear"></div>
</div>
<div class="order-opc-rightColumn">
{hook h='displayTopOrderRightColumn'}
{include file="./order-opc-rightColumn.tpl"}
}
</div>
</div>
<script type="text/javascript">
// <![CDATA[
{literal}$(document).ready(function(){
$('.delivery_option_radio:checked').click();
});{/literal}
$('#content').addClass('order');
// ]]>
</script>