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.
93 lines
5.6 KiB
93 lines
5.6 KiB
<odoo>
|
|
<template id="arrival_product" name="Product Arrivals">
|
|
<section class="new_arrivals"></section>
|
|
</template>
|
|
<template id="arrival_snippet_carousel_thumbnail"
|
|
inherit_id="website.snippets" priority="8">
|
|
<xpath expr="//div[@id='snippet_structure']/div[hasclass('o_panel_body')]"
|
|
position="inside">
|
|
<t t-snippet="theme_voltro.arrival_product"
|
|
t-thumbnail="/theme_voltro/static/src/images/banner/about-banner.png"/>
|
|
</xpath>
|
|
</template>
|
|
<!-- templates/snippets.xml -->
|
|
<template id="arrival_product_show" name="Product Arrival Template">
|
|
<div class="wrapper">
|
|
<div class="container">
|
|
<div class="section_left_heading w-100">
|
|
<div class="ft_wrapp">
|
|
<h3 class="pb-2">New Arrivals</h3>
|
|
<p>Experience cutting-edge technology and seamless
|
|
performance with our latest gadgets, designed to
|
|
elevate your everyday life.
|
|
</p>
|
|
</div>
|
|
<div class="right_btn_wrapp">
|
|
<a href="/shop" class="btn btn-secondary">All
|
|
Products
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="new_arrivals_content">
|
|
<div class="owl-carousel" id="new_arrivals">
|
|
<t t-foreach="new_arrivals" t-as="product" t-key="new_arrival.id">
|
|
<div class="item">
|
|
<div class="voltro_product_card">
|
|
<a t-att-href="'/shop/product/%s' % product['id']"
|
|
class="block">
|
|
<div class="type"
|
|
t-esc="product['categ_id'][1]"/>
|
|
<h6 t-esc="product['name']"/>
|
|
<div class="fix_height"
|
|
style="margin-top:29px;">
|
|
<div class="img_wrapper">
|
|
<span t-esc="product['image_1920']"
|
|
t-options="{'widget': 'image', 'preview_image': 'image_1920'}"
|
|
class=" h-100 "/>
|
|
</div>
|
|
</div>
|
|
<div class="card_bottom">
|
|
<div class="rating"
|
|
style="visibility:hidden;">
|
|
<t t-foreach="range(5)"
|
|
t-as="star">
|
|
<a href="#">
|
|
<img src="/theme_voltro/static/src/images/product_card/star (2) 1.svg"
|
|
alt="star"/>
|
|
</a>
|
|
</t>
|
|
<span t-esc="'(%s)' % product['rating_count']"/>
|
|
</div>
|
|
<div class="price_icons">
|
|
<span t-esc="symbol + ' ' + str(product['list_price'])"/>
|
|
<div class="icons">
|
|
<button t-if="product['product_variant_id'][0]"
|
|
type="button"
|
|
role="button"
|
|
class="btn btn-link voltro_icon_link o_add_wishlist"
|
|
t-att-disabled="in_wish or None"
|
|
title="Add to Wishlist"
|
|
t-att-data-product-template-id="product['id']"
|
|
t-att-data-product-product-id="product['product_variant_id'][0]"
|
|
data-action="o_wishlist">
|
|
<img src="/theme_voltro/static/src/images/product_card/heart (1).svg"
|
|
alt="Favorite"
|
|
class="voltro_icon_img"/>
|
|
</button>
|
|
<a t-att-href="'/shop/product/%s' % product['id']">
|
|
<img src="/theme_voltro/static/src/images/product_card/view (1).svg"
|
|
alt="view"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</odoo>
|