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.
 
 
 
 
 

236 lines
12 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="perfume_product_item_theme" customize_show="True"
inherit_id="website_sale.products_item"
name="Theme Perfume">
<xpath expr="//div[@class='card-body p-1 oe_product_image']"
position="replace">
<!-- <div class="col-xl-4 col-lg-4 col-md-6 col-sm-6">-->
<div class="single-popular-items text-center">
<input type="hidden" name="csrf_token"
t-att-value="request.csrf_token()"/>
<t t-set="in_wish" t-value="product._is_in_wishlist()"/>
<t t-set="product_variant_id"
t-value="product._get_first_possible_variant_id()"/>
<div class="favorit-items">
<span t-if="product_variant_id"
class="flaticon-heart 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_variant_id"
data-action="o_wishlist">
</span>
</div>
<div class="popular-img">
<a t-att-href="product_href" class="d-block h-100"
itemprop="url">
<t t-set="image_holder"
t-value="product._get_image_holder()"/>
<span t-field="image_holder.image_1920"
t-options="{'widget': 'image', 'preview_image': 'image_1024' if product_image_big else 'image_256'}"
class="d-flex h-100 justify-content-center align-items-center">
</span>
</a>
<div>
<t t-set="product_variant_id"
t-value="product._get_first_possible_variant_id()"/>
<input name="product_id"
t-att-value="product_variant_id"
type="hidden"/>
<t t-if="product_variant_id">
<a href="#" role="button" id="cart-button"
class="a-submit"
aria-label="Shopping cart"
title="Shopping cart">
<div class="img-cap">
Add To Cart
</div>
</a>
</t>
</div>
</div>
</div>
<!-- </div>-->
</xpath>
<xpath expr="//div[@class='card-body p-0 text-center o_wsale_product_information']"
position="replace">
<div class="p-0 text-center o_wsale_product_information">
<hr id="product_divider"/>
<div class="p-2 o_wsale_product_information_text">
<h5 class="o_wsale_products_item_title">
<a itemprop="name" t-att-href="product_href"
t-att-content="product.name" t-field="product.name"
style="color:black;"/>
<a role="button" t-if="not product.website_published"
t-att-href="product_href"
class="btn btn-sm btn-danger"
title="This product is unpublished.">Unpublished
</a>
</h5>
<div class="product_price" itemprop="offers"
itemscope="itemscope"
itemtype="http://schema.org/Offer">
<del t-attf-class="text-danger mr-2 {{'' if combination_info['has_discounted_price'] else 'd-none'}}"
style="white-space: nowrap;"
t-esc="combination_info['list_price']"
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<span t-if="combination_info['price']"
t-esc="combination_info['price']"
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<span itemprop="price" style="display:none;"
t-esc="combination_info['price']"/>
<span itemprop="priceCurrency" style="display:none;"
t-esc="website.currency_id.name"/>
</div>
</div>
<div class="o_wsale_product_btn"/>
</div>
</xpath>
</template>
<template id="fasion_product_theme" inherit_id="website_sale.products"
customize_show="True" name="Fashion Theme">
<xpath expr="//div[@id='wrap']" position="before">
<div class="slider-area ">
<div class="single-slider slider-height2 d-flex align-items-center">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="hero-cap text-center">
<h2>Perfume Shop</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
<xpath expr="//div[@id='products_grid']" position="replace">
<div class="tab-content" id="nav-tabContent">
<!-- card one -->
<div class="tab-pane fade show active" id="nav-home"
role="tabpanel" aria-labelledby="nav-home-tab">
<div class="container">
<div class="row">
<t t-if="category">
<t t-set='editor_msg'>Drag building blocks here
to customize the header for "<t
t-esc='category.name'/>" category.
</t>
<div class="mb16" id="category_header"
t-att-data-editor-message="editor_msg"
t-field="category.website_description"/>
</t>
<t t-if="bins">
<t t-foreach="bins" t-as="tr_product">
<t t-foreach="tr_product" t-as="td_product">
<t t-if="td_product">
<t t-set="product"
t-value="td_product['product']"/>
<div class="col-xl-4 col-lg-4 col-md-6 col-sm-6">
<div class="single-popular-items mb-50 text-center">
<div t-attf-class="popular-img">
<t t-call="website_sale.products_item">
</t>
</div>
</div>
</div>
</t>
</t>
</t>
</t>
<t t-else="">
<div class="text-center text-muted">
<t t-if="not search">
<h3 class="mt8">No product defined</h3>
<p t-if="category">No product defined in
category "
<strong
t-esc="category.display_name"/>
".
</p>
</t>
<t t-else="">
<h3 class="mt8">No results</h3>
<p>No results for "<strong
t-esc='search'/>"
<t t-if="category">in category "
<strong t-esc="category.display_name"/>
"
</t>
.
</p>
</t>
<p t-ignore="true"
groups="sales_team.group_sale_manager">
Click <i>'New'</i> in the top-right
corner to create your first product.
</p>
</div>
</t>
</div>
</div>
</div>
</div>
</xpath>
</template>
<template id="perfume_add_grid_or_list"
inherit_id="website_sale.add_grid_or_list_option" active="True"
customize_show="True" name="Grid or List button">
<xpath expr="//div[@class='btn-group btn-group-toggle mt-2 ml-md-2 d-none d-sm-inline-flex o_wsale_apply_layout']"
position="replace">
<div class="btn-group btn-group-toggle mt-2 ml-md-2 d-none d-sm-inline-flex o_wsale_apply_layout"
data-toggle="buttons">
<label t-attf-class="btn btn-secondary #{'active' if layout_mode != 'list' else None} fa fa-th-large o_wsale_apply_grid"
title="Grid">
<i class="fa fa-th-large"></i>
<input type="radio" name="wsale_products_layout"
t-att-checked="'checked' if layout_mode != 'list' else None"/>
</label>
<label t-attf-class="btn btn-secondary #{'active' if layout_mode == 'list' else None} fa fa-th-list o_wsale_apply_list"
title="List">
<i class="fa fa-bars"></i>
<input type="radio" name="wsale_products_layout"
t-att-checked="'checked' if layout_mode == 'list' else None"/>
</label>
</div>
</xpath>
</template>
<template id="perfume_product_cart" inherit_id="website_sale.cart"
name="Perfume Cart">
<xpath expr="//div[@class='container oe_website_sale py-2']"
position="before">
<section>
<div class="slider-area ">
<div class="single-slider slider-height2 d-flex align-items-center">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="hero-cap text-center">
<h2>Cart List</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</xpath>
</template>
</odoo>