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.
 
 
 
 
 

88 lines
3.9 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Template for customizing the appearance of product listings -->
<template id="coffee_shop_products" inherit_id="website_sale.products"
name="Coffee Shop Products" active="True">
<xpath expr="//div[@id='wrap']" position="before">
<section id="banner" class="banner-imgShop">
<div class="container wrapper ">
<div class="banner-content">
<div class="banner-text">
<p class="banner-head">A few clicks</p>
<p class="banner-head">is all it takes</p>
</div>
</div>
</div>
</section>
</xpath>
<xpath expr="//t[@t-call='website_sale.search']" position="replace"/>
<xpath expr="//div[hasclass('products_header')]" position="attributes">
<attribute name="class" add="pricelist_right"
remove="align-items-center justify-content-between"
separator=" "/>
</xpath>
</template>
<!-- Template for customizing individual product items -->
<template id="products_item_coffee" name="Products item Coffee"
inherit_id="website_sale.products_item">
<xpath expr="//div[hasclass('o_wsale_product_information_text')]"
position="after">
<div id="rating_coffee">
<t t-if="is_view_active('website_sale.product_comment')">
<t t-if="product.rating_avg > 1">
<i class="fa fa-star star" role="img"/>
</t>
<t t-else="">
<i class="fa fa-star-o star" role="img"/>
</t>
<small class="text-muted ms-1">
<t t-esc="product.rating_avg"/>
(
<t t-esc="product.rating_count"/>
Review)
</small>
</t>
</div>
</xpath>
</template>
<!-- Template for customizing the product search section -->
<template id="coffee_search"
inherit_id="website_sale.products_categories_list"
name="coffee search">
<xpath expr="//input[@t-att-id='all_products']" position="attributes">
<attribute name="class" add="d-none" separator=" "/>
</xpath>
<xpath expr="//h6" position="before">
<div class="coffe_search">
<t t-call="website_sale.search">
<t t-set="search" t-value="original_search or search"/>
<t t-set="_form_classes"
t-valuef="d-lg-inline {{'d-inline' if not category else 'd-none'}}"/>
</t>
</div>
</xpath>
</template>
<!-- Template for customizing category links -->
<template id="coffee_category" inherit_id="website_sale.categorie_link"
name="Coffee Category">
<xpath expr="//input[@type='radio']" position="attributes">
<attribute name="class" add="d-none" separator=" "/>
</xpath>
</template>
<!-- Template for customizing the "Add to Cart" button -->
<template id="coffee_buy" inherit_id="website_sale.products_add_to_cart"
name="Coffee Buy">
<xpath expr="//a" position="attributes">
<attribute name="class" add="add_buy" separator=" "/>
</xpath>
</template>
<!-- Template for customizing the wishlist button -->
<template id="coffee_wishlist"
inherit_id="website_sale_wishlist.add_to_wishlist">
<xpath expr="//button[hasclass('o_add_wishlist')]"
position="attributes">
<attribute name="class" add="btn-primary"
remove="btn-outline-primary" separator=" "/>
</xpath>
</template>
</odoo>