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.
 
 
 
 
 

39 lines
2.1 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<template id="watchhut_header" inherit_id="website.template_header_default">
<!--<xpath expr="//t[@t-call='website.placeholder_header_brand']" position="replace">-->
<!-- <a class="navbar-brand" href="/">Watchhut</a>-->
<!--</xpath>-->
<xpath expr="//t[@t-call='portal.user_dropdown']" position="replace">
<t t-call="portal.user_dropdown">
<t t-set="_icon" t-value="true"/>
<t t-set="_item_class" t-value="'nav-item dropdown'"/>
<t t-set="_link_class" t-value="'nav-link'"/>
</t>
</xpath>
</template>
<template id="watchhut_cart" inherit_id="website_sale.header_cart_link">
<xpath expr="//li[contains(@t-attf-class, 'o_wsale_my_cart')]" position="replace">
<li class="o_wsale_my_cart nav-item">
<a href="/shop/cart" t-attf-class="#{_link_class}">
<img src="/theme_watchhut/static/src/images/icon/shopping-cart.svg"/>
<span t-if="_text">My Cart</span>
<sup class="my_cart_quantity badge badge-primary" t-esc="website_sale_order and website_sale_order.cart_quantity or '0'" t-att-data-order-id="website_sale_order and website_sale_order.id or ''"/>
</a>
</li>
</xpath>
</template>
<template id="watchhut_toggler" inherit_id="website.navbar_toggler">
<xpath expr="//button[contains(@t-attf-class, 'navbar-toggler')]" position="replace">
<button type="button" t-attf-class="navbar-toggler collapsed border-0 #{_toggler_class}" data-toggle="collapse" data-target="#top_menu_collapse">
<span class="navbar-toggler-icon o_not_editable"/>
<span class="navbar-toggler-icon o_not_editable"/>
<span class="navbar-toggler-icon o_not_editable"/>
</button>
</xpath>
</template>
</data>
</odoo>