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.
 
 
 
 
 

67 lines
3.7 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Customization of templates related to shop-->
<template id="boec_shop" name="Boec Shop" inherit_id="website_sale.products">
<xpath expr="//div[@id='wrap']" position="before">
<Section class="banner_sub">
<div class="wrapper">
<div class="container">
<div class="row">
<div class="sub_page">
<div class="name">
Shop
</div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/">Home</a>
</li>
<i class="material-icons">&#xe315;</i>
<li class="breadcrumb-item active"
aria-current="page">Shop
</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</Section>
</xpath>
<xpath expr="//div[@id='products_grid']/div[hasclass('products_header')]" position="replace">
<div class="products_header btn-toolbar flex-nowrap align-items-center justify-content-end gap-3 mb-3">
<div t-if="category" class="d-flex align-items-center d-lg-none me-auto">
<t t-if="not category.parent_id" t-set="backUrl" t-valuef="/shop"/>
<t t-else="" t-set="backUrl" t-value="keep('/shop/category/' + slug(category.parent_id), category=0)"/>
<a t-attf-class="btn btn-{{navClass}} me-2" t-att-href="category.parent_id and keep('/shop/category/' + slug(category.parent_id), category=0) or '/shop'">
<i class="fa fa-angle-left"/>
</a>
<h4 t-out="category.name" class="mb-0 me-auto"/>
</div>
<t t-if="is_view_active('website_sale.add_grid_or_list_option')" t-call="website_sale.add_grid_or_list_option">
<t t-set="_classes" t-valuef="d-flex"/>
</t>
<button t-if="is_view_active('website_sale.sort') or opt_wsale_categories or opt_wsale_attributes or opt_wsale_attributes_top"
t-attf-class="btn btn-{{navClass}} position-relative {{not opt_wsale_attributes_top and 'd-lg-none'}}"
data-bs-toggle="offcanvas"
data-bs-target="#o_wsale_offcanvas">
<i class="fa fa-sliders"/>
<span t-if="isFilteringByPrice or attrib_set or tags" t-attf-class="position-absolute top-0 start-100 translate-middle border border-{{navClass}} rounded-circle bg-danger p-1"><span class="visually-hidden">filters active</span></span>
</button>
</div>
</xpath>
</template>
<template id="boec_shop_add_to_cart" name="Boec Shop Cart Button" 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-light a-submit boec-cart"
aria-label="Shopping cart"
title="Shopping cart">
<span> + Add to cart</span>
</a>
</xpath>
</template>
</odoo>