300 lines
14 KiB
Smarty
Executable File
300 lines
14 KiB
Smarty
Executable File
{*
|
|
* 2007-2011 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-2011 PrestaShop SA
|
|
* @version Release: $Revision: 9020 $
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*}
|
|
|
|
{if !$opc}
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
var orderProcess = 'order';
|
|
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'}";
|
|
var txtProducts = "{l s='products'}";
|
|
|
|
var msg = "{l s='You must agree to the terms of service before continuing.' js=1}";
|
|
{literal}
|
|
// Function to submit carrier and send the information to GA
|
|
function submitCarrier() {
|
|
var cgv = acceptCGV();
|
|
if(cgv) {
|
|
// carrier = $("input[name='id_carrier']:checked","#form").val();
|
|
carrier_name = ""+$("input[name='id_carrier']:checked", "#form").data('carrier-name')+"";
|
|
onStepComplete(3, carrier_name, null, null);
|
|
} else {
|
|
return cgv;
|
|
}
|
|
}
|
|
function acceptCGV()
|
|
{
|
|
if ($('#cgv').length && !$('input#cgv:checked').length)
|
|
{
|
|
alert(msg);
|
|
return false;
|
|
}
|
|
else
|
|
return true;
|
|
}
|
|
{/literal}
|
|
//]]>
|
|
</script>
|
|
{else}
|
|
<script type="text/javascript">
|
|
var txtFree = "{l s='Free!'}";
|
|
</script>
|
|
{/if}
|
|
|
|
{if !$virtual_cart && $giftAllowed && $cart->gift == 1}
|
|
<script type="text/javascript">
|
|
{literal}
|
|
// <![CDATA[
|
|
$('document').ready( function(){
|
|
if ($('input#gift').is(':checked'))
|
|
$('p#gift_div').show();
|
|
});
|
|
//]]>
|
|
{/literal}
|
|
</script>
|
|
{/if}
|
|
|
|
{if !$opc}
|
|
{capture name=path}{l s='Shipping'}{/capture}
|
|
{include file="$tpl_dir./breadcrumb.tpl"}
|
|
{/if}
|
|
|
|
{if !$opc}
|
|
{assign var='current_step' value='shipping'}
|
|
{include file="$tpl_dir./order-steps.tpl"}
|
|
|
|
<h1>{l s='Shipping'}</h1>
|
|
|
|
{include file="$tpl_dir./errors.tpl"}
|
|
|
|
<form id="form" action="{$link->getPageLink('order.php', true)}?step=3" method="post" onsubmit="return submitCarrier(); return ((window.ga && ga.create)? !ga.loaded : true);">
|
|
{else}
|
|
<h2>2. {l s='Delivery methods'}</h2>
|
|
<div id="opc_delivery_methods" class="opc-main-block">
|
|
<div id="opc_delivery_methods-overlay" class="opc-overlay" style="display: none;"></div>
|
|
{/if}
|
|
|
|
<div id="block_order_choices">
|
|
|
|
{if $conditions AND $cms_id}
|
|
<h3 class="condition_title">{l s='Terms of service'}</h3>
|
|
<p class="checkbox">
|
|
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS || $cookie->id_lang == 3}checked="checked"{/if} />
|
|
<label for="cgv">{l s='I agree to the terms of service and adhere to them unconditionally.'}</label> <a href="{$link_conditions}" class="iframe">{l s='(read)'}</a>
|
|
</p>
|
|
<script type="text/javascript">$('a.iframe').fancybox();</script>
|
|
{/if}
|
|
|
|
{if $virtual_cart}
|
|
<input id="input_virtual_carrier" class="hidden" type="hidden" name="id_carrier" value="0" />
|
|
{else}
|
|
<h3 class="carrier_title">{l s='Choose your delivery method'}</h3>
|
|
|
|
<div id="HOOK_BEFORECARRIER">{if isset($carriers)}{$HOOK_BEFORECARRIER}{/if}</div>
|
|
{if isset($isVirtualCart) && $isVirtualCart}
|
|
<p class="warning">{l s='No carrier needed for this order'}</p>
|
|
{else}
|
|
{if $recyclablePackAllowed}
|
|
<p class="checkbox">
|
|
<input type="checkbox" name="recyclable" id="recyclable" value="1" {if $recyclable == 1}checked="checked"{/if} />
|
|
<label for="recyclable">{l s='I agree to receive my order in recycled packaging'}.</label>
|
|
</p>
|
|
{/if}
|
|
<p class="warning" id="noCarrierWarning" {if isset($carriers) && $carriers && count($carriers)}style="display:none;"{/if}>{l s='There are no carriers available that deliver to this address.'}</p>
|
|
<table id="carrierTable" class="std" {if !isset($carriers) || !$carriers || !count($carriers)}style="display:none;"{/if}>
|
|
{if isset($carriers_ah) && !empty($carriers_ah)}
|
|
<thead>
|
|
<tr>
|
|
<th class="carrier_action first_item" colspan="2">{l s='At home'}</th>
|
|
{*<th class="carrier_name item">{l s='Carrier'}</th>*}
|
|
<th class="carrier_infos item">{l s='Information'}</th>
|
|
<th class="carrier_price last_item">{l s='Price'}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$carriers item=carrier name=myLoop}
|
|
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{else}item{/if}">
|
|
<td class="carrier_action radio">
|
|
<input type="radio" name="id_carrier" value="{$carrier.id_carrier|intval}" data-carrier-name="{$carrier.name|escape:'htmlall':'UTF-8'}" id="id_carrier{$carrier.id_carrier|intval}" {if $opc}onclick="updateCarrierSelectionAndGift();"{/if} {if !($carrier.is_module AND $opc AND !$isLogged)}{if $carrier.id_carrier == $checked}checked="checked"{/if}{else}disabled="disabled"{/if} />
|
|
</td>
|
|
<td class="carrier_name">
|
|
<label for="id_carrier{$carrier.id_carrier|intval}">
|
|
{if $only_gifts}E-mail{else}
|
|
{if $carrier.img}
|
|
{if ($cookie->id_lang == 3 || $country_delivery == 6) && $carrier.id_carrier != $carrier_dropshipping}
|
|
<img src="/img/s/seur.jpg" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />
|
|
{else}
|
|
<img src="{$carrier.img|escape:'htmlall':'UTF-8'}" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />
|
|
{/if}
|
|
{else}
|
|
{if $cookie->id_lang == 3 && $carrier.id_carrier == 87}
|
|
{l s='SEUR a domicilio'}
|
|
{else}
|
|
{$carrier.name|escape:'htmlall':'UTF-8'}
|
|
{/if}
|
|
{/if}
|
|
{/if}
|
|
</label>
|
|
</td>
|
|
<td class="carrier_infos">{if $only_gifts}Si vous l'avez personnalisé, votre chèque cadeau sera envoyé par e-mail à son bénéficiaire, sinon vous le recevrez{else}
|
|
{$carrier.delay}
|
|
{*{if count($sale_delivery) > 1}
|
|
{l s='Délai de livraison multiple :'}
|
|
{/if}
|
|
<ul>
|
|
{if in_array(1,$sale_delivery)}
|
|
<li>{l s='Délai de livraison prévisionnel de 3 semaines'}</li>
|
|
{/if}
|
|
{if in_array(2,$sale_delivery)}
|
|
<li>{l s='Délai de livraison sous 48h'}</li>
|
|
{/if}
|
|
{if in_array(3,$sale_delivery)}
|
|
<li>{l s='Délai de livraison sous 7 jours'}</li>
|
|
{/if}
|
|
{if in_array(4,$sale_delivery)}
|
|
<li>{l s='Délai de livraison sous 10 jours'}</li>
|
|
{/if}
|
|
{if in_array(5,$sale_delivery)}
|
|
<li>{l s='Livraison avant Noël'}</li>
|
|
{/if}
|
|
{if in_array(6,$sale_delivery)}
|
|
<li>{l s='Produit Star - Livraison 48h'}</li>
|
|
{/if}
|
|
</ul>*}
|
|
{/if}
|
|
</td>
|
|
<td class="carrier_price">
|
|
{if $carrier.price}
|
|
<span class="price">
|
|
{if $priceDisplay == 1}{convertPrice price=$carrier.price_tax_exc}{else}{convertPrice price=$carrier.price}{/if}
|
|
</span>
|
|
{if $use_taxes}{if $priceDisplay == 1} {l s='(tax excl.)'}{else} {l s='(tax incl.)'}{/if}{/if}
|
|
{else}
|
|
{l s='Free!'}
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
<tr id="HOOK_EXTRACARRIER">{$HOOK_EXTRACARRIER}</tr>
|
|
</tbody>
|
|
{/if}
|
|
{if count($carriers_ooh) > 0}
|
|
<thead>
|
|
<tr>
|
|
<th class="carrier_action first_item" colspan="2" style="border-top: 20px solid #ffffff;">{l s='At a relay point'}</th>
|
|
<th class="carrier_infos item" style="border-top: 20px solid #ffffff;">{l s='Information'}</th>
|
|
<th class="carrier_price last_item" style="border-top: 20px solid #ffffff;">{l s='Price'}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$carriers_ooh item=carrier name=myLoop}
|
|
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{else}item{/if}">
|
|
<td class="carrier_action radio">
|
|
<input type="radio" name="id_carrier" value="{$carrier.id_carrier|intval}" data-carrier-name="{$carrier.name|escape:'htmlall':'UTF-8'}" id="id_carrier{$carrier.id_carrier|intval}" {if $opc}onclick="updateCarrierSelectionAndGift();"{/if} {if !($carrier.is_module AND $opc AND !$isLogged)}{if $carrier.id_carrier == $checked}checked="checked"{/if}{else}disabled="disabled"{/if} />
|
|
</td>
|
|
<td class="carrier_name">
|
|
<label for="id_carrier{$carrier.id_carrier|intval}">
|
|
{if $only_gifts}E-mail{else}
|
|
{if $carrier.img}
|
|
{if ($cookie->id_lang == 3 || $country_delivery == 6)}
|
|
<img src="/img/s/{$carrier.id_carrier}_3.jpg" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />
|
|
{else}
|
|
<img src="{$carrier.img|escape:'htmlall':'UTF-8'}" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />
|
|
{/if}
|
|
{else}
|
|
{$carrier.name|escape:'htmlall':'UTF-8'}
|
|
{/if}
|
|
{/if}
|
|
</label>
|
|
</td>
|
|
<td class="carrier_infos">{if $only_gifts}Si vous l'avez personnalisé, votre chèque cadeau sera envoyé par e-mail à son bénéficiaire, sinon vous le recevrez{else}
|
|
{$carrier.delay}
|
|
{/if}
|
|
</td>
|
|
<td class="carrier_price">
|
|
{if $carrier.price}
|
|
<span class="price">
|
|
{if $priceDisplay == 1}{convertPrice price=$carrier.price_tax_exc}{else}{convertPrice price=$carrier.price}{/if}
|
|
</span>
|
|
{if $use_taxes}{if $priceDisplay == 1} {l s='(tax excl.)'}{else} {l s='(tax incl.)'}{/if}{/if}
|
|
{else}
|
|
{l s='Free!'}
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
{/if}
|
|
</table>
|
|
<div style="display: none;" id="extra_carrier"></div>
|
|
|
|
{* {if $giftAllowed}
|
|
<h3 class="gift_title">{l s='Gift'}</h3>
|
|
<p class="checkbox">
|
|
<input type="checkbox" name="gift" id="gift" value="1" {if $cart->gift == 1}checked="checked"{/if} onclick="$('#gift_div').toggle('slow');" />
|
|
<label for="gift">{l s='I would like the order to be gift-wrapped.'}</label>
|
|
{if $gift_wrapping_price > 0}
|
|
({l s='Additional cost of'}
|
|
<span class="price" id="gift-price">
|
|
{if $priceDisplay == 1}{convertPrice price=$total_wrapping_tax_exc_cost}{else}{convertPrice price=$total_wrapping_cost}{/if}
|
|
</span>
|
|
{if $use_taxes}{if $priceDisplay == 1} {l s='(tax excl.)'}{else} {l s='(tax incl.)'}{/if}{/if})
|
|
{/if}
|
|
</p>
|
|
<p id="gift_div" class="textarea">
|
|
<label for="gift_message">{l s='If you wish, you can add a note to the gift:'}</label>
|
|
<textarea rows="5" cols="35" id="gift_message" name="gift_message">{$cart->gift_message|escape:'htmlall':'UTF-8'}</textarea>
|
|
</p>
|
|
{/if} *}
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
|
|
{if !$opc}
|
|
{if $cookie->id_lang == 3}
|
|
<p>
|
|
Si tienes cualquier duda o problema, puedes contactar con el Servicio de atención al cliente (<a href="http://www.bebeboutik.es/contactenos">http://www.bebeboutik.es/contactenos</a>) y escribirnos un mensaje o bien llamar al 902 044 399 y uno de nuestros agentes te atenderá.
|
|
</p>
|
|
{/if}
|
|
<p class="cart_navigation submit">
|
|
<input type="hidden" name="step" value="3" />
|
|
<input type="hidden" name="back" value="{$back}" />
|
|
<a href="{$link->getPageLink('order.php', true)}{if !$is_guest}?step=1{if $back}&back={$back}{/if}{/if}" title="{l s='Previous'}" class="button">{l s='Previous'}</a>
|
|
<input type="submit" name="processCarrier" value="{l s='Next'}" class="exclusive" />
|
|
</p>
|
|
</form>
|
|
{else}
|
|
<h3>{l s='Leave a message'}</h3>
|
|
<div>
|
|
<p>{l s='If you would like to add a comment about your order, please write it below.'}</p>
|
|
<p><textarea cols="120" rows="3" name="message" id="message">{if isset($oldMessage)}{$oldMessage}{/if}</textarea></p>
|
|
</div>
|
|
</div>
|
|
{/if}
|