{** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * 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 https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) *} {extends file='checkout/_partials/steps/checkout-step.tpl'} {block name='step_content'}
{if $use_same_address}

{if $cart.is_virtual} {l s='The selected address will be used as your personal address (for invoice).' d='Shop.Theme.Checkout'} {else} {l s='The selected address will be used both as your personal address (for invoice) and as your delivery address.' d='Shop.Theme.Checkout'} {/if}

{else}

{l s='Shipping Address' d='Shop.Theme.Checkout'}

{/if} {if $show_delivery_address_form}
{render file = 'checkout/_partials/address-form.tpl' ui = $address_form use_same_address = $use_same_address type = "delivery" form_has_continue_button = $form_has_continue_button }
{elseif $customer.addresses|count > 0}
{include file = 'checkout/_partials/address-selector-block.tpl' addresses = $customer.addresses name = "id_address_delivery" selected = $id_address_delivery type = "delivery" interactive = !$show_delivery_address_form and !$show_invoice_address_form }
{if isset($delivery_address_error)}

{$delivery_address_error.exception}

{else} {/if}

{l s='add new address' d='Shop.Theme.Actions'}

{if $use_same_address && !$cart.is_virtual}

{l s='Billing address differs from shipping address' d='Shop.Theme.Checkout'}

{/if} {/if} {if !$use_same_address}

{l s='Your Invoice Address' d='Shop.Theme.Checkout'}

{if $show_invoice_address_form}
{render file = 'checkout/_partials/address-form.tpl' ui = $address_form use_same_address = $use_same_address type = "invoice" form_has_continue_button = $form_has_continue_button }
{else}
{include file = 'checkout/_partials/address-selector-block.tpl' addresses = $customer.addresses name = "id_address_invoice" selected = $id_address_invoice type = "invoice" interactive = !$show_delivery_address_form and !$show_invoice_address_form }
{if isset($invoice_address_error)}

{$invoice_address_error.exception}

{else} {/if}

{l s='add new address' d='Shop.Theme.Actions'}

{/if} {/if} {if !$form_has_continue_button}
{/if}
{hook h='displayAddressSelectorBottom'}
{/block}