133 lines
4.5 KiB
Smarty
133 lines
4.5 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='page.tpl'}
|
|
|
|
{block name='page_content_container' prepend}
|
|
<section id="content-hook_order_confirmation">
|
|
<div class="row">
|
|
<div class="col-12 offset-lg-2 col-lg-8">
|
|
|
|
{block name='order_confirmation_header'}
|
|
<h2 class="mb-6">
|
|
{l s='Your order is confirmed' d='Shop.Theme.Checkout'}
|
|
<small>
|
|
{l s='An email has been sent to your mail address %email%.' d='Shop.Theme.Checkout' sprintf=['%email%' => $customer.email]}
|
|
{if $order.details.invoice_url}
|
|
{* [1][/1] is for a HTML tag. *}
|
|
{l
|
|
s='You can also [1]download your invoice[/1]'
|
|
d='Shop.Theme.Checkout'
|
|
sprintf=[
|
|
'[1]' => "<a href='{$order.details.invoice_url}'>",
|
|
'[/1]' => "</a>"
|
|
]
|
|
}
|
|
{/if}
|
|
</small>
|
|
</h2>
|
|
{/block}
|
|
|
|
{block name='hook_order_confirmation'}
|
|
{$HOOK_ORDER_CONFIRMATION nofilter}
|
|
{/block}
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{/block}
|
|
|
|
{block name='page_content_container'}
|
|
<section id="content" class="page-content page-order-confirmation">
|
|
<div class="row sidebar-wrapper">
|
|
|
|
<div class="col-12 col-md-7 offset-xl-2 col-xl-3">
|
|
<div class="sidebar">
|
|
{block name='order_details'}
|
|
<div id="order-details" class="py-3">
|
|
<h3>{l s='Order details' d='Shop.Theme.Checkout'}:</h3>
|
|
<ul>
|
|
<li>{l s='Order reference: %reference%' d='Shop.Theme.Checkout' sprintf=['%reference%' => $order.details.reference]}</li>
|
|
<li>{l s='Payment method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.details.payment]}</li>
|
|
{if !$order.details.is_virtual}
|
|
<li>
|
|
{l s='Shipping method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.carrier.name]}<small> ({$order.carrier.delay})</small>
|
|
</li>
|
|
{/if}
|
|
</ul>
|
|
</div>
|
|
{/block}
|
|
|
|
{block name='customer_registration_form'}
|
|
{if $customer.is_guest}
|
|
<div id="registration-form" class="py-3">
|
|
<h4 class="h4">{l s='Save time on your next order, sign up now' d='Shop.Theme.Checkout'}</h4>
|
|
{render file='customer/_partials/customer-form.tpl' ui=$register_form}
|
|
</div>
|
|
{/if}
|
|
{/block}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12 col-md-5">
|
|
{block name='order_confirmation_table'}
|
|
{include
|
|
file='checkout/_partials/order-confirmation-table.tpl'
|
|
products=$order.products
|
|
subtotals=$order.subtotals
|
|
totals=$order.totals
|
|
labels=$order.labels
|
|
add_product_link=false
|
|
}
|
|
{/block}
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</section>
|
|
<div class="row">
|
|
<div class="col-12 col-xl-8 offset-xl-2">
|
|
<hr class="my-6">
|
|
{block name='hook_payment_return'}
|
|
{if ! empty($HOOK_PAYMENT_RETURN)}
|
|
<section id="content-hook_payment_return" class="definition-list bg-light p-3 mb-4">
|
|
{$HOOK_PAYMENT_RETURN nofilter}
|
|
</section>
|
|
{/if}
|
|
{/block}
|
|
|
|
{block name='hook_order_confirmation_1'}
|
|
{hook h='displayOrderConfirmation1'}
|
|
{/block}
|
|
|
|
{block name='hook_order_confirmation_2'}
|
|
<section id="content-hook-order-confirmation-footer">
|
|
{hook h='displayOrderConfirmation2'}
|
|
</section>
|
|
{/block}
|
|
</div>
|
|
</div>
|
|
{/block}
|