<?xml version="1.0"?>
<data name="Shop Floating Bar" inherit_id="website_sale.products" active="False">
        <xpath expr="//div[hasclass('o_wsale_products_main_row')]" position="attributes">
            <attribute name="class" add="position-relative" separator=" "/>
        </xpath>

        <xpath expr="//div[@id='o_wsale_pager']" position="attributes">
            <attribute name="t-attf-class" add="o_wsale_pager_accommodate_floating" separator=" "/>
        </xpath>

        <xpath expr="//div[@id='products_grid']" position="after">
            <t t-set="floatBar_hasSort" t-value="is_view_active('website_sale.sort')"/>
            <t t-set="floatBar_hasSearch" t-value="is_view_active('website_sale.search')"/>
            <t t-set="website_sale_pricelists" t-value="website_sale_pricelists or website.get_pricelist_available(show_visible=True)"/>
            <t t-set="floatBar_hasPricelist" t-value="website_sale_pricelists and len(website_sale_pricelists)&gt;1"/>
            <div id="o_wsale_floating_bar_rail" class="o_not_editable position-absolute top-0 bottom-0 d-flex justify-content-end align-items-end p-0">
                <nav id="o_wsale_floating_bar" t-attf-class="navbar position-sticky z-3 d-flex gap-1 gap-lg-2 flex-shrink-0 bg-body rounded mb-2 px-2 px-lg-3 shadow {{floatBar_hasSearch and 'ps-1 ps-lg-1'}}  {{floatBar_hasPricelist and 'o_wsale_has_pricelist'}}">
                    <div t-if="floatBar_hasSearch">
                        <a t-attf-class="btn o_not_editable {{(wsale_has_filters_btn or floatBar_hasSort or floatBar_hasPricelist) and 'me-n2'}}" data-bs-target="#o_wsale_search_modal" data-bs-toggle="modal" role="button" title="Search Products" href="#">
                            <i class="oi oi-search" role="img"/>
                        </a>
                    </div>
                    <span t-if="floatBar_hasSearch and (wsale_has_filters_btn or floatBar_hasSort or floatBar_hasPricelist)" t-attf-class="align-self-stretch border-start opacity-50 {{(not floatBar_hasSort and not floatBar_hasPricelist and not wsale_has_filters_btn_lg) and 'd-lg-none'}}"/>
                    <t t-if="floatBar_hasPricelist" t-call="website_sale.pricelist_list"/>
                    <t t-if="floatBar_hasSort" t-call="website_sale.sort"/>
                    <button t-if="wsale_has_filters_btn" t-attf-class="btn btn-{{navClass}} position-relative {{not wsale_has_filters_btn_lg and 'd-lg-none'}}" data-bs-toggle="offcanvas" data-bs-target="#o_wsale_offcanvas">
                        <i class="oi oi-settings-adjust" role="img"/>
                        <span t-if="isFilteringByPrice or attrib_set or tags" t-attf-class="position-absolute top-0 start-100 translate-middle rounded-circle bg-danger p-1">
                            <span class="visually-hidden">filters active</span>
                        </span>
                    </button>
                </nav>
            </div>
        </xpath>
    </data>

    