<?xml version="1.0"?>
<t t-name="website_sale.confirmation">
        <t t-call="website_sale.checkout_layout">
            <t t-set="show_wizard_checkout" t-value="False"/>
            <t t-set="show_mobile_cart_summary" t-value="False"/>
            <t t-set="show_navigation_button" t-value="False"/>
            <t t-set="show_footer" t-value="True"/>
            <t t-set="additional_title">Shop - Confirmed</t>
            <t t-set="hide_promotions" t-value="True"/>
            <t t-set="oe_structure">
                <!-- This is the drag-and-drop area for website building blocs at the end of each
                     checkout page. This is append at the of the page in `checkout_layout`. The
                     templates created in the database to store blocs are hooked using XPath on the
                     `oe_struture` element ID. Therefore, we can't use dynamic IDs (like with
                     t-att-id) and each template needs to define a div element. -->
                <div class="oe_structure" id="oe_structure_website_sale_confirmation_3"/>
            </t>

            <t t-set="tx_sudo" t-value="order.get_portal_last_transaction()"/>
            <div t-if="tx_sudo.state in ['pending', 'done']" class="d-flex justify-content-between align-items-center">
                <h3>Thank you for your order.</h3>
                <a title="Print" role="button" class="d-none d-md-inline-block btn btn-secondary ms-auto" href="/shop/print" target="_blank" aria-label="Print">
                    <i class="fa fa-print me-2"/>Print
                </a>
            </div>
            <div id="order_name" class="mb-4">
                <h5>
                    <span>Order</span>
                    <span t-field="order.name"/>
                </h5>
            </div>
            <t t-if="request.env['res.users']._get_signup_invitation_scope() == 'b2c' and request.website.is_public_user()">
                <p class="alert alert-info mt-3" role="status">
                    <a role="button" t-att-href="order.partner_id.signup_prepare() and order.partner_id.with_context(relative_url=True)._get_signup_url()" class="btn btn-primary o_translate_inline">Sign Up</a>
                    <span class="align-middle">to follow your order.</span>
                </p>
            </t>
            <div class="oe_structure clearfix mt-3" id="oe_structure_website_sale_confirmation_1"/>
            <t t-call="website_sale.payment_confirmation_status"/>
            <div class="mt-3">
                <t t-call="website_sale.address_on_checkout"/>
            </div>
            <div class="oe_structure mt-3" id="oe_structure_website_sale_confirmation_2"/>
            <input t-if="website.plausible_shared_key" type="hidden" class="js_plausible_push" data-event-name="Shop" t-attf-data-event-params="{&quot;CTA&quot;: &quot;Order Confirmed&quot;, &quot;amount&quot;: &quot;#{&quot;%3s-%3s&quot; % (max(0, round(website_sale_order.amount_total/100)*100 - 50), round(website_sale_order.amount_total/100)*100 + 50)}&quot;}"/>
            <div class="d-lg-none">
                <t t-call="website_sale.cart_summary_content"/>
                <t t-call="website_sale.total">
                    <t t-set="_cart_total_classes" t-valuef="border-top pt-2"/>
                </t>
            </div>
        </t>
    </t>

    