{* * 2007-2016 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-2016 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 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 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])}
{l s='Delivery time:'} {$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} {elseif $option.is_best_price} {l s='The best price'} {/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)} {foreach $option.carrier_list as $carrier} {if $carrier@iteration != 1} {/if} {/foreach}
{if $first.logo} {elseif !$option.unique_carrier} {$first.instance->name|escape:'htmlall':'UTF-8'} {/if} {if isset($first.instance->delay[$cookie->id_lang])} {strip} {$first.instance->delay[$cookie->id_lang]|escape:'htmlall':'UTF-8'}   {if count($first.product_list) <= 1} ({l s='For this product:'} {else} ({l s='For these products:'} {/if} {/strip} {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}
{if $carrier.logo} {elseif !$option.unique_carrier} {$carrier.instance->name|escape:'htmlall':'UTF-8'} {/if} {if isset($carrier.instance->delay[$cookie->id_lang])} {strip} {$carrier.instance->delay[$cookie->id_lang]|escape:'htmlall':'UTF-8'}   {if count($first.product_list) <= 1} ({l s='For this product:'} {else} ({l s='For these products:'} {/if} {/strip} {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} {assign var='errors' value=' '|explode:''}

{foreach $cart->getDeliveryAddressesWithoutCarriers(true, $errors) as $address} {if empty($address->alias)} {l s='No carriers available.'} {else} {assign var='flag_error_message' value=false} {foreach $errors as $error} {if $error == Carrier::SHIPPING_WEIGHT_EXCEPTION} {$flag_error_message = true} {l s='The product selection cannot be delivered by the available carrier(s): it is too heavy. Please amend your cart to lower its weight.'} {elseif $error == Carrier::SHIPPING_PRICE_EXCEPTION} {$flag_error_message = true} {l s='The product selection cannot be delivered by the available carrier(s). Please amend your cart.'} {elseif $error == Carrier::SHIPPING_SIZE_EXCEPTION} {$flag_error_message = true} {l s='The product selection cannot be delivered by the available carrier(s): its size does not fit. Please amend your cart to reduce its size.'} {/if} {/foreach} {if !$flag_error_message} {l s='No carriers available for the address "%s".' sprintf=$address->alias} {/if} {/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 $recyclablePackAllowed}

{l s='Recyclable Packaging'}

{/if} {if $giftAllowed} {if $opc}
{/if}

{l s='Gift'}

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

{/if} {/if} {/if} {if $conditions && $cms_id && !$advanced_payment_api} {if $opc}
{/if} {if $override_tos_display } {$override_tos_display} {else}

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

{/if} {/if}
{strip} {if $conditions} {addJsDefL name=msg_order_carrier}{l s='You must agree to the terms of service before continuing.' js=1}{/addJsDefL} {/if} {/strip}