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.
65 lines
3.0 KiB
65 lines
3.0 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
<template id="watchhut_shop" name="WatchHut Shop" inherit_id="website_sale.products">
|
|
<xpath expr="//div[hasclass('products_pager')]" position="before">
|
|
<section class="shop">
|
|
<section class="banner">
|
|
<div class="container">
|
|
<div class="row">
|
|
<h3 class="banner_head">
|
|
Shop
|
|
</h3>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
</xpath>
|
|
<xpath expr="//div[@id='products_grid']" position="replace">
|
|
<section t-attf-class="product col #{'o_wsale_layout_list' if layout_mode == 'list' else ''}">
|
|
<div class="container-fluid">
|
|
<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-12 col-sm-6 col-md-4 column all">
|
|
<div class="content">
|
|
<div t-att-data-ribbon-id="td_product['ribbon'].id">
|
|
<div class="test" id="hh">
|
|
<t t-call="website_sale.products_item">
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</xpath>
|
|
</template>
|
|
<template id="watchhut_shop_images" name="WatchHut Shop Images" inherit_id="website_sale.products_item">
|
|
<xpath expr="//div[hasclass('oe_product_image')]" position="replace">
|
|
<div class="card-body p-1 oe_product_image">
|
|
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()" />
|
|
<a t-att-href="product_href" class="d-block h-100" itemprop="url">
|
|
<t t-set="image_holder" t-value="product._get_image_holder()"/>
|
|
<span t-field="image_holder.image_1920"
|
|
t-options="{'widget': 'image', 'preview_image': 'image_1920'}"
|
|
class="d-flex h-100 justify-content-center align-items-center"/>
|
|
</a>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</data>
|
|
</odoo>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|