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.
 
 
 
 
 

103 lines
5.9 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<template id="boec_shop" name="Boec Shop" inherit_id="website_sale.products">
<xpath expr="//div[hasclass('container')]" 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']" position="replace">
<t t-if="category">
<t t-set='editor_msg'>Drag building blocks here to customize the header for "<t t-esc='category.name'/>" category.</t>
<div class="mb16" id="category_header" t-att-data-editor-message="editor_msg" t-field="category.website_description"/>
</t>
<section t-attf-class="shop gap col #{'o_wsale_layout_list' if layout_mode == 'list' else ''}">
<div class="wrapper">
<div class="container">
<div class="row">
<div class="shop_content">
<div t-if="bins" class="row pt">
<t t-foreach="bins" t-as="tr_product">
<t t-foreach="tr_product" t-as="td_product">
<t t-if="td_product">
<t t-set="product" t-value="td_product['product']" />
<t t-attf-class="wrapper"
t-att-data-ribbon-id="td_product['ribbon'].id">
<div t-attf-class="img_wrapper">
<t t-call="website_sale.products_item"/>
</div>
</t>
</t>
<t t-else=""/>
</t>
</t>
</div>
</div>
</div>
</div>
</div>
</section>
</xpath>
</template>
<template id="boec_shop_add_to_cart" name="Boec Shop Cart Button" inherit_id="website_sale.products_item" customize_show="True" priority="2" active="True">
<xpath expr="//h6[hasclass('o_wsale_products_item_title')]" position="before">
<div class="add_to_c">
<t t-set="product_variant_id" t-value="product._get_first_possible_variant_id()"/>
<input name="product_id" t-att-value="product_variant_id" type="hidden"/>
<t t-if="product_variant_id">
<a href="#" aria-label="Shopping cart" title="Shopping cart" class="a-submit">
+ Add to cart
</a>
</t>
</div>
</xpath>
</template>
<template id="boec_shop_buttons" name="Boec Shop Buttons" inherit_id="website_sale.products_item" customize_show="True" priority="3" active="True">
<xpath expr="//div[hasclass('o_wsale_product_btn')]" position="inside">
<div class="three">
<ul>
<li>
<t t-set="in_wish" t-value="product._is_in_wishlist()"/>
<t t-set="product_variant_id" t-value="product._get_first_possible_variant_id()"/>
<button t-if="product_variant_id" type="button" role="button" class="btn btn-secondary o_add_wishlist"
t-att-disabled='in_wish or None' title="Add to Wishlist"
t-att-data-product-template-id="product.id"
t-att-data-product-product-id="product_variant_id" data-action="o_wishlist">
<span class="far fa-heart" role="img" aria-label="Add to wishlist"/>
</button>
</li>
<li>
<t t-set="product_variant_id" t-value="product._get_first_possible_variant_id()"/>
<button t-if="product_variant_id" type="button" role="button"
class="d-none d-md-inline-block btn btn-secondary o_add_compare cmp" title="Compare"
aria-label="Compare" t-att-data-product-product-id="product_variant_id"
data-action="o_comparelist">
<span class="material-icons">compare_arrows</span>
</button>
</li>
</ul>
</div>
</xpath>
</template>
</data>
</odoo>