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.
82 lines
4.6 KiB
82 lines
4.6 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!--Added Arrival snippet in website snippet section-->
|
|
<template id="new_arrival" inherit_id="website.snippets" name="New Arrivals">
|
|
<xpath expr="//div[@id='snippet_structure']/div[hasclass('o_panel_body')]" position="inside">
|
|
<t t-snippet="cts_theme_perfume.cts_new_arrival" t-thumbnail="/cts_theme_perfume/static/src/img/snippets/new-arrivals-block.jpg"/>
|
|
</xpath>
|
|
</template>
|
|
<!-- Snippet for newly arrival products-->
|
|
<template id="cts_new_arrival"
|
|
name="Arrival Snippet">
|
|
<section class="NewArrivals">
|
|
<div class="banner_added">
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<hr/>
|
|
<div class="container">
|
|
<div class="alert alert-info">
|
|
<h4>Your product Arrival snippet will be displayed here...
|
|
Please Save to view the snippet
|
|
</h4>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
<!--section for the new arrival product-->
|
|
<template id="arrival_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="col-xl-12">
|
|
<div class="section-tittle mb-70">
|
|
<h2>New Arrivals</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<t t-foreach="product_ids" 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>
|