2018-01-16 06:58:15 +01:00
<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra >
2018-01-16 06:58:15 +01:00
<template id= "assets_frontend" inherit_id= "website.assets_frontend" name= "Wishlist assets frontend" >
<xpath expr= "." position= "inside" >
<link type= "text/less" rel= 'stylesheet' href= '/website_sale_wishlist/static/src/less/website_sale_wishlist.less' />
<script type= "text/javascript" src= "/website_sale_wishlist/static/src/js/website_sale_wishlist.js" > </script>
2018-04-27 13:14:54 +02:00
<script type= "text/javascript" src= "/website_sale_wishlist/static/src/js/website_sale_tour_wishlist.js" > </script>
2018-01-16 06:58:15 +01:00
</xpath>
</template>
<template id= "add_to_wishlist" inherit_id= "website_sale.products_item" active= "True" customize_show= "True" name= "Wishlist" priority= "20" >
<xpath expr= "//div[hasclass('product_price')]" position= "inside" >
<t t-set= "in_wish" t-value= "product.product_variant_ids & request.env['product.wishlist'].current().mapped('product_id')" />
<a class= "btn btn-default btn-xs o_add_wishlist" t-att-disabled= 'in_wish or None' title= "Add to Wishlist" t-att-data-product-product-id= "product.product_variant_ids[0].id" data-action= "o_wishlist" > <span class= "fa fa-heart" > </span> </a>
</xpath>
</template>
<template id= "product_add_to_wishlist" name= 'Add to wishlist in product page' inherit_id= "website_sale.product" priority= "20" >
<xpath expr= "//a[@id='add_to_cart']" position= "after" >
<t t-if= "product.env.ref('website_sale_wishlist.add_to_wishlist').active" >
<t t-set= "in_wish" t-value= "product.product_variant_ids & request.env['product.wishlist'].current().mapped('product_id')" />
<a class= "btn btn-default btn-lg mt8 o_add_wishlist_dyn" t-att-disabled= 'in_wish or None' title= "Add to Wishlist" t-att-data-product-product-id= "product.product_variant_ids[0].id" data-action= "o_wishlist" > <span class= "fa fa-heart" > </span> </a>
</t>
</xpath>
</template>
<template id= "header" inherit_id= "website.layout" name= "Header Shop Wishlist Link" >
<xpath expr= "//header//ul[@id='top_menu']/li[@id='my_cart']" position= "after" >
<t t-if= "request.env.ref('website_sale_wishlist.add_to_wishlist').active" >
<t t-set= 'wishcount' t-value= "len(request.env['product.wishlist'].current())" />
<li id= "my_wish" t-att-style= "not wishcount and 'display:none;'" >
<a href= "/shop/wishlist" >
<i class= "fa fa-heart" > </i>
Wishlist <sup t-attf-class= "my_wish_quantity o_animate_blink label label-primary" > <t t-esc= 'wishcount' /> </sup>
</a>
</li>
</t>
</xpath>
</template>
<template id= "product_wishlist" name= "Wishlist Page" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Shop Wishlist</t>
<div id= "wrap" class= "js_sale" >
<div class= "oe_structure" />
<div class= "container oe_website_sale" >
<section class= "container wishlist-section" >
<h3 > My Wishlist</h3>
<div class= "checkbox" >
<label class= 'text-muted' > <input type= "checkbox" id= 'b2b_wish' value= "1" /> Add product to my cart but keep it in my wishlist</label>
</div>
<table class= "table table-bordered table-striped table-hover text-center mt16 table-comparator" id= "o_comparelist_table" >
<body >
<t t-foreach= "wishes" t-as= "wish" >
<tr t-att-data-wish-id= 'wish.id' t-att-data-product-id= 'wish.product_id.id' >
<td class= 'td-img' >
<a t-att-href= "'/shop/product/%s' % slug(wish.product_id.product_tmpl_id)" >
<img t-attf-src= "/web/image/product.product/#{wish.product_id.id}/image/100x100" class= "img img-responsive" style= "margin:auto;" />
</a>
</td>
<td class= 'text-left' >
<strong > <a t-att-href= "'/shop/product/%s' % slug(wish.product_id.product_tmpl_id)" > <t t-esc= "wish.product_id.display_name" /> </a> </strong>
<small class= 'hidden-xs' > <p t-field= "wish.product_id.description_sale" class= "text-muted" /> </small>
<a class= "o_wish_rm no-decoration" > <small > <i class= 'fa fa-trash-o' > </i> Remove</small> </a>
</td>
<td style= 'width:80px' >
<t t-if= 'wish.price_new != wish.price' >
<del class= 'text-danger' > <t t-esc= 'wish.price' t-options= "{'widget': 'monetary', 'display_currency': wish.currency_id}" /> </del>
<br />
</t>
<t t-esc= 'wish.price_new' t-options= "{'widget': 'monetary', 'display_currency': wish.currency_id}" />
</td>
<td class= 'text-center td-wish-btn' >
<input name= "product_id" t-att-value= "wish.product_id.id" type= "hidden" />
<a class= "btn btn-default btn-block o_wish_add mb4" > Add <span class= 'hidden-xs' > to Cart</span> </a>
</td>
</tr>
</t>
</body>
</table>
</section>
</div>
</div>
</t>
</template>
2018-01-16 11:34:37 +01:00
</flectra>