Files
prestashop/themes/hummingbird/templates/checkout/order-confirmation.tpl
2026-04-09 18:31:51 +02:00

106 lines
3.8 KiB
Smarty

{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
{extends file=$layout}
{$componentName = 'order-confirmation'}
{block name='content'}
{block name='order_confirmation_header'}
<div class="alert alert-success" role="alert" tabindex="0">
{include file='components/page-title-section.tpl' title={l s='Your order is confirmed' d='Shop.Theme.Checkout'}}
<p class="mb-0">
{l s='An email has been sent to your mail address %email%.' d='Shop.Theme.Checkout' sprintf=['%email%' => $order_customer.email]}
</p>
{if $order.details.invoice_url}
<hr class="border-top border-success"/>
{l
s='You can also [1]download your invoice[/1].'
d='Shop.Theme.Checkout'
sprintf=[
'[1]' => "<a href='{$order.details.invoice_url}' class='alert-link'>",
'[/1]' => "</a>"
]
}
{/if}
</div>
{/block}
{block name='hook_payment_return'}
{capture name='hook_payment_return'}{$HOOK_PAYMENT_RETURN nofilter}{/capture}
{if !empty($smarty.capture.hook_payment_return)}
{$smarty.capture.hook_payment_return nofilter}
{/if}
{/block}
{block name='hook_order_confirmation'}
{capture name='hook_order_confirmation'}{$HOOK_ORDER_CONFIRMATION nofilter}{/capture}
{if !empty($smarty.capture.hook_order_confirmation)}
{$smarty.capture.hook_order_confirmation nofilter}
{/if}
{/block}
{block name='hook_order_confirmation_1'}
{capture name='hook_order_confirmation_1'}{hook h='displayOrderConfirmation1'}{/capture}
{if !empty($smarty.capture.hook_order_confirmation_1)}
{$smarty.capture.hook_order_confirmation_1 nofilter}
{/if}
{/block}
{block name='order_details'}
<div class="{$componentName}__details card border-1 {if !$registered_customer_exists}mb-3{else}mb-4{/if}">
<div class="card-body">
<h2 class="h2">{l s='Order details' d='Shop.Theme.Checkout'}</h2>
<ul class="{$componentName}__details-list">
<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 && !($is_multishipment_enabled|default:false)}
<li>{l s='Shipping method: %method%' d='Shop.Theme.Checkout' sprintf=['%method%' => $order.carrier.name]} - {$order.carrier.delay}</li>
{/if}
</ul>
<hr>
{block name='order_confirmation_table'}
{if isset($is_multishipment_enabled) && $is_multishipment_enabled}
{include
file='checkout/_partials/order-confirmation-table-multishipment.tpl'
products=$order.order_shipments
subtotals=$order.subtotals
totals=$order.totals
labels=$order.labels
add_product_link=false
hide_multishipment_edit_buttons=true
}
{else}
{include
file='checkout/_partials/order-confirmation-table.tpl'
products=$order.products
subtotals=$order.subtotals
totals=$order.totals
labels=$order.labels
add_product_link=false
}
{/if}
{/block}
</div>
</div>
{/block}
{if !$registered_customer_exists}
{block name='account_transformation_form'}
<div class="card card-body bg-light mb-4 {$componentName}__account-transformation">
{include file='customer/_partials/account-transformation-form.tpl'}
</div>
{/block}
{/if}
{block name='hook_order_confirmation_2'}
{hook h='displayOrderConfirmation2'}
{/block}
{/block}