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.
 
 
 
 
 

96 lines
4.9 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- To add smart clothing snippet -->
<template id="fasion_smart_clothing" inherit_id="website.snippets" name="Smart Clothing Snippet">
<xpath expr="//snippets[@id='snippet_groups']" position="inside">
<t t-snippet="theme_fasion._smart_clothing_snippet"
t-thumbnail="theme_fasion/static/src/img/snippets/smart-clothing.jpg"/>
</xpath>
</template>
<!-- Loading snippet -->
<template id="_smart_clothing_snippet" name="Smart Clothing Snippet">
<section class="_fasion_smart_clothing o_not_editable">
<div class="alert alert-info">
<h4>Snippet will be displayed here... Please Save to view the snippet.</h4>
</div>
</section>
</template>
<!-- Smart clothing snippet -->
<template id="smart_clothing_snippet" name="Smart Clothing Snippet">
<t t-if="not categories">
<section class="smart_cloath fasion_smart_clothing">
<div class="alert alert-info">
<h4>Configure Categories : Website > Configuration > Theme Fashion Configuration</h4>
</div>
</section>
</t>
<t t-else="">
<section class="smart_cloath">
<div class="container-fluid p-0">
<div class="wrapper gap">
<h3 class="main_heading gap2">
Smart Clothing
</h3>
<div class="tab_part">
<ul class="nav nav-tabs " id="myTab" role="tablist">
<t t-set="order" t-value="1"/>
<t t-foreach="categories" t-as="category">
<li class="nav-item" role="presentation">
<a class="smart_clothing_category" href="#" t-att-data-order="order">
<button class="nav-link" id="home-tab" data-bs-toggle="tab" data-bs-target="#home"
type="button" role="tab" aria-controls="home" aria-selected="true">
<t t-esc="category.category_id.name"/>
</button>
</a>
<t t-set="order" t-value="order + 1"/>
</li>
</t>
</ul>
<div id="smart_clothin_products">
<t t-call="theme_fasion.smart_clothing_snippet_products"/>
</div>
</div>
</div>
</div>
</section>
</t>
</template>
<template id="smart_clothing_snippet_products" name="Smart clothing snippet products">
<t t-if="current_category and current_category.product_ids">
<section class="smart_cloath">
<div class="tab-content gap" id="myTabContent">
<div class="row justify-content-center">
<div class="col-12">
<div class="d-flex flex-wrap justify-content-center">
<t t-foreach="current_category.product_ids" t-as="product">
<div class="sliding_product">
<div class="wrapper">
<div class="img_wrapper" >
<img t-attf-src="/web/image?model=product.template&amp;field=image_1920&amp;id=#{product.id}" alt=""/>
<div class="inner">
<a t-att-href="product.website_url" class="quick_view zoomIn">Quick view</a>
</div>
</div>
<h4 class="sp_name">
<a t-att-href="product.website_url">
<t t-esc="product.name"/>
</a>
</h4>
</div>
</div>
</t>
</div>
</div>
</div>
</div>
</section>
</t>
<t t-else="">
<section class="smart_cloath">
<div class="alert alert-info">
<h4>Configure Categories : Website > Configuration > Theme Fasion Configuration</h4>
</div>
</section>
</t>
</template>
</odoo>