Files
wyczarujprezent.pl/themes/EZE-249/templates/checkout/_partials/address-form.tpl
2024-10-28 22:14:22 +01:00

77 lines
2.9 KiB
Smarty

{**
* 2007-2019 PrestaShop
*
* 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.txt.
* 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 http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='customer/_partials/address-form.tpl'}
{block name='form_field'}
{if $field.name eq "alias"}
{* we don't ask for alias here *}
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="address_form_url"}
<form
method="POST"
action="{url entity='order' params=['id_address' => $id_address]}"
data-id-address="{$id_address}"
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm']}"
>
{/block}
{block name='form_fields' append}
<input type="hidden" name="saveAddress" value="{$type}">
{if $type === "delivery"}
<div class="form-group row no-gutters">
<div class="label-auto-width col-2"></div>
<div class="form-control-content col">
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" name="use_same_address" type="checkbox" value="1" {if $use_same_address} checked {/if}>
<span class="custom-control-label">{l s='Use this address for invoice too' d='Shop.Theme.Checkout'}</span>
</label>
</div>
</div>
</div>
{/if}
{/block}
{block name='form_buttons'}
{if !$form_has_continue_button}
<button type="submit" class="btn btn-primary btn-md">{l s='Save' d='Shop.Theme.Actions'}</button>
<a class="js-cancel-address cancel-address btn btn-secondary btn-md" href="{url entity='order' params=['cancelAddress' => {$type}]}">{l s='Cancel' d='Shop.Theme.Actions'}</a>
{else}
<form>
<button type="submit" class="continue btn btn-default btn-md mr-3 mb-3" name="confirm-addresses" value="1">
{l s='Continue' d='Shop.Theme.Actions'}
</button>
{if $customer.addresses|count > 0}
<a class="js-cancel-address cancel-address btn btn-secondary btn-md mb-3" href="{url entity='order' params=['cancelAddress' => {$type}]}">{l s='Cancel' d='Shop.Theme.Actions'}</a>
{/if}
</form>
{/if}
{/block}