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.
 
 
 
 
 

120 lines
6.6 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<template id="shop_products_lego" inherit_id="website_sale.products"
name="shop products">
<xpath expr="//div[@id='products_grid']" position="replace">
<div t-attf-class="main_product col #{'o_wsale_layout_list' if layout_mode == 'list' else ''}">
<section class="product_shop">
<div class="wrapper">
<div class="row">
<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']"/>
<div class="col-lg-4 col-md-6 col-sm-6 col-12">
<t t-att-data-ribbon-id="td_product['ribbon'].id">
<div t-attf-class="product_img">
<div class="wrapper_img">
<t t-call="website_sale.products_item">
</t>
</div>
</div>
</t>
</div>
</t>
</t>
</t>
</div>
</div>
</section>
</div>
</xpath>
</template>
<template id="shop_products_lego_button"
inherit_id="website_sale.products_item"
name="lego button" active="True" customize_show="True"
priority="22">
<xpath expr="//div[hasclass('o_wsale_product_btn')]" position="after">
<div class="product_buttons" style="padding-bottom: 10px;">
<ul class="product_bottom">
<li class="hoverable">
<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="#" class="a-submit" aria-label="Shopping cart" title="Shopping cart">
<span class="fa fa-shopping-bag"/>
</a>
</t>
</li>
<li class="hoverable">
<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()"/>
<a t-if="product_variant_id" type="button" role="button" class="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="fa fa-heart" aria-label="Add to wishlist"/>
</a>
</li>
<li class="hoverable">
<t t-set="product_variant_id" t-value="product._get_first_possible_variant_id()"/>
<a t-if="product_variant_id" type="button" role="button"
class="d-none d-md-inline-block o_add_compare" title="Compare"
aria-label="Compare" t-att-data-product-product-id="product_variant_id"
data-action="o_comparelist">
<span class="fa fa-sync"/>
</a>
</li>
</ul>
</div>
</xpath>
</template>
<template id="shop_banner_lego"
inherit_id="website_sale.products"
name="shop banner">
<xpath expr="//div[hasclass('oe_website_sale')]"
position="before">
<section class="banner_product">
<div class="container">
<div class="row">
<div class="col-12">
<div class="banner_content">
<div class="product_heading">
<h1>Shop Category page</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/">Home</a>
<i class="material-icons"
style="font-size:12px;color:#ffffff;">
arrow_forward
</i>
</li>
<li class="breadcrumb-item">
<a href="/shop">SHOP</a>
<i class="material-icons"
style="font-size:12px;color:#ffffff;">
arrow_forward
</i>
</li>
<li class="breadcrumb-item active"
aria-current="page">PODUCTS
</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</div>
</section>
</xpath>
</template>
</data>
</odoo>