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.
91 lines
4.8 KiB
91 lines
4.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Inherited website snippet section and added the product section in it-->
|
|
<template id="product_banner" inherit_id="website.snippets"
|
|
name="Product banner">
|
|
<xpath expr="//snippets[@id='snippet_groups']"
|
|
position="inside">
|
|
<t t-snippet="theme_fuge.product_section"
|
|
t-thumbnail="/theme_fuge/static/src/images/snippets/banner/product-section.jpg"/>
|
|
</xpath>
|
|
</template>
|
|
<!--Template for fuge product section snippet-->
|
|
<template id="product_section" name="Fuge Product Section">
|
|
<!-- Product section starts here -->
|
|
<section class="product">
|
|
<div class="product_added">
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<div class="container">
|
|
<div class="alert alert-info">
|
|
<h4>Your product snippet will be displayed here...
|
|
Please Save to view the snippet
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
</div>
|
|
</section>
|
|
<div class="oe_structure"/>
|
|
</template>
|
|
|
|
<!--section for the new product-->
|
|
<template id="product_snippet_section" name="Product arrivals">
|
|
<section class="tab_product gap">
|
|
<div class="wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="tile" id="tile-1">
|
|
<div class="tab-content gap">
|
|
<div class="tab-pane fade show active" id="home"
|
|
role="tabpanel" aria-labelledby="home-tab">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="header">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="container text-center">
|
|
<h1>
|
|
SHOP WITH
|
|
<span>US</span>
|
|
</h1>
|
|
<P> Handpicked Favorites Just For You</P>
|
|
</div>
|
|
<t t-foreach="main_products" t-as="product_id">
|
|
<div class="new_arrivals col-xl-4 col-lg-4 col-md-6 col-sm-6">
|
|
<div class="single-new-pro mb-30 text-center">
|
|
<a t-attf-href="/shop/product/#{product_id.id}">
|
|
<div class="product-img">
|
|
<img t-attf-src="/web/image?model=product.template&field=image_1920&id=#{product_id.id}"
|
|
class="img img-fluid"/>
|
|
</div>
|
|
<div class="popular-caption">
|
|
<h3>
|
|
<div t-if="product_id"
|
|
t-esc="product_id.display_name"/>
|
|
</h3>
|
|
<span>
|
|
<span t-if="product_id"
|
|
t-esc="product_id.list_price"
|
|
t-options="{'widget':'monetary', 'display_currency':website.currency_id}"/>
|
|
</span>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<div class="oe_structure"/>
|
|
</template>
|
|
</odoo>
|