{* * 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 * @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 *} {if !$opc} {capture name=path}{l s='Shipping:'}{/capture} {assign var='current_step' value='shipping'}

{l s='Shipping:'}

{include file="$tpl_dir./order-steps.tpl"} {include file="$tpl_dir./errors.tpl"}
{else}

2 {l s='Delivery methods'}

{/if}
{if isset($virtual_cart) && $virtual_cart} {else}
{if isset($carriers) && isset($HOOK_BEFORECARRIER)} {$HOOK_BEFORECARRIER} {/if}
{if isset($isVirtualCart) && $isVirtualCart}

{l s='No carrier is needed for this order.'}

{else} {if $recyclablePackAllowed}
{/if}
{if isset($delivery_option_list)} {foreach $delivery_option_list as $id_address => $option_list}

{if isset($address_collection[$id_address])} {l s='Choose a shipping option for this address:'} {$address_collection[$id_address]->alias} {else} {l s='Choose a shipping option'} {/if}

{foreach $option_list as $key => $option}
{if $option.unique_carrier} {foreach $option.carrier_list as $carrier} {$carrier.instance->name|escape:'htmlall':'UTF-8'} {/foreach} {if isset($carrier.instance->delay[$cookie->id_lang])} {$carrier.instance->delay[$cookie->id_lang]|escape:'htmlall':'UTF-8'} {/if} {/if} {if count($option_list) > 1} {if $option.is_best_grade} {if $option.is_best_price} {l s='The best price and speed'} {else} {l s='The fastest'} {/if} {else} {if $option.is_best_price} {l s='The best price'} {/if} {/if} {/if}
{if $option.total_price_with_tax && !$option.is_free && (!isset($free_shipping) || (isset($free_shipping) && !$free_shipping))} {if $use_taxes == 1} {if $priceDisplay == 1} {convertPrice price=$option.total_price_without_tax}{if $display_tax_label} {l s='(tax excl.)'}{/if} {else} {convertPrice price=$option.total_price_with_tax}{if $display_tax_label} {l s='(tax incl.)'}{/if} {/if} {else} {convertPrice price=$option.total_price_without_tax} {/if} {else} {l s='Free'} {/if}
{if !$option.unique_carrier} {if !$option.unique_carrier} {/if} {assign var="first" value=current($option.carrier_list)}
{if $first.logo} {$first.instance->name|escape:'htmlall':'UTF-8'} {else if !$option.unique_carrier} {$first.instance->name|escape:'htmlall':'UTF-8'} {/if} {if isset($first.instance->delay[$cookie->id_lang])} {$first.instance->delay[$cookie->id_lang]|escape:'htmlall':'UTF-8'} {if count($first.product_list) <= 1} ({l s='Product concerned:'} {else} ({l s='Products concerned:'} {/if} {foreach $first.product_list as $product} {if $product@index == 4} ) {/if} {else} {$product.name|escape:'htmlall':'UTF-8'} {if isset($product.attributes) && $product.attributes} {$product.attributes|escape:'htmlall':'UTF-8'} {/if} {if !$product@last} ,  {else} ) {/if} {/if} {strip} {/foreach} {/if}
{if $option.total_price_with_tax && !$option.is_free && (!isset($free_shipping) || (isset($free_shipping) && !$free_shipping))} {if $use_taxes == 1} {if $priceDisplay == 1} {convertPrice price=$option.total_price_without_tax}{if $display_tax_label} {l s='(tax excl.)'}{/if} {else} {convertPrice price=$option.total_price_with_tax}{if $display_tax_label} {l s='(tax incl.)'}{/if} {/if} {else} {convertPrice price=$option.total_price_without_tax} {/if} {else} {l s='Free'} {/if}
{foreach $option.carrier_list as $carrier} {if $carrier@iteration != 1} {if $carrier.logo} {$carrier.instance->name|escape:'htmlall':'UTF-8'} {else if !$option.unique_carrier} {$carrier.instance->name|escape:'htmlall':'UTF-8'} {/if} {/if} {/foreach} {if isset($carrier.instance->delay[$cookie->id_lang])} {$first.instance->delay[$cookie->id_lang]|escape:'htmlall':'UTF-8'} {if count($carrier.product_list) <= 1} ({l s='Product concerned:'} {else} ({l s='Products concerned:'} {/if} {foreach $carrier.product_list as $product} {if $product@index == 4} ) {/if} {else} {$product.name|escape:'htmlall':'UTF-8'} {if isset($product.attributes) && $product.attributes} {$product.attributes|escape:'htmlall':'UTF-8'} {/if} {if !$product@last} ,  {else} ) {/if} {/if} {strip} {/foreach} {/if}
{/if}
{/foreach}
{if isset($HOOK_EXTRACARRIER_ADDR) && isset($HOOK_EXTRACARRIER_ADDR.$id_address)}{$HOOK_EXTRACARRIER_ADDR.$id_address}{/if}
{foreachelse}

{foreach $cart->getDeliveryAddressesWithoutCarriers(true) as $address} {if empty($address->alias)} {l s='No carriers available.'} {else} {l s='No carriers available for the address "%s".' sprintf=$address->alias} {/if} {if !$address@last}
{/if} {foreachelse} {l s='No carriers available.'} {/foreach}

{/foreach} {/if}
{if $opc}

{l s='Leave a message'}

{l s='If you would like to add a comment about your order, please write it in the field below.'}


{/if} {if $giftAllowed}

{l s='Gift'}

gift == 1}checked="checked"{/if} />

{if $opc}
{/if} {/if} {/if} {/if} {if $conditions AND $cms_id}

{l s='Terms of service'}

{l s='(Read the Terms of Service)'}

{/if}
{if !$opc}

{if !$is_guest} {if $back} {l s='Continue shopping'} {else} {l s='Continue shopping'} {/if} {else} {l s='Continue shopping'} {/if} {if isset($virtual_cart) && $virtual_cart || (isset($delivery_option_list) && !empty($delivery_option_list))} {/if}

{else}
{/if}
{strip} {if !$opc} {addJsDef orderProcess='order'} {addJsDef currencySign=$currencySign|html_entity_decode:2:"UTF-8"} {addJsDef currencyRate=$currencyRate|floatval} {addJsDef currencyFormat=$currencyFormat|intval} {addJsDef currencyBlank=$currencyBlank|intval} {if isset($virtual_cart) && !$virtual_cart && $giftAllowed && $cart->gift == 1} {addJsDef cart_gift=true} {else} {addJsDef cart_gift=false} {/if} {addJsDef orderUrl=$link->getPageLink("order", true)|escape:'quotes':'UTF-8'} {addJsDefL name=txtProduct}{l s='Product' js=1}{/addJsDefL} {addJsDefL name=txtProducts}{l s='Products' js=1}{/addJsDefL} {/if} {if $conditions} {addJsDefL name=msg_order_carrier}{l s='You must agree to the terms of service before continuing.' js=1}{/addJsDefL} {/if} {/strip}