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.
58 lines
2.5 KiB
58 lines
2.5 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>
|
|
</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 "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>
|
|
|