541 lines
35 KiB
Smarty
Executable File
541 lines
35 KiB
Smarty
Executable File
{*
|
||
* 2007-2014 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-2014 PrestaShop SA
|
||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||
* International Registered Trademark & Property of PrestaShop SA
|
||
*}
|
||
|
||
{capture name=path}{l s='Your shopping cart'}{/capture}
|
||
|
||
{assign var='current_step' value='summary'}
|
||
{include file="$tpl_dir./order-steps.tpl"}
|
||
<h1 id="cart_title" class="page-heading snotmobile">
|
||
{l s='Shopping-cart summary'}
|
||
<span class="shape-red-long"></span>
|
||
</h1>
|
||
<h1 id="cart_title" class="page-heading smobile">
|
||
{l s='Résumé du panier'}
|
||
<span class="shape-red-long"></span>
|
||
</h1>
|
||
|
||
{if isset($account_created)}
|
||
<p class="alert alert-success">
|
||
{l s='Your account has been created.'}
|
||
</p>
|
||
{/if}
|
||
{include file="$tpl_dir./errors.tpl"}
|
||
|
||
{if isset($empty)}
|
||
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||
|
||
<p class="cart_navigation clearfix">
|
||
<a
|
||
href="{$link->getPageLink('index')}"
|
||
class="button-grey button-grey-min left"
|
||
title="{l s='Continue shopping'}">
|
||
<span>
|
||
{l s='Continue shopping'}
|
||
</span>
|
||
</a>
|
||
</p>
|
||
{elseif $PS_CATALOG_MODE}
|
||
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
|
||
{else}
|
||
<p style="display:none" id="emptyCartWarning" class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
|
||
{if isset($lastProductAdded) AND $lastProductAdded}
|
||
<div class="cart_last_product">
|
||
<div class="cart_last_product_header">
|
||
<div class="left">{l s='Last product added'}</div>
|
||
</div>
|
||
<a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'html':'UTF-8'}">
|
||
<img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$lastProductAdded.name|escape:'html':'UTF-8'}"/>
|
||
</a>
|
||
<div class="cart_last_product_content">
|
||
<p class="product-name">
|
||
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
|
||
{$lastProductAdded.name|escape:'html':'UTF-8'}
|
||
</a>
|
||
</p>
|
||
{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}
|
||
<small>
|
||
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
|
||
{$lastProductAdded.attributes|escape:'html':'UTF-8'}
|
||
</a>
|
||
</small>
|
||
{/if}
|
||
</div>
|
||
</div>
|
||
{/if}
|
||
{assign var='total_discounts_num' value="{if $total_discounts != 0}1{else}0{/if}"}
|
||
{assign var='use_show_taxes' value="{if $use_taxes && $show_taxes}2{else}0{/if}"}
|
||
{assign var='total_wrapping_taxes_num' value="{if $total_wrapping != 0}1{else}0{/if}"}
|
||
{* eu-legal *}
|
||
{hook h="displayBeforeShoppingCartBlock"}
|
||
<div id="order-detail-content" class="table_block table-responsive">
|
||
<table id="cart_summary" class="table {if $PS_STOCK_MANAGEMENT}stock-management-on{else}stock-management-off{/if}">
|
||
<thead>
|
||
<tr>
|
||
<th class="cart_product first_item">{l s='Product'}</th>
|
||
<th class="cart_description item"></th>
|
||
{assign var='col_span_subtotal' value='2'}
|
||
<th class="cart_unit item">{l s='Unit price'}</th>
|
||
<th class="cart_quantity item">{l s='Qty'}</th>
|
||
<th class="cart_total item">{l s='Total'}</th>
|
||
<th class="cart_delete last_item"> </th>
|
||
</tr>
|
||
</thead>
|
||
<tfoot>
|
||
{if $use_taxes}
|
||
{if $priceDisplay}
|
||
<tr class="cart_total_price">
|
||
<td rowspan="5" colspan="2" class="cart_voucher">
|
||
{if $voucherAllowed}
|
||
{if isset($errors_discount) && $errors_discount}
|
||
<ul class="alert alert-danger">
|
||
{foreach $errors_discount as $k=>$error}
|
||
<li>{$error|escape:'html':'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">
|
||
<fieldset>
|
||
<h4>{l s='Vouchers'}</h4>
|
||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||
<input type="hidden" name="submitDiscount" />
|
||
<button type="submit" name="submitAddDiscount" class="button-grey"><span>{l s='OK'}</span></button>
|
||
</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}
|
||
{$voucher.name} : {if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> {/if}<br />
|
||
{/foreach}
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
</td>
|
||
{*<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
|
||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>*}
|
||
<td colspan="{$col_span_subtotal}" class="text-right">
|
||
{l s='Total (tax excl.)'}
|
||
<span class='text-fdp'>{l s='(hors frais de port)'}</span>
|
||
</td>
|
||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=($total_products - $total_discounts)}</td>
|
||
</tr>
|
||
{else}
|
||
<tr class="cart_total_price">
|
||
<td rowspan="3" colspan="2" class="cart_voucher">
|
||
{if $voucherAllowed}
|
||
{if isset($errors_discount) && $errors_discount}
|
||
<ul class="alert alert-danger">
|
||
{foreach $errors_discount as $k=>$error}
|
||
<li>{$error|escape:'html':'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">
|
||
<fieldset>
|
||
<h4>{l s='Vouchers'}</h4>
|
||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||
<input type="hidden" name="submitDiscount" />
|
||
<button type="submit" name="submitAddDiscount" class="button-grey"><span>{l s='OK'}</span></button>
|
||
</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}
|
||
{$voucher.name} : {if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> {/if}<br />
|
||
{/foreach}
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
</td>
|
||
{*<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total TTC'}{else}{l s='Total products'}{/if}</td>
|
||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>*}
|
||
<td colspan="{$col_span_subtotal}" class="total_price_container text-right">
|
||
<span>{l s='Total'} {l s='TTC'}</span>
|
||
<span class='text-fdp'>{l s='(hors frais de port)'}</span>
|
||
</td>
|
||
<td colspan="2" class="price" id="total_price_container">
|
||
<span id="total_price">{displayPrice price=($total_products_wt - $total_discounts)}</span>
|
||
</td>
|
||
</tr>
|
||
{/if}
|
||
{else}
|
||
<tr class="cart_total_price">
|
||
<td rowspan="5" colspan="2" class="cart_voucher">
|
||
{if $voucherAllowed}
|
||
{if isset($errors_discount) && $errors_discount}
|
||
<ul class="alert alert-danger">
|
||
{foreach $errors_discount as $k=>$error}
|
||
<li>{$error|escape:'html':'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">
|
||
<fieldset>
|
||
<h4>{l s='Vouchers'}</h4>
|
||
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
|
||
<input type="hidden" name="submitDiscount" />
|
||
<button type="submit" name="submitAddDiscount" class="button-grey">
|
||
<span>{l s='OK'}</span>
|
||
</button>
|
||
</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}
|
||
{$voucher.name} : {if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> {/if}<br />
|
||
{/foreach}
|
||
</div>
|
||
{/if}
|
||
{/if}
|
||
</td>
|
||
{*<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total products'}</td>
|
||
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>*}
|
||
<td colspan="{$col_span_subtotal}" class="text-right">
|
||
{l s='Total (tax excl.)'}
|
||
<span class='text-fdp'>{l s='(hors frais de port)'}</span>
|
||
</td>
|
||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=($total_products - $total_discounts)}</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
|
||
{if $use_taxes}
|
||
{if $priceDisplay}
|
||
{assign var='total_saving' value='0'}
|
||
{foreach from=$products item='product'}
|
||
{$total_saving = $total_saving + (($product.price_without_specific_price-$product.price) * $product.cart_quantity) }
|
||
{/foreach}
|
||
{$total_saving = $total_saving + $total_discounts}
|
||
{else}
|
||
{assign var='total_saving' value='0'}
|
||
{foreach from=$products item='product'}
|
||
{$total_saving = $total_saving + (($product.price_without_specific_price-$product.price_wt) * $product.cart_quantity) }
|
||
{/foreach}
|
||
{$total_saving = $total_saving + $total_discounts}
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $use_taxes}
|
||
<tr class="cart_total_delivery">
|
||
<td colspan="{$col_span_subtotal}" class="text-right"></td>
|
||
<td colspan="2" class="price price-bg-red"></td>
|
||
</tr>
|
||
{*if $free_shipping_ok}
|
||
<tr class="cart_total_delivery">
|
||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='frais de port'}</td>
|
||
<td colspan="2" class="price">{l s='GRATUIT'}</td>
|
||
</tr>
|
||
{else}
|
||
{if $priceDisplay}
|
||
<tr class="cart_total_delivery">
|
||
<td colspan="{$col_span_subtotal}" class="text-right">
|
||
{l s='frais de port ht à partir de'}
|
||
</td>
|
||
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>
|
||
</tr>
|
||
{else}
|
||
<tr class="cart_total_delivery">
|
||
<td colspan="{$col_span_subtotal}" class="text-right">
|
||
{l s='frais de port ttc à partir de'}
|
||
</td>
|
||
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>
|
||
</tr>
|
||
{/if}
|
||
{/if*}
|
||
{/if}
|
||
|
||
{if $use_taxes}
|
||
{if $priceDisplay}
|
||
<tr class="cart_total_price cart_total_wt">
|
||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total HT'}</td>
|
||
<td colspan="2" class="price-discount price" id="total_price_without_tax">
|
||
{displayPrice price=$total_price_without_tax}
|
||
</td>
|
||
</tr>
|
||
<tr class="cart_total_price cart_tax">
|
||
{assign var=taxe value=$total_price-$total_price_without_tax}
|
||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total taxes'}</td>
|
||
<td colspan="2" class="price-discount price" id="total_tax">
|
||
{displayPrice price=$taxe}
|
||
</td>
|
||
</tr>
|
||
{else}
|
||
{/if}
|
||
{/if}
|
||
|
||
{if $use_taxes && $show_taxes}
|
||
{*<tr class="cart_total_price">
|
||
<td colspan="4" class="text-right">
|
||
{l s='Total (tax excl.)'}
|
||
<span class='text-fdp'>{l s='(hors frais de port)'}</span>
|
||
</td>
|
||
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=($total_products - $total_discounts)}</td>
|
||
</tr>*}
|
||
<tr class="cart_total_tax">
|
||
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total tax'}</td>
|
||
<td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td>
|
||
</tr>
|
||
{/if}
|
||
<tr class="cart_total_price">
|
||
<td colspan="{$col_span_subtotal}" class="text-right"></td>
|
||
<td colspan="2" class="price price-bg-red"></td>
|
||
</tr>
|
||
{*<tr class="cart_total_price price_total_mobile">
|
||
<td colspan="{$col_span_subtotal}" class="total_price_container text-right">
|
||
<span>{l s='Total'} {l s='TTC'}</span>
|
||
<span class='text-fdp'>{l s='(hors frais de port)'}</span>
|
||
</td>
|
||
<td colspan="2" class="price" id="total_price_container">
|
||
<span id="total_price">{displayPrice price=($total_products_wt - $total_discounts)}</span>
|
||
</td>
|
||
</tr>*}
|
||
<tr class="cart_total_price cart_total_price_savings">
|
||
<td colspan="4" class="total_price_savings text-right">
|
||
{l s='économie réalisée'} {if $use_taxes}{if $priceDisplay}{l s='HT'}{else}{l s='TTC'}{/if}{/if}
|
||
</td>
|
||
<td colspan="2" class="price" id="saving_price_container">
|
||
{displayPrice price=$total_saving}
|
||
</td>
|
||
</tr>
|
||
</tfoot>
|
||
<tbody>
|
||
{assign var='odd' value=0}
|
||
{assign var='have_non_virtual_products' value=false}
|
||
{foreach $products as $product}
|
||
{if $product.is_virtual == 0}
|
||
{assign var='have_non_virtual_products' value=true}
|
||
{/if}
|
||
{assign var='productId' value=$product.id_product}
|
||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||
{assign var='quantityDisplayed' value=0}
|
||
{assign var='odd' value=($odd+1)%2}
|
||
{assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)}
|
||
{* Display the product line *}
|
||
{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
|
||
{* Then the customized datas ones*}
|
||
{if isset($customizedDatas.$productId.$productAttributeId)}
|
||
{foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization}
|
||
<tr
|
||
id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
|
||
class="custom product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if $odd} odd{else} even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}">
|
||
<td></td>
|
||
<td class="name">
|
||
{foreach $customization.datas as $type => $custom_data}
|
||
{if $type == $CUSTOMIZE_FILE}
|
||
<div class="customizationUploaded">
|
||
<ul class="customizationUploaded">
|
||
{foreach $custom_data as $picture}
|
||
<li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li>
|
||
{/foreach}
|
||
</ul>
|
||
</div>
|
||
{elseif $type == $CUSTOMIZE_TEXTFIELD}
|
||
<ul class="typedText">
|
||
{foreach $custom_data as $textField}
|
||
<li>
|
||
{if $textField.name}
|
||
<span>{$textField.name} :</span>
|
||
{else}
|
||
<span>{l s='Text #'}{$textField@index+1}</span>
|
||
{/if}
|
||
{$textField.value}
|
||
</li>
|
||
{/foreach}
|
||
</ul>
|
||
{/if}
|
||
{/foreach}
|
||
</td>
|
||
<td class="border"></td>
|
||
<td class="cart_quantity">
|
||
{if isset($cannotModify) AND $cannotModify == 1}
|
||
<span>{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span>
|
||
{else}
|
||
<input type="hidden" value="{$customization.quantity}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}_hidden"/>
|
||
<input type="text" value="{$customization.quantity}" class="cart_quantity_input form-control grey" name="quantity_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"/>
|
||
<div class="cart_quantity_button clearfix">
|
||
{if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1}
|
||
<a
|
||
id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
|
||
class="cart_quantity_down btn btn-default button-minus"
|
||
href="{$link->getPageLink('cart', true, NULL, "add=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&id_customization={$id_customization}&op=down&token={$token_cart}")|escape:'html':'UTF-8'}"
|
||
rel="nofollow"
|
||
title="{l s='Subtract'}">
|
||
<span><i class="icon-minus"></i></span>
|
||
</a>
|
||
{else}
|
||
<a
|
||
id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}"
|
||
class="cart_quantity_down btn btn-default button-minus disabled"
|
||
href="#"
|
||
title="{l s='Subtract'}">
|
||
<span><i class="icon-minus"></i></span>
|
||
</a>
|
||
{/if}
|
||
<a
|
||
id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
|
||
class="cart_quantity_up btn btn-default button-plus"
|
||
href="{$link->getPageLink('cart', true, NULL, "add=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery}&id_customization={$id_customization}&token={$token_cart}")|escape:'html':'UTF-8'}"
|
||
rel="nofollow"
|
||
title="{l s='Add'}">
|
||
<span><i class="icon-plus"></i></span>
|
||
</a>
|
||
</div>
|
||
{/if}
|
||
</td>
|
||
<td class="cart_total"></td>
|
||
<td class="cart_delete">
|
||
{if isset($cannotModify) AND $cannotModify == 1}
|
||
{else}
|
||
<div>
|
||
<a
|
||
id="{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
|
||
class="cart_quantity_delete"
|
||
href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization}&id_address_delivery={$product.id_address_delivery}&token={$token_cart}")|escape:'html':'UTF-8'}"
|
||
rel="nofollow"
|
||
title="{l s='Delete'}">
|
||
<img src="{$img_dir}close.png" />
|
||
</a>
|
||
</div>
|
||
{/if}
|
||
</td>
|
||
</tr>
|
||
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
|
||
{/foreach}
|
||
|
||
{* If it exists also some uncustomized products *}
|
||
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}{/if}
|
||
{/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="$tpl_dir./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="2">{$discount.name}</td>
|
||
<td class="cart_discount_price">
|
||
<span class="price-discount">
|
||
{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}
|
||
</span>
|
||
</td>
|
||
<td class="cart_discount_delete">1</td>
|
||
<td class="cart_discount_price_total">
|
||
<span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1} <sup>{l s='TTC'}</sup>{else}{displayPrice price=$discount.value_tax_exc*-1} <sup>{l s='HT'}</sup>{/if}</span>
|
||
</td>
|
||
<td class="price_discount_del text-center">
|
||
{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'}">
|
||
<img src="{$img_dir}close.png" />
|
||
</a>
|
||
{/if}
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
{/if}
|
||
</table>
|
||
</div> <!-- end order-detail-content -->
|
||
|
||
{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} autocomplete="off"/>
|
||
<label for="allow_seperated_package">{l s='Send available products first'}</label>
|
||
</p>
|
||
{/if}
|
||
|
||
{if $remaining_for_free_shipping}
|
||
<div id="cart_free_shipping" class="free-shipping"><span class="exclam-img"></span>{l s='Il ne vous reste plus que'} <span class="cart_free_shipping_price_remaining">{convertPrice price=$remaining_for_free_shipping}</span> TTC {l s='d\'achat pour bénéficier de la livraison gratuite'}</div>
|
||
<div class="clearfix"></div>
|
||
{elseif $notEligible}
|
||
<div id="cart_free_shipping" class="free-shipping "><span class="exclam-img"></span>{l s='Un produit de votre panier n\'est pas eligible à la livraison gratuite'}</div>
|
||
<div class="clearfix"></div>
|
||
{elseif $free_shipping_ok == true || $totalWithoutShipping>=49}
|
||
<div id="cart_free_shipping" class="free-shipping "><span class="exclam-img"></span>{l s='Livraison offerte sur cette commande !'}</div>
|
||
<div class="clearfix"></div>
|
||
{else}
|
||
{*<div id="cart_free_shipping" class="free-shipping"><span class="exclam-img"></span>{l s='Pour bénéficier de la livraison gratuite, ajoutez le code promo LIVRAISON15 à votre panier' mod='blockcart'}</div>*}
|
||
<div id="cart_free_shipping" class="free-shipping" style="display:none;"></div>
|
||
<div class="clearfix"></div>
|
||
{/if}
|
||
|
||
<div class="box-shipping">{l s='Les frais de port sont calculés définitivement à l’étape livraison' }</div>
|
||
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
|
||
<p class="cart_navigation clearfix">
|
||
{if !$opc}
|
||
<a
|
||
id="proceed_to_checkout"
|
||
href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&back={$back}')|escape:'html':'UTF-8'}{else}{$link->getPageLink('order', true, NULL, 'step=1')|escape:'html':'UTF-8'}{/if}"
|
||
class="button-grey right"
|
||
title="{l s='Proceed to checkout'}">
|
||
<span>{l s='Proceed to checkout'}</span>
|
||
</a>
|
||
{/if}
|
||
<a
|
||
href="{if (isset($smarty.server.HTTP_REFERER) && strstr($smarty.server.HTTP_REFERER, 'commande')) || isset($smarty.server.HTTP_REFERER) && strstr($smarty.server.HTTP_REFERER, 'order-opc') || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}{else}{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}{/if}"
|
||
class="button-grey button-grey-min left"
|
||
title="{l s='Continue shopping'}">
|
||
<span>
|
||
{l s='Continue shopping'}
|
||
</span>
|
||
</a>
|
||
</p>
|
||
{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}
|
||
{strip}
|
||
{addJsDef currencySign=$currencySign|html_entity_decode:2:"UTF-8"}
|
||
{addJsDef currencyRate=$currencyRate|floatval}
|
||
{addJsDef currencyFormat=$currencyFormat|intval}
|
||
{addJsDef currencyBlank=$currencyBlank|intval}
|
||
{if isset($isOtherDelay) && $isOtherDelay }
|
||
{addJsDef isOtherDelay=$isOtherDelay}
|
||
{addJsDef otherDelayTitle=$otherDelayTitle}
|
||
{addJsDefL name=txtOtherdelay}{l s='Attention, vous avez commandé des produits hors boutique ' js=1}{/addJsDefL}
|
||
{addJsDefL name=txtOtherdelayPlus}{l s=', votre commande sera donc expédiée dans les délais habituels' js=1}{/addJsDefL}
|
||
{/if}
|
||
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
|
||
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
|
||
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
|
||
{/strip}
|
||
{/if}
|