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.
92 lines
4.7 KiB
92 lines
4.7 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
<template id="best_deal_snippet_template" name="Best Deal">
|
|
<section class="best_deal deal gap">
|
|
<div class="container oe_structure">
|
|
<div class="section_heading">
|
|
<h3>
|
|
<b>Best Deals</b>
|
|
</h3>
|
|
<hr/>
|
|
<p>A wonderful serenity has taken possession of my
|
|
entire soul, like these
|
|
<br/>
|
|
sweet mornings of spring which I
|
|
enjoy with
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
<!-- Custom snippet template-->
|
|
<template id="best_deal_template">
|
|
<div class="container oe_structure">
|
|
<div class="section_heading">
|
|
<h3>
|
|
<b>Best Deals</b>
|
|
</h3>
|
|
<hr/>
|
|
<p>A wonderful serenity has taken possession of my
|
|
entire soul, like these
|
|
<br/>
|
|
sweet mornings of spring which I
|
|
enjoy with
|
|
</p>
|
|
</div>
|
|
<div class="deal_content">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<t t-if="product_id">
|
|
<div class="wrapper">
|
|
<div class="deal_img">
|
|
<a t-attf-href="/shop/product/#{ slug(product_id.product_tmpl_id) }">
|
|
<span t-if="product_id"
|
|
t-esc="product_id.image_1920"
|
|
t-options="{'widget': 'image', 'preview_image': 'image_1024' if product_image_big else 'image_256'}"/>
|
|
</a>
|
|
</div>
|
|
<div class="deal_info">
|
|
<div class="rating_container">
|
|
<t t-call="portal_rating.rating_widget_stars_static">
|
|
<t t-set="rating_avg"
|
|
t-value="product_id.rating_avg"/>
|
|
<t t-set="trans_text_plural">
|
|
%s reviews
|
|
</t>
|
|
<t t-set="trans_text_singular">
|
|
%s review
|
|
</t>
|
|
<t t-set="rating_count"
|
|
t-value="(trans_text_plural if product_id.rating_count > 1 else trans_text_singular) % product_id.rating_count"/>
|
|
</t>
|
|
</div>
|
|
<h4 t-esc="product_id.display_name"/>
|
|
<div t-esc="product_id.description_sale"/>
|
|
<div class="price">
|
|
<div t-esc="product_id.lst_price"
|
|
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
</div>
|
|
<p id="countdown"></p>
|
|
<button type="button"
|
|
class="btn btn-primary btn-buy-now"
|
|
t-att-data-product-id="product_id.id">
|
|
Buy now
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
<t t-if="not product_id">
|
|
<div style="text-align: center;">
|
|
<b>Please add Best deal Product in the
|
|
Blast Configuration
|
|
</b>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</data>
|
|
</odoo>
|
|
|