You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
2.3 KiB
45 lines
2.3 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- To inherit products page -->
|
|
<template id="xtream_products" name="Xtream Products" inherit_id="website_sale.products">
|
|
<xpath expr="//div[hasclass('products_header')]/t[@t-call='website_sale.pricelist_list']" position="after">
|
|
<div class="products_pager ml-3 mb-2">
|
|
<t t-call="website.pager"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
<!-- To inherit sort list -->
|
|
<template id="xtream_sort_oo" name="Xtream Sort List" inherit_id="website_sale.sort">
|
|
<xpath expr="//div[contains(@t-attf-class, 'o_sortby_dropdown')]" position="replace">
|
|
<div class="o_sortby_dropdown dropdown dropdown_sorty_by ml-3 pb-2">
|
|
<a role="button" href="#" class="dropdown-toggle btn btn-secondary align-baseline"
|
|
data-bs-toggle="dropdown">
|
|
<span class="d-none d-lg-inline">
|
|
<t t-if='website_sale_sortable_current'>
|
|
<t t-esc="website_sale_sortable_current[0][0]"/>
|
|
</t>
|
|
</span>
|
|
<i class="fa fa-sort-amount-asc d-lg-none"/>
|
|
</a>
|
|
<div class="dropdown-menu dropdown-menu-right" role="menu">
|
|
<t t-foreach="website_sale_sortable" t-as="sortby">
|
|
<a role="menuitem" rel="noindex,nofollow" t-att-href="keep('/shop', order=sortby[0])"
|
|
class="dropdown-item">
|
|
<span t-out="sortby[1]"/>
|
|
</a>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
<!-- To inherit add to cart -->
|
|
<template id="xtream_products_add_to_cart" name="Xtream Attributes"
|
|
inherit_id="website_sale.products_add_to_cart">
|
|
<xpath expr="//a[@t-if='product._website_show_quick_add()']" position="replace">
|
|
<a t-if="product._website_show_quick_add()"
|
|
href="#" role="button" class="btn btn-primary a-submit" style="padding: 0.375rem 1rem;" aria-label="Shopping cart" title="Shopping cart">
|
|
<span class="fa fa-shopping-cart"/>
|
|
</a>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|