2013-06-28 16:28:04 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
2013-07-23 08:18:13 +00:00
<data >
2013-07-23 13:39:23 +00:00
2014-01-30 23:39:51 +00:00
<!-- Layout and common templates -->
2013-12-12 10:58:21 +00:00
2014-06-25 13:05:48 +00:00
<template id= "assets_frontend" inherit_id= "website.assets_frontend" name= "Shop" >
2014-06-25 12:03:23 +00:00
<xpath expr= "." position= "inside" >
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_sale.css' />
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_mail.css' />
2014-06-28 17:59:59 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
2014-06-25 12:03:23 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_payment.js" > </script>
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_validate.js" > </script>
2014-06-28 17:59:59 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_tour_buy.js" > </script>
2014-09-05 12:34:42 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_tracking.js" > </script>
2014-06-28 17:59:59 +00:00
</xpath>
</template>
<template id= "assets_editor" inherit_id= "website.assets_editor" name= "Shop Editor" groups= "base.group_sale_manager" >
<xpath expr= "." position= "inside" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.editor.js" > </script>
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_tour_shop.js" > </script>
2014-06-25 12:03:23 +00:00
</xpath>
</template>
2013-12-12 10:58:21 +00:00
<template id= "header" inherit_id= "website.layout" name= "Header Shop My Cart Link" >
<xpath expr= "//header//ul[@id='top_menu']/li" position= "before" >
2014-02-21 17:28:16 +00:00
<t t-set= "website_sale_order" t-value= "website.sale_get_order()" />
<li t-att-class= "'' if website_sale_order and website_sale_order.cart_quantity else 'hidden'" >
2014-04-10 14:35:24 +00:00
<a href= "/shop/cart" >
2013-12-12 10:58:21 +00:00
<i class= "fa fa-shopping-cart" > </i>
2014-02-21 17:28:16 +00:00
My cart <sup t-attf-class= "my_cart_quantity label label-primary" t-esc= "website_sale_order and website_sale_order.cart_quantity or ''" />
2013-09-25 18:05:38 +00:00
</a>
2013-12-12 10:58:21 +00:00
</li>
</xpath>
</template>
2014-06-28 17:59:59 +00:00
2013-12-12 10:58:21 +00:00
<template id= "search" name= "Search hidden fields" >
2014-08-25 14:19:29 +00:00
<form t-att-action= "keep('/shop'+ ('/category/'+slug(category)) if category else '', search=0)" method= "get" t-att-class= "search_class" >
<t t-if= "attrib_values" >
<t t-foreach= "attrib_values" t-as= "a" >
2014-08-28 14:42:17 +00:00
<input type= "hidden" name= "attrib" t-att-value= "'%s-%s' % (a[0], a[1])" />
2014-08-25 14:19:29 +00:00
</t>
2014-05-27 07:42:52 +00:00
</t>
2014-08-25 14:19:29 +00:00
<div class= "input-group" >
<input type= "text" name= "search" class= "search-query form-control" placeholder= "Search..." t-att-value= "search" />
<span class= "input-group-btn" >
<a class= "btn btn-default a-submit" > <i class= "fa fa-search" /> </a>
</span>
2013-12-12 10:58:21 +00:00
</div>
2014-08-25 14:19:29 +00:00
</form>
2013-12-12 10:58:21 +00:00
</template>
2014-01-30 23:39:51 +00:00
<template id= "404" >
<t t-call= "website.layout" >
<div id= "wrap" >
<div class= "oe_structure oe_empty" >
<div class= "container" >
<h1 class= "mt32" > Product not found!</h1>
<p > Sorry, this product is not available anymore.</p>
2014-04-10 14:35:24 +00:00
<p > <a t-attf-href= "/shop" > Return to the product list.</a> </p>
2014-01-30 23:39:51 +00:00
</div>
</div>
</div>
</t>
2013-12-12 10:58:21 +00:00
</template>
2014-01-30 23:39:51 +00:00
<!-- Product item used by /shop and /shop/cart -->
<template id= "products_item" name= "Product item" >
2015-02-12 15:37:37 +00:00
<form action= "/shop/cart/update" method= "post" >
2014-02-03 16:55:36 +00:00
<div itemscope= "itemscope" itemtype= "http://schema.org/Product" >
2013-12-13 16:16:42 +00:00
<div class= "ribbon-wrapper" >
2014-01-14 21:25:33 +00:00
<div class= "ribbon btn btn-danger" > Sale</div>
2013-12-13 16:16:42 +00:00
</div>
<div class= "oe_product_image" >
2014-06-17 07:44:32 +00:00
<a itemprop= "url" t-att-href= "keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))" >
2015-08-27 13:45:10 +00:00
<img itemprop= "image" class= "img img-responsive" t-att-src= "website.image_url(product, 'image', None if product_image_big else '300x300')" t-att-alt= "product.name" />
2013-12-13 16:16:42 +00:00
</a>
</div>
<section >
2014-06-17 07:44:32 +00:00
<h5 > <strong > <a itemprop= "name" t-att-href= "keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))" t-field= "product.name" /> </strong> </h5>
2014-02-03 16:55:36 +00:00
<div itemprop= "offers" itemscope= "itemscope" itemtype= "http://schema.org/Offer" class= "product_price" t-if= "product.product_variant_ids" >
2013-12-13 16:16:42 +00:00
<b >
2014-07-02 16:18:29 +00:00
<t t-if= "(compute_currency(product.lst_price) - product.price) > 0.1" >
2014-06-18 15:43:14 +00:00
<del class= "text-danger" style= "white-space: nowrap;" t-field= "product.lst_price" t-field-options= '{
2014-06-18 14:28:35 +00:00
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "product.company_id.currency_id",
2014-06-18 15:43:14 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-06-18 14:28:35 +00:00
}'/>& nbsp;
2013-12-13 16:16:42 +00:00
</t>
2014-06-18 15:43:14 +00:00
<span t-field= "product.price" style= "white-space: nowrap;" t-field-options= '{
2013-12-13 16:16:42 +00:00
"widget": "monetary",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-02-03 16:55:36 +00:00
}'>
</span>
2014-05-27 07:42:52 +00:00
<span itemprop= "price" style= "display:none;" t-esc= "product.price" />
2016-11-28 10:26:54 +00:00
<span itemprop= "priceCurrency" style= "display:none;" t-esc= "user_id.partner_id.property_product_pricelist.currency_id.name" class= 'decimal_precision' t-att-data-precision= "website.pricelist_id.currency_id.rounding" />
2013-12-13 16:16:42 +00:00
</b>
</div>
</section>
2014-02-03 16:55:36 +00:00
</div>
2014-06-25 12:03:23 +00:00
</form>
2013-12-12 10:58:21 +00:00
</template>
2014-08-31 14:56:44 +00:00
<template id= "products_description" inherit_id= "website_sale.products_item" active= "False" customize_show= "True" name= "Product Description" >
2014-01-30 23:39:51 +00:00
<xpath expr= "//div[@class='product_price']" position= "before" >
2014-04-10 14:35:24 +00:00
<div class= "text-info oe_subdescription" contenteditable= "false" >
<div itemprop= "description" t-field= "product.description_sale" > </div>
</div>
2014-01-30 23:39:51 +00:00
</xpath>
</template>
2014-08-31 14:56:44 +00:00
<template id= "products_add_to_cart" inherit_id= "website_sale.products_item" active= "False" customize_show= "True" name= "Add to Cart" >
2014-01-30 23:39:51 +00:00
<xpath expr= "//div[@class='product_price']" position= "inside" >
2014-06-25 12:03:23 +00:00
<input name= "product_id" t-att-value= "product.product_variant_ids[0].id" type= "hidden" />
2015-11-13 12:05:33 +00:00
<t t-if= "len(product.product_variant_ids) == 1" >
2015-05-22 09:33:38 +00:00
<a class= "btn btn-default btn-xs fa fa-shopping-cart a-submit" />
</t>
2015-11-13 12:05:33 +00:00
<t t-if= "len(product.product_variant_ids) > 1" >
2015-05-22 09:33:38 +00:00
<a class= "btn btn-default btn-xs fa fa-shopping-cart" t-att-href= "keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))" />
</t>
2014-01-30 23:39:51 +00:00
</xpath>
</template>
<!-- /shop product listing -->
2013-12-12 10:58:21 +00:00
<template id= "products" name= "Products" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Shop</t>
2014-01-16 18:05:35 +00:00
<div id= "wrap" class= "js_sale" >
2013-12-12 10:58:21 +00:00
<div class= "oe_structure" />
<div class= "container oe_website_sale" >
<div class= "products_pager" >
2014-09-10 11:24:56 +00:00
<div class= "row" style= "width: 100%;" >
2014-08-25 14:19:29 +00:00
<t t-call= "website_sale.search" > <t t-set= "search_class" > pagination form-inline col-md-3</t> </t>
2013-12-12 10:58:21 +00:00
<t t-call= "website.pager" />
</div>
</div>
2013-12-13 16:16:42 +00:00
<div class= 'row' >
2013-12-12 10:58:21 +00:00
<div class= "hidden" id= "products_grid_before" > </div>
<div class= "col-md-12" id= "products_grid" >
<table width= "100%" >
<tbody >
2013-12-12 11:47:31 +00:00
<tr t-ignore= "true" >
2013-12-12 10:58:21 +00:00
<td t-foreach= "range(0,rows)" t-as= "row" t-attf-width= "#{100/rows}%" > </td>
</tr>
<tr 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']" />
2013-12-12 11:47:31 +00:00
<td t-att-colspan= "td_product['x'] != 1 and td_product['x']"
t-att-rowspan="td_product['y'] != 1 and td_product['y']"
2013-12-13 16:16:42 +00:00
t-attf-class="oe_product oe_grid oe-height-#{td_product['y']*2} #{ td_product['class'] }">
2013-12-12 10:58:21 +00:00
<div class= "oe_product_cart" t-att-data-publish= "product.website_published and 'on' or 'off'" >
<div class= "css_options" t-ignore= "true" groups= "base.group_website_publisher" >
<div t-attf-class= "dropdown js_options" t-att-data-id= "product.id" >
2014-03-07 13:45:51 +00:00
<button class= "btn btn-default" t-att-id= "'dopprod-%s' % product.id" role= "button" data-toggle= "dropdown" > Options <span class= "caret" > </span> </button>
2013-12-12 10:58:21 +00:00
<ul class= "dropdown-menu" role= "menu" t-att-aria-labelledby= "'dopprod-%s' % product.id" >
<li class= 'dropdown-submenu' >
<a tabindex= "-1" href= "#" > Size</a>
<ul class= "dropdown-menu" name= "size" >
<li > <a href= "#" >
<table >
<tr >
<td class= "selected" > </td>
<td t-att-class= "product.website_size_x > 1 and 'selected'" > </td>
<td t-att-class= "product.website_size_x > 2 and 'selected'" > </td>
<td t-att-class= "product.website_size_x > 3 and 'selected'" > </td>
</tr>
<tr >
<td t-att-class= "product.website_size_y > 1 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 1 and product.website_size_x > 1 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 1 and product.website_size_x > 2 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 1 and product.website_size_x > 3 and 'selected'" > </td>
</tr>
<tr >
<td t-att-class= "product.website_size_y > 2 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 2 and product.website_size_x > 1 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 2 and product.website_size_x > 2 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 2 and product.website_size_x > 3 and 'selected'" > </td>
</tr>
<tr >
<td t-att-class= "product.website_size_y > 3 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 3 and product.website_size_x > 1 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 3 and product.website_size_x > 2 and 'selected'" > </td>
<td t-att-class= "product.website_size_y > 3 and product.website_size_x > 3 and 'selected'" > </td>
</tr>
</table>
</a> </li>
</ul>
</li>
<li class= 'dropdown-submenu' >
<a tabindex= "-1" href= "#" > Styles</a>
<ul class= "dropdown-menu" name= "style" >
<t t-foreach= "styles" t-as= "style" >
<li t-att-class= "style_in_product(style, product) and 'active' or ''" > <a href= "#" t-att-data-id= "style.id" t-att-data-class= "style.html_class" > <t t-esc= "style.name" /> </a> </li>
</t>
</ul>
</li>
2013-12-12 11:47:31 +00:00
<li class= 'dropdown-submenu' >
<a tabindex= "-1" href= "#" > Promote</a>
<ul class= "dropdown-menu" name= "sequence" >
<li > <a href= "#" class= "js_go_to_top" > Push to top</a> </li>
2014-01-10 11:24:42 +00:00
<li > <a href= "#" class= "js_go_up" > Push up</a>
</li>
<li > <a href= "#" class= "js_go_down" > Push down</a> </li>
2013-12-12 11:47:31 +00:00
<li > <a href= "#" class= "js_go_to_bottom" > Push to bottom</a> </li>
</ul>
</li>
2013-12-12 10:58:21 +00:00
</ul>
</div>
</div>
2014-03-10 15:28:47 +00:00
<t t-set= "product_image_big" t-value= "td_product['x']+td_product['y'] > 2" />
2014-01-30 23:39:51 +00:00
<t t-call= "website_sale.products_item" />
2013-12-12 10:58:21 +00:00
</div>
2013-10-01 12:03:35 +00:00
2013-12-12 10:58:21 +00:00
</td>
</t>
2014-03-11 16:04:19 +00:00
<td t-if= "not td_product" class= "oe-height-2" />
2013-11-07 14:39:59 +00:00
</t>
2013-12-12 10:58:21 +00:00
</tr>
</tbody>
</table>
<t t-if= "not bins" >
<div class= "text-center text-muted" >
2014-02-05 21:24:52 +00:00
<h3 class= "css_editable_display" > No product defined.</h3>
2013-12-12 10:58:21 +00:00
<t groups= "base.group_website_publisher" >
2014-02-05 21:24:52 +00:00
<p groups= "base.group_sale_manager" > Use the <i > 'Content'</i> top menu to create a new product.</p>
2013-12-12 10:58:21 +00:00
</t>
2013-07-23 08:18:13 +00:00
</div>
2013-12-12 10:58:21 +00:00
</t>
2013-09-22 17:27:27 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
<div class= "products_pager" >
<t t-call= "website.pager" />
</div>
</div>
<div class= "oe_structure mb32" />
</div>
</t>
</template>
<!-- Add to cart button -->
2014-01-30 23:39:51 +00:00
<template id= "categories_recursive" name= "Category list" >
2014-06-13 14:17:51 +00:00
<li t-att-class= "'active' if c.id == int(category or 0) else ''" >
2014-01-30 23:39:51 +00:00
<a t-att-href= "keep('/shop/category/' + slug(c), category=0)" t-field= "c.name" > </a>
<ul t-if= "c.child_id" class= "nav nav-pills nav-stacked nav-hierarchy" >
<t t-foreach= "c.child_id" t-as= "c" >
<t t-call= "website_sale.categories_recursive" />
</t>
</ul>
</li>
2013-12-12 10:58:21 +00:00
</template>
2014-08-31 14:56:44 +00:00
<template id= "products_categories" inherit_id= "website_sale.products" active= "False" customize_show= "True" name= "Product Categories" >
2014-01-30 23:39:51 +00:00
<xpath expr= "//div[@id='products_grid_before']" position= "inside" >
<ul class= "nav nav-pills nav-stacked mt16" >
<li t-att-class= " '' if category else 'active' " > <a t-att-href= "keep('/shop',category=0)" > All Products</a> </li>
<t t-foreach= "categories" t-as= "c" >
<t t-call= "website_sale.categories_recursive" />
</t>
</ul>
</xpath>
<xpath expr= "//div[@id='products_grid_before']" position= "attributes" >
<attribute name= "class" > col-md-3 hidden-xs</attribute>
</xpath>
<xpath expr= "//div[@id='products_grid']" position= "attributes" >
<attribute name= "class" > col-md-9</attribute>
2013-12-12 10:58:21 +00:00
</xpath>
</template>
2014-08-31 14:56:44 +00:00
<template id= "products_attributes" inherit_id= "website_sale.products" active= "False" customize_show= "True" name= "Product Attribute's Filters" >
2014-01-30 23:39:51 +00:00
<xpath expr= "//div[@id='products_grid_before']" position= "inside" >
2014-05-27 07:42:52 +00:00
<form class= "js_attributes" method= "get" >
<input type= "hidden" name= "search" t-att-value= "search" />
2014-01-30 23:39:51 +00:00
<ul class= "nav nav-pills nav-stacked mt16" >
<t t-foreach= "attributes" t-as= "a" >
2014-06-17 13:49:48 +00:00
<t t-if= "a.type != 'hidden'" >
2014-05-27 07:42:52 +00:00
<li t-if= "a.value_ids and len(a.value_ids) > 1" >
<div > <strong t-field= "a.name" /> </div>
<t t-if= "a.type == 'select'" >
<select class= "form-control" name= "attrib" >
<option value= "" />
2014-01-30 23:39:51 +00:00
<t t-foreach= "a.value_ids" t-as= "v" >
2014-07-23 14:57:28 +00:00
<option t-att-value= "'%s-%s' % (a.id,v.id)" t-esc= "v.name" t-att-selected= "'selected' if v.id in attrib_set else ''" />
2014-01-30 23:39:51 +00:00
</t>
2014-05-27 07:42:52 +00:00
</select>
</t>
<t t-if= "a.type == 'radio'" >
<ul class= "nav nav-pills nav-stacked" >
<t t-foreach= "a.value_ids" t-as= "v" >
<li t-att-class= "'active' if v.id in attrib_set else ''" >
<label style= "margin: 0 20px;" >
2014-06-17 15:02:03 +00:00
<input type= "checkbox" name= "attrib" t-att-value= "'%s-%s' % (a.id,v.id)" t-att-checked= "'checked' if v.id in attrib_set else ''" />
2014-05-27 07:42:52 +00:00
<span style= "font-weight: normal" t-field= "v.name" />
</label>
</li>
</t>
</ul>
</t>
<t t-if= "a.type == 'color'" >
<t t-foreach= "a.value_ids" t-as= "v" >
2014-06-03 13:38:11 +00:00
<label t-attf-style= "background-color:#{v.color or v.name}"
t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}">
2014-05-27 07:42:52 +00:00
<input type= "checkbox"
name="attrib"
2014-06-17 15:02:03 +00:00
t-att-value="'%s-%s' % (a.id,v.id)"
2014-05-27 07:42:52 +00:00
t-att-checked="'checked' if v.id in attrib_set else ''"
t-att-title="v.name"/>
</label>
</t>
</t>
2014-01-30 23:39:51 +00:00
</li>
2014-06-17 13:49:48 +00:00
</t>
2014-01-30 23:39:51 +00:00
</t>
</ul>
2014-01-16 18:05:35 +00:00
</form>
2013-12-12 10:58:21 +00:00
</xpath>
2014-01-30 23:39:51 +00:00
<xpath expr= "//div[@id='products_grid_before']" position= "attributes" >
<attribute name= "class" > col-md-3 hidden-xs</attribute>
</xpath>
<xpath expr= "//div[@id='products_grid']" position= "attributes" >
<attribute name= "class" > col-md-9</attribute>
</xpath>
2013-12-12 10:58:21 +00:00
</template>
2014-08-31 14:56:44 +00:00
<template id= "products_list_view" inherit_id= "website_sale.products" active= "False" customize_show= "True" name= "List View" >
2013-12-12 10:58:21 +00:00
<xpath expr= "//div[@id='products_grid']//table" position= "replace" >
2013-12-13 16:16:42 +00:00
<t t-foreach= "products" t-as= "product" >
<div class= "oe_product oe_list oe_product_cart" t-att-data-publish= "product.website_published and 'on' or 'off'" >
2014-01-30 23:39:51 +00:00
<t t-call= "website_sale.products_item" />
2013-12-13 16:16:42 +00:00
</div>
</t>
2013-12-12 10:58:21 +00:00
</xpath>
</template>
2014-01-30 23:39:51 +00:00
<!-- /shop/product product page -->
2013-12-12 10:58:21 +00:00
<template id= "product" name= "Product" >
<t t-call= "website.layout" >
<t t-set= "additional_title" t-value= "product.name" />
2014-02-03 17:44:22 +00:00
<div itemscope= "itemscope" itemtype= "http://schema.org/Product" id= "wrap" class= "js_sale" >
2015-04-22 14:00:46 +00:00
<section t-attf-class= "container mt8 oe_website_sale #{(compute_currency(product.lst_price) - product.price) > 0.1 and 'discount'}" id= "product_detail" >
2013-12-12 10:58:21 +00:00
<div class= "row" >
<div class= "col-sm-4" >
<ol class= "breadcrumb" >
2014-01-30 23:39:51 +00:00
<li > <a t-att-href= "keep(category=0)" onclick= "history.go(-1); return false;" > Products</a> </li>
2014-09-10 11:24:56 +00:00
<li t-if= "category" > <a t-att-href= "keep('/shop/category/%s' % slug(category), category=0)" t-field= "category.name" /> </li>
2013-12-12 10:58:21 +00:00
<li class= "active" > <span t-field= "product.name" /> </li>
</ol>
2013-12-05 15:54:50 +00:00
</div>
2013-12-12 10:58:21 +00:00
<div class= "col-sm-3" >
2014-08-25 14:19:29 +00:00
<t t-call= "website_sale.search" > <t t-set= "search_class" > pull-right</t> </t>
2013-09-22 17:27:27 +00:00
</div>
2014-01-21 12:39:12 +00:00
<div class= "col-sm-4" groups= "base.group_sale_manager" >
2013-12-12 10:58:21 +00:00
<t t-call= "website.publish_management" >
<t t-set= "object" t-value= "product" />
<t t-set= "publish_edit" t-value= "True" />
2014-05-27 07:42:52 +00:00
<t t-set= "action" t-value= "'product.product_template_action'" />
2013-08-12 16:31:23 +00:00
</t>
2013-09-22 17:27:27 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
<div class= "row" >
<div class= "col-sm-7 col-md-7 col-lg-7" >
2015-08-27 13:45:10 +00:00
<span itemprop= "image" t-field= "product.image" t-field-options= '{"widget": "image", "class": "product_detail_img", "alt-field": "name"}' />
2013-12-12 10:58:21 +00:00
</div> <div class= "col-sm-5 col-md-5 col-lg-4 col-lg-offset-1" >
2014-02-03 17:44:22 +00:00
<h1 itemprop= "name" t-field= "product.name" > Product Name</h1>
2014-02-11 13:56:10 +00:00
<span itemprop= "url" style= "display:none;" t-esc= "'/shop/product/%s' % slug(product)" />
2014-06-13 10:31:41 +00:00
2015-09-25 14:33:43 +00:00
<form t-att-action= "keep('/shop/cart/update')" class= "js_add_cart_variants" t-att-data-attribute_value_ids= "product.product_variant_ids.ids" method= "POST" >
2014-06-13 10:31:41 +00:00
<div class= "js_product" >
<t t-placeholder= "select" >
<input type= "hidden" class= "product_id" name= "product_id" t-att-value= "int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'" />
<t t-call= "website_sale.variants" >
<t t-set= "ul_class" t-value= "'nav-stacked'" />
</t>
2013-10-15 08:27:26 +00:00
</t>
2013-08-19 10:41:44 +00:00
2014-05-27 07:42:52 +00:00
<t t-call= "website_sale.product_price" />
2014-06-13 10:31:41 +00:00
<p t-if= "len(product.product_variant_ids) > 1" class= "css_not_available_msg bg-danger" style= "padding: 15px;" > Product not available</p>
2014-05-27 07:42:52 +00:00
2014-06-24 15:37:13 +00:00
<a id= "add_to_cart" class= "btn btn-primary btn-lg mt8 js_check_product a-submit" href= "#" > Add to Cart</a>
2014-06-13 10:31:41 +00:00
</div>
2013-12-12 10:58:21 +00:00
</form>
2014-05-27 07:42:52 +00:00
<hr t-if= "product.description_sale" />
<div > <p t-field= "product.description_sale" class= "text-muted" /> </div>
<hr />
<p class= "text-muted" >
30-day money-back guarantee<br />
Free Shipping in U.S.<br />
Buy now, get in 2 days
</p>
2013-12-12 10:58:21 +00:00
</div>
</div>
</section>
2014-02-03 17:44:22 +00:00
<div itemprop= "description" t-field= "product.website_description" class= "oe_structure mt16" id= "product_full_description" />
2014-06-11 10:50:41 +00:00
2013-12-12 10:58:21 +00:00
</div>
</t>
</template>
2014-08-31 14:56:44 +00:00
<template id= "product_quantity" inherit_id= "website_sale.product" customize_show= "True" name= "Select Quantity" >
2014-06-25 09:31:39 +00:00
<xpath expr= "//a[@id='add_to_cart']" position= "before" >
2014-10-02 18:33:53 +00:00
<div class= "css_quantity input-group oe_website_spinner" >
2014-06-13 10:47:54 +00:00
<span class= "input-group-addon" >
<a t-attf-href= "#" class= "mb8 js_add_cart_json" >
<i class= "fa fa-minus" > </i>
</a>
</span>
2014-10-02 18:33:53 +00:00
<input type= "text" class= "js_quantity form-control" data-min= "1" name= "add_qty" value= "1" />
2014-06-13 10:47:54 +00:00
<span class= "input-group-addon" >
<a t-attf-href= "#" class= "mb8 float_left js_add_cart_json" >
<i class= "fa fa-plus" > </i>
</a>
</span>
</div>
</xpath>
</template>
2014-05-27 07:42:52 +00:00
<template id= "product_price" >
<div itemprop= "offers" itemscope= "itemscope" itemtype= "http://schema.org/Offer" class= "product_price mt16" >
[FIX] website_sale: fix amount format
This commit fix wrong grouping when we format price via price_to_str.
where '[3,0]' was interpreted as string and not array in intersperse.
Thousand separator was duplicated ",,,320.00" e.g.
This commit fix also product page where amount for variant was formatted
js side before that RPC translation (website.ready() defered) was resolved.
'/website/translations' is only called when user have rights to edit page.
So a standard user didn't call it and l10n is not initialized.
After an update, now we format the amount with the l10n value.
To stay retro compatible, if l10n is not initialized (value = [])
we use [] for grouping as 'fallback value'.
To fix decimal precision you need to update the template product_price.
To fix the grouping, you need to update the website.layout
To fix the decimal separator, (and previous fix), you just need to pull the JS
This commit is related to #1103, #11553, #14772, #14874, ...
And fix the previous fix odoo/odoo@1f10ef8055f6c661fc6407a8ce4593dfc30452b4
It should also fix (by side-effect) the translation JS for user without editor
right.
Already fixed in V9 - don't forward this commit...
2017-01-10 20:29:52 +00:00
<h4 class= "oe_price_h4 css_editable_mode_hidden decimal_precision"
t-att-data-precision="user_id.partner_id.property_product_pricelist.currency_id.rounding">
2014-06-30 11:53:25 +00:00
<span class= "text-danger oe_default_price" style= "text-decoration: line-through; white-space: nowrap;"
2014-05-27 07:42:52 +00:00
t-field="product.lst_price"
t-field-options='{
2014-06-18 15:43:14 +00:00
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "product.company_id.currency_id",
2014-06-18 15:43:14 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-07-09 14:10:08 +00:00
}'/>
2014-06-18 15:43:14 +00:00
<b class= "oe_price" style= "white-space: nowrap;"
2014-05-27 07:42:52 +00:00
t-field="product.price"
t-field-options='{
"widget": "monetary",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-05-27 07:42:52 +00:00
}'/>
<span itemprop= "price" style= "display:none;" t-esc= "product.price" />
2016-11-28 10:26:54 +00:00
<span itemprop= "priceCurrency" style= "display:none;" t-esc= "user_id.partner_id.property_product_pricelist.currency_id.name" class= 'decimal_precision' t-att-data-precision= "website.pricelist_id.currency_id.rounding" />
2014-05-27 07:42:52 +00:00
</h4>
2014-06-23 14:38:04 +00:00
<h4 class= "css_editable_mode_display" style= "display: none;" >
<span t-field= "product.lst_price"
t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</h4>
2014-05-27 07:42:52 +00:00
<h4 class= "hidden oe_not_available bg-warning" > Product not available</h4>
</div>
</template>
2014-08-31 14:56:44 +00:00
<template id= "product_variants" inherit_id= "website_sale.product" active= "False" customize_show= "True" name= "List View of Variants" >
2014-06-13 10:31:41 +00:00
<xpath expr= "//t[@t-placeholder='select']" position= "replace" >
<input type= "hidden" t-if= "len(product.product_variant_ids) == 1" name= "product_id" t-att-value= "product.product_variant_ids[0].id" />
<t t-if= "len(product.product_variant_ids) > 1" >
<label label-default= "label-default" class= "radio" t-foreach= "product.product_variant_ids" t-as= "variant_id" >
2014-10-23 12:40:29 +00:00
<input type= "radio" name= "product_id" class= "js_product_change" t-att-checked= "'checked' if variant_id_index == 0 else ''" t-att-value= "variant_id.id" t-att-data-lst_price= "variant_id.lst_price" t-att-data-price= "variant_id.price" />
2014-06-13 10:31:41 +00:00
<span t-esc= "variant_id.name_get()[0][1]" />
<span class= "badge" t-if= "variant_id.price_extra" >
2014-06-19 08:53:30 +00:00
<t t-esc= "variant_id.price_extra > 0 and '+' or ''" /> <span t-field= "variant_id.price_extra" style= "white-space: nowrap;" t-field-options= '{
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "product.company_id.currency_id",
2014-06-19 08:53:30 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
}'/>
2014-06-13 10:31:41 +00:00
</span>
</label>
</t>
2014-06-12 14:58:44 +00:00
</xpath>
</template>
<template id= "variants" >
2014-06-25 09:31:39 +00:00
<t t-set= "attribute_value_ids" t-value= "get_attribute_value_ids(product)" />
2014-06-19 08:53:30 +00:00
<ul t-attf-class= "list-unstyled js_add_cart_variants #{ul_class}" t-att-data-attribute_value_ids= "attribute_value_ids" >
2014-06-12 14:58:44 +00:00
<t t-foreach= "product.attribute_line_ids" t-as= "variant_id" >
<li t-if= "len(variant_id.value_ids) > 1" >
<strong t-field= "variant_id.attribute_id.name" />
2014-06-17 13:58:13 +00:00
<t t-if= "variant_id.attribute_id.type in ['select', 'hidden']" >
2014-06-12 14:58:44 +00:00
<select class= "form-control js_variant_change" t-att-name= "'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)" >
<t t-foreach= "variant_id.value_ids" t-as= "value_id" >
<option t-att-value= "value_id.id" >
<span t-field= "value_id.name" />
<span t-if= "value_id.price_extra" >
2014-06-18 15:43:14 +00:00
<t t-esc= "value_id.price_extra > 0 and '+' or ''" /> <span t-field= "value_id.price_extra" style= "white-space: nowrap;" t-field-options= '{
2014-06-12 14:58:44 +00:00
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "product.company_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-06-12 14:58:44 +00:00
}'/>
</span>
</option>
</t>
</select>
</t>
2014-06-17 13:58:13 +00:00
<t t-if= "variant_id.attribute_id.type == 'radio'" >
2014-06-12 14:58:44 +00:00
<ul class= "list-unstyled" >
<t t-set= "inc" t-value= "0" />
<t t-foreach= "variant_id.value_ids" t-as= "value_id" >
2015-02-10 09:16:09 +00:00
<li class= "form-group js_attribute_value" style= "margin: 0;" >
2014-06-12 14:58:44 +00:00
<label class= "control-label" style= "margin: 0 20px;" >
<input type= "radio" class= "js_variant_change" t-att-checked= "'checked' if not inc else ''" t-att-name= "'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)" t-att-value= "value_id.id" style= "vertical-align: top; margin-right: 10px;" />
2014-05-27 07:42:52 +00:00
<span t-field= "value_id.name" />
2014-06-12 14:58:44 +00:00
<span class= "badge" t-if= "value_id.price_extra" >
2014-06-18 15:43:14 +00:00
<t t-esc= "value_id.price_extra > 0 and '+' or ''" /> <span t-field= "value_id.price_extra" style= "white-space: nowrap;" t-field-options= '{
2014-06-19 08:53:30 +00:00
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "product.company_id.currency_id",
2014-06-19 08:53:30 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
}'/>
2014-05-27 07:42:52 +00:00
</span>
2014-06-12 14:58:44 +00:00
</label>
</li>
<t t-set= "inc" t-value= "inc+1" />
</t>
</ul>
</t>
<t t-if= "variant_id.attribute_id.type == 'color'" >
<ul class= "list-inline" >
<t t-set= "inc" t-value= "0" />
<li t-foreach= "variant_id.value_ids" t-as= "value_id" >
<label t-attf-style= "background-color:#{value_id.color or value_id.name}"
t-attf-class="css_attribute_color #{'active' if not inc else ''}">
<input type= "radio" class= "js_variant_change"
t-att-checked="'checked' if not inc else ''"
t-att-name="'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)"
t-att-value="value_id.id"
t-att-title="value_id.name"/>
</label>
<t t-set= "inc" t-value= "inc+1" />
2014-05-27 07:42:52 +00:00
</li>
2014-06-12 14:58:44 +00:00
</ul>
</t>
2014-06-11 10:50:41 +00:00
2014-06-12 14:58:44 +00:00
</li>
</t>
</ul>
2014-05-27 07:42:52 +00:00
</template>
2014-08-31 14:56:44 +00:00
<template id= "recommended_products" inherit_id= "website_sale.product" customize_show= "True" name= "Alternative Products" >
2013-12-12 10:58:21 +00:00
<xpath expr= "//div[@id='product_full_description']" position= "after" >
2014-01-30 23:39:51 +00:00
<div class= "container mt32" t-if= "product.alternative_product_ids" >
<h3 > Suggested alternatives:</h3>
2015-07-03 13:05:48 +00:00
<div class= 'row mt16' style= "" >
2014-01-30 23:39:51 +00:00
<t t-foreach= "product.alternative_product_ids" t-as= "product" >
2016-01-22 14:07:59 +00:00
<div class= 'col-md-2 thumbnail' style= 'width: 170px; height:130px; float:left; display:inline; margin-right: 10px; overflow:hidden;' >
2013-12-12 10:58:21 +00:00
<div class= 'mt16 text-center' >
2014-01-30 09:18:13 +00:00
<span t-field= "product.image_small" t-field-options= '{"widget": "image", "class": "img-rounded shadow" }' />
2013-12-12 10:58:21 +00:00
<h5 >
2014-04-10 14:35:24 +00:00
<a t-attf-href= "/shop/product/#{ slug(product) }" style= "display: block" >
2014-01-30 23:39:51 +00:00
<span t-field= 'product.name' style= "display: block" />
2013-12-12 10:58:21 +00:00
</a>
</h5>
</div>
</div>
2013-09-15 17:25:37 +00:00
</t>
2013-12-12 10:58:21 +00:00
</div>
</div>
</xpath>
</template>
2014-08-31 14:56:44 +00:00
<template id= "product_attributes" inherit_id= "website_sale.product" customize_show= "True" name= "Product attributes" >
2014-03-12 15:48:54 +00:00
<xpath expr= "//p[@t-field='product.description_sale']" position= "after" >
2014-06-03 13:38:11 +00:00
<hr t-if= "sum([(1 if len(l.value_ids)==1 else 0) for l in product.attribute_line_ids])" />
2014-03-12 15:48:54 +00:00
<p class= "text-muted" >
2014-05-28 17:42:15 +00:00
<t t-foreach= "product.attribute_line_ids" t-as= "variant_id" >
2014-06-03 13:38:11 +00:00
<t t-if= "len(variant_id.value_ids)==1" >
<span t-field= "variant_id.attribute_id" /> : <span t-field= "variant_id.value_ids[0].name" /> <br />
</t>
2014-03-12 15:48:54 +00:00
</t>
</p>
</xpath>
2013-12-12 10:58:21 +00:00
</template>
2014-05-27 07:42:52 +00:00
<!-- Product options: OpenChatter -->
2014-08-31 14:56:44 +00:00
<template id= "product_comment" inherit_id= "website_sale.product" active= "False" customize_show= "True" name= "Discussion" >
2014-01-06 13:57:27 +00:00
<xpath expr= "//div[@t-field='product.website_description']" position= "after" >
<hr class= "mb32" />
2014-01-06 17:18:13 +00:00
<section class= "container" >
2014-01-06 13:57:27 +00:00
<div class= "row col-md-10 col-md-offset-1" >
2014-01-06 16:44:34 +00:00
<div class= "text-muted" >
<h3 class= "fa fa-comment-o" >
2014-01-06 17:18:13 +00:00
<a id= "comments" >
2014-01-06 16:44:34 +00:00
<t t-if= "len(product.website_message_ids) <= 1" > <t t-esc= "len(product.website_message_ids)" /> comment</t>
<t t-if= "len(product.website_message_ids) > 1" > <t t-esc= "len(product.website_message_ids)" /> comments</t>
</a>
</h3>
</div>
2014-01-06 17:18:13 +00:00
<ul class= "media-list" id= "comments-list" t-if= "product.website_message_ids" >
2014-01-06 13:57:27 +00:00
<li t-foreach= "product.website_message_ids" t-as= "message" class= "media" >
2014-01-06 15:43:58 +00:00
<div class= "media-body oe_msg" >
2014-09-05 16:20:55 +00:00
<img class= "media-object pull-left oe_msg_avatar" t-att-src= "website.image_url(message.author_id, 'image_small')" style= "width: 50px; margin-right: 10px;" />
2014-01-06 15:43:58 +00:00
<div class= "media-body oe_msg_content" >
2014-01-06 13:57:27 +00:00
<t t-call= "website.publish_short" >
<t t-set= "object" t-value= "message" />
</t>
<h5 class= "media-heading" >
<span t-field= "message.author_id" /> <small > on <span t-field= "message.date" /> </small>
</h5>
<div t-field= "message.body" />
<div >
2014-01-06 15:43:58 +00:00
<div class= "oe_msg_attachment" t-foreach= 'message.attachment_ids' t-as= 'attachment' >
2014-01-06 13:57:27 +00:00
<a t-att-href= "'/mail/download_attachment?model=mail.message&id='+str(message.id)+'&method=download_attachment&attachment_id='+str(attachment.id)" target= "_blank" >
2014-02-28 14:22:33 +00:00
<t t-if= "attachment.file_type_icon == 'webimage'" >
2014-01-06 15:43:58 +00:00
<img t-att-src= "'/web/binary/image?model=ir.attachment&field=datas&id=' + str(attachment.id) + '&resize=100,80'"
class='oe_attachment_embedded'></img>
2014-01-06 13:57:27 +00:00
</t>
2014-02-28 14:22:33 +00:00
<t t-if= "attachment.file_type_icon != 'webimage'" >
2014-01-06 15:43:58 +00:00
<img t-att-src= "'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
class='oe_attachment_webimage'></img>
2014-01-06 13:57:27 +00:00
</t>
2014-01-06 15:43:58 +00:00
<div class= 'oe_attachment_name' > <t t-raw= 'attachment.name' /> </div>
2014-01-06 13:57:27 +00:00
</a>
</div>
</div>
</div>
</div>
</li>
</ul>
<div class= "css_editable_mode_hidden" >
2014-01-30 23:39:51 +00:00
<form id= "comment" t-attf-action= "/shop/product/comment/#{product.id}" method= "POST" >
2014-09-05 16:20:55 +00:00
<img class= "img pull-left img-rounded" t-att-src= "website.image_url(user_id.partner_id, 'image_small')" style= "width: 50px; margin-right: 10px;" />
2014-01-06 13:57:27 +00:00
<div class= "pull-left mb32" style= "width: 75%%" >
<textarea rows= "3" name= "comment" class= "form-control" placeholder= "Write a comment..." > </textarea>
2014-03-07 12:51:41 +00:00
<a class= "btn btn-primary mt8 a-submit" > Post</a>
2014-01-06 13:57:27 +00:00
</div>
</form>
</div>
</div>
</section>
</xpath>
</template>
2014-01-30 23:39:51 +00:00
<!-- /shop/cart -->
2013-12-12 10:58:21 +00:00
2014-01-30 23:39:51 +00:00
<template id= "cart" name= "Shopping Cart" >
2013-12-12 10:58:21 +00:00
<t t-call= "website.layout" >
<div id= "wrap" >
<div class= "container oe_website_sale" >
<ul class= "wizard pull-right" >
<li class= "text-primary" > Review Order<span class= "chevron" > </span> </li>
<li class= "text-muted" > Shipping & Billing<span class= "chevron" > </span> </li>
<li class= "text-muted" > Payment<span class= "chevron" > </span> </li>
<li class= "text-muted" > Confirmation<span class= "chevron" > </span> </li>
</ul>
<h1 class= "mb32" > Shopping Cart</h1>
<div class= "row" >
2014-01-30 23:39:51 +00:00
<div class= "col-md-8 col-sm-9 oe_cart" >
2014-02-21 17:28:16 +00:00
<t t-set= "website_sale_order" t-value= "website.sale_get_order()" />
2013-12-18 13:21:50 +00:00
<div t-if= "not website_sale_order or not website_sale_order.website_order_line" class= "well well-lg" >
2013-12-12 10:58:21 +00:00
Your cart is empty!
</div>
2014-01-30 23:39:51 +00:00
<table class= 'table table-striped table-condensed' id= "cart_products" t-if= "website_sale_order and website_sale_order.website_order_line" >
2013-12-12 10:58:21 +00:00
<thead >
<tr >
2014-01-28 15:13:59 +00:00
<th colspan= "2" width= "100" > Product</th>
2016-11-28 10:26:54 +00:00
<th width= "100" class= 'decimal_precision' t-att-data-precision= "website_sale_order.pricelist_id.currency_id.rounding" > Price</th>
2014-01-28 15:13:59 +00:00
<th width= "120" > Quantity</th>
2013-12-12 10:58:21 +00:00
</tr>
</thead>
<tbody >
2014-06-25 09:31:39 +00:00
<t t-foreach= "website_sale_order.website_order_line" t-as= "line" >
<tr >
2013-12-12 10:58:21 +00:00
<td colspan= "2" t-if= "not line.product_id.product_tmpl_id" > </td>
2013-12-13 16:16:42 +00:00
<td align= "center" t-if= "line.product_id.product_tmpl_id" >
2013-12-12 10:58:21 +00:00
<span t-field= "line.product_id.image_small"
t-field-options='{"widget": "image", "class": "img-rounded"}'/>
</td>
<td t-if= "line.product_id.product_tmpl_id" >
<div >
2014-06-25 09:31:39 +00:00
<a t-attf-href= "/shop/product/#{ slug(line.product_id.product_tmpl_id) }" >
2015-02-16 15:31:49 +00:00
<strong t-esc= "line.product_id.with_context(display_default_code=False).display_name" />
2013-12-12 10:58:21 +00:00
</a>
</div>
2015-02-13 13:11:40 +00:00
<div class= "text-muted" t-esc= "'\n'.join(line.name.splitlines()[1:])" />
2013-12-12 10:58:21 +00:00
</td>
2014-01-29 09:42:20 +00:00
<td class= "text-center" name= "price" >
2015-12-21 14:23:46 +00:00
<del class= "text-danger" t-att-style= "'' if line.product_id.lst_price > line.discounted_price else 'display: none;'" style= "text-decoration: line-through; white-space: nowrap;"
2014-12-19 14:13:10 +00:00
t-field="line.product_id.lst_price" t-field-options='{
2014-06-18 15:43:14 +00:00
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "line.company_id.currency_id",
2014-06-18 15:43:14 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-01-22 12:48:09 +00:00
}'/>& nbsp;
2015-12-21 14:23:46 +00:00
<span t-field= "line.discounted_price" style= "white-space: nowrap;" t-field-options= '{
2013-12-12 10:58:21 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2013-12-12 10:58:21 +00:00
}'/>
</td>
2014-06-17 12:23:15 +00:00
<td class= "text-center" >
2014-10-02 18:33:53 +00:00
<div class= "input-group oe_website_spinner" >
2013-12-12 10:58:21 +00:00
<span class= "input-group-addon" >
2014-06-16 10:30:06 +00:00
<a t-attf-href= "#" class= "mb8 js_add_cart_json" data-no-instant= "" >
2014-01-28 16:15:31 +00:00
<i class= "fa fa-minus" > </i>
2013-12-12 10:58:21 +00:00
</a>
</span>
2014-10-02 18:33:53 +00:00
<input type= "text" class= "js_quantity form-control"
2014-05-02 14:01:52 +00:00
t-att-data-line-id="line.id"
t-att-data-product-id="line.product_id.id"
t-att-value="int(line.product_uom_qty)"/>
2013-12-12 10:58:21 +00:00
<span class= "input-group-addon" >
2014-06-16 10:30:06 +00:00
<a t-attf-href= "#" class= "mb8 float_left js_add_cart_json" data-no-instant= "" >
2014-01-28 16:15:31 +00:00
<i class= "fa fa-plus" > </i>
2013-12-12 10:58:21 +00:00
</a>
</span>
</div>
</td>
</tr>
2014-06-25 09:31:39 +00:00
</t>
2013-12-12 10:58:21 +00:00
</tbody>
</table>
2014-01-17 17:38:36 +00:00
<t t-call= "website_sale.total" />
2013-12-12 10:58:21 +00:00
<div class= "clearfix" />
2014-06-11 10:50:41 +00:00
2015-02-13 11:32:06 +00:00
<a t-if= "not optional_products and website_sale_order and website_sale_order.website_order_line" class= "btn btn-primary pull-right mb32" href= "/shop/checkout" > <span class= "hidden-xs" > Process Checkout</span> <span class= "visible-xs-inline" > Checkout</span> <span class= "fa fa-long-arrow-right" /> </a>
2014-06-11 10:50:41 +00:00
2013-12-12 10:58:21 +00:00
<div class= "oe_structure" />
</div>
2014-02-06 14:02:58 +00:00
<div class= "col-lg-3 col-lg-offset-1 col-sm-3 col-md-3 text-muted" id= "right_column" >
2013-12-12 10:58:21 +00:00
<h4 > Policies</h4>
<ul class= "list-unstyled mb32" >
<li > ☑ 30-days money-back guarantee</li>
<li > ☑ Invoice sent by e-Mail</li>
</ul>
<h4 > Secure Payment</h4>
<ul class= "list-unstyled mb32" >
<li > ☑ 256 bit encryption</li>
<li > ☑ Processed by Ogone</li>
</ul>
</div>
</div>
2013-09-30 22:51:05 +00:00
2013-12-12 10:58:21 +00:00
</div>
<div class= "oe_structure" />
</div>
</t>
</template>
2013-09-30 22:51:05 +00:00
2014-08-31 14:56:44 +00:00
<template id= "suggested_products_list" inherit_id= "website_sale.cart" customize_show= "True" name= "Suggested Products in my cart" >
2014-01-30 23:39:51 +00:00
<xpath expr= "//table[@id='cart_products']" position= "after" >
2013-12-12 10:58:21 +00:00
<table t-if= "suggested_products" class= 'table table-striped table-condensed' >
<colgroup >
<col width= "80" />
<col />
<col width= "100" />
<col width= "120" />
</colgroup>
<thead >
<tr >
2014-06-17 08:54:47 +00:00
<th colspan= "4" > Suggested products:</th>
2013-12-12 10:58:21 +00:00
</tr>
</thead>
<tbody >
<tr t-foreach= "suggested_products" t-as= "product" >
<td >
2014-06-04 09:25:51 +00:00
<a t-attf-href= "/shop/product/#{ slug(product.product_tmpl_id) }" >
2013-12-12 10:58:21 +00:00
<span t-field= "product.image_small"
t-field-options='{"widget": "image", "class": "img-rounded"}'/>
</a>
</td>
<td >
<div >
2014-06-04 09:25:51 +00:00
<a t-attf-href= "/shop/product/#{ slug(product.product_tmpl_id) }" >
2015-04-20 07:59:45 +00:00
<strong t-field= "product.display_name" />
2013-12-12 10:58:21 +00:00
</a>
</div>
<div class= "text-muted" t-field= "product.description_sale" />
</td>
<td >
2014-07-02 16:18:29 +00:00
<t t-if= "(compute_currency(product.lst_price) - product.price) > 0.1" >
2014-06-18 15:43:14 +00:00
<del class= "text-danger" style= "white-space: nowrap;"
2014-05-27 07:42:52 +00:00
t-field="product.lst_price" t-field-options='{
2014-06-18 15:43:14 +00:00
"widget": "monetary",
2014-12-18 13:10:48 +00:00
"from_currency": "product.company_id.currency_id",
2014-06-18 15:43:14 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-01-22 12:48:09 +00:00
}'/>& nbsp;
</t>
2014-06-18 15:43:14 +00:00
<span t-field= "product.price" style= "white-space: nowrap;" t-field-options= '{
2014-01-22 12:48:09 +00:00
"widget": "monetary",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-01-22 12:48:09 +00:00
}'/>
2013-12-12 10:58:21 +00:00
</td>
<td class= "text-center" >
2014-01-30 23:39:51 +00:00
<form action= "/shop/cart/update" method= "post" >
2014-05-27 07:42:52 +00:00
<input name= "product_id" t-att-value= "product.id" type= "hidden" />
2014-03-07 12:51:41 +00:00
<a class= "btn btn-link a-submit" > <strong > Add to Cart</strong> </a>
2014-01-16 18:05:35 +00:00
</form>
2013-12-12 10:58:21 +00:00
</td>
</tr>
</tbody>
</table>
</xpath>
</template>
2014-08-31 14:56:44 +00:00
<template id= "continue_shopping" inherit_id= "website_sale.cart" customize_show= "True" name= "Continue Shopping Button" >
2014-04-10 14:35:24 +00:00
<xpath expr= "//a[@href='/shop/checkout']" position= "before" >
2015-02-13 11:32:06 +00:00
<a href= "/shop" class= "btn btn-default mb32" > <span class= "fa fa-long-arrow-left" /> <span class= "hidden-xs" > Continue Shopping</span> <span class= "visible-xs-inline" > Continue</span> </a>
2014-01-30 23:39:51 +00:00
</xpath>
</template>
2015-01-11 02:48:10 +00:00
<template id= "reduction_code" inherit_id= "website_sale.cart" active= "False" customize_show= "True" name= "Coupon Code" >
2013-12-12 10:58:21 +00:00
<xpath expr= "//div[@id='right_column']" position= "inside" >
<h4 > Coupon Code</h4>
<p >
Have a coupon code? Fill in this field and apply.
</p>
2014-03-14 16:23:46 +00:00
<form t-if= "website_sale_order and website_sale_order.website_order_line" action= "/shop/pricelist" method= "post" class= "mb32" >
2013-12-12 10:58:21 +00:00
<div class= "input-group" >
<input name= "promo" class= 'form-control' type= "text" placeholder= "code..." t-att-value= "website_sale_order.pricelist_id.code or ''" />
<div class= "input-group-btn" >
2014-03-07 12:51:41 +00:00
<a class= "btn btn-default a-submit" > Apply</a>
2013-12-12 10:58:21 +00:00
</div>
</div>
</form>
</xpath>
</template>
2014-01-30 23:39:51 +00:00
<!-- /shop/checkout -->
2013-12-12 10:58:21 +00:00
<template id= "checkout" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Shop - Checkout</t>
<div id= "wrap" >
<div class= "container oe_website_sale" >
<ul class= "wizard pull-right" >
2014-01-30 23:39:51 +00:00
<li > <a href= "/shop/cart" class= "text-success" > Review Order<span class= "chevron" > </span> </a> </li>
2013-12-12 10:58:21 +00:00
<li class= "text-primary" > Shipping & Billing<span class= "chevron" > </span> </li>
<li class= "text-muted" > Payment<span class= "chevron" > </span> </li>
<li class= "text-muted" > Confirmation<span class= "chevron" > </span> </li>
</ul>
<h1 > Your Address</h1>
2014-03-14 16:23:46 +00:00
<form action= "/shop/confirm_order" method= "post" >
2013-09-30 22:51:05 +00:00
2013-12-12 10:58:21 +00:00
<div class= "row" >
2014-01-30 23:39:51 +00:00
<div class= "col-md-8 oe_cart" >
2013-12-12 10:58:21 +00:00
<h3 class= "page-header mt16" > Billing Information
2014-01-20 18:26:43 +00:00
<small groups= "base.group_public" > or
2014-01-30 10:49:37 +00:00
<a class= 'btn btn-primary' t-if= "not partner" t-attf-href= "/web?redirect=#{ request.httprequest.url }" > Sign in</a>
2013-12-12 10:58:21 +00:00
</small>
</h3>
2014-01-15 11:05:47 +00:00
<div class= "row" >
<div t-attf-class= "form-group #{error.get('name') and 'has-error' or ''} col-lg-6" >
<label class= "control-label" for= "contact_name" > Your Name</label>
<input type= "text" name= "name" class= "form-control" t-att-value= "checkout.get('name')" />
</div>
2014-06-18 08:04:40 +00:00
<div t-if= "has_check_vat" class= "clearfix" />
2014-10-07 17:00:45 +00:00
<div t-attf-class= "form-group #{error.get('street') and 'has-error' or ''} col-lg-6" >
<label class= "control-label" for= "street" style= "font-weight: normal" > Company Name</label>
<input type= "text" name= "street" class= "form-control" t-att-value= "checkout.get('street')" />
2014-01-15 11:05:47 +00:00
</div>
2014-06-18 08:04:40 +00:00
<div t-if= "has_check_vat" t-attf-class= "form-group #{error.get('vat') and 'has-error' or ''} col-lg-6" >
2014-05-27 10:05:41 +00:00
<label class= "control-label" for= "vat" style= "font-weight: normal" > VAT Number</label>
<input type= "text" name= "vat" class= "form-control" t-att-value= "checkout.get('vat')" />
</div>
2014-01-15 11:05:47 +00:00
<div t-attf-class= "form-group #{error.get('email') and 'has-error' or ''} col-lg-6" >
<label class= "control-label" for= "contact_name" > Email</label>
<input type= "email" name= "email" class= "form-control" t-att-value= "checkout.get('email')" />
</div>
2014-01-15 13:17:16 +00:00
<div t-attf-class= "form-group #{error.get('phone') and 'has-error' or ''} col-lg-6" >
2014-01-15 11:05:47 +00:00
<label class= "control-label" for= "phone" > Phone</label>
<input type= "tel" name= "phone" class= "form-control" t-att-value= "checkout.get('phone')" />
</div>
2013-09-30 22:51:05 +00:00
2014-10-07 17:00:45 +00:00
<div t-attf-class= "form-group #{error.get('street2') and 'has-error' or ''} col-lg-6" >
<label class= "control-label" for= "street2" > Street</label>
<input type= "text" name= "street2" class= "form-control" t-att-value= "checkout.get('street2')" />
2014-01-15 11:05:47 +00:00
</div>
<div class= "clearfix" />
2013-09-30 22:51:05 +00:00
2014-01-15 11:05:47 +00:00
<div t-attf-class= "form-group #{error.get('city') and 'has-error' or ''} col-lg-6" >
<label class= "control-label" for= "city" > City</label>
<input type= "text" name= "city" class= "form-control" t-att-value= "checkout.get('city')" />
</div>
<div t-attf-class= "form-group #{error.get('zip') and 'has-error' or ''} col-lg-6" >
2014-09-29 14:04:03 +00:00
<label class= "control-label" for= "zip" style= "font-weight: normal" > Zip / Postal Code</label>
2014-01-15 11:05:47 +00:00
<input type= "text" name= "zip" class= "form-control" t-att-value= "checkout.get('zip')" />
</div>
<div t-attf-class= "form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "country_id" > Country</label>
2014-01-15 11:05:47 +00:00
<select name= "country_id" class= "form-control" >
<option value= "" > Country...</option>
<t t-foreach= "countries or []" t-as= "country" >
<option t-att-value= "country.id" t-att-selected= "country.id == checkout.get('country_id')" > <t t-esc= "country.name" /> </option>
</t>
</select>
</div>
2014-06-17 09:33:28 +00:00
<div t-attf-class= "form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6" >
<label class= "control-label" for= "state_id" style= "font-weight: normal" > State / Province</label>
<select name= "state_id" class= "form-control" >
<option value= "" > select...</option>
<t t-foreach= "states or []" t-as= "state" >
<option t-att-value= "state.id" style= "display:none;" t-att-data-country_id= "state.country_id.id" t-att-selected= "state.id == checkout.get('state_id')" > <t t-esc= "state.name" /> </option>
</t>
</select>
</div>
2013-12-12 10:58:21 +00:00
2014-01-15 11:05:47 +00:00
<div class= "clearfix" />
2013-09-30 22:51:05 +00:00
2014-08-01 15:11:20 +00:00
<div class= "form-group col-lg-12" >
<label > Shipping</label>
<select name= "shipping_id" class= "form-control" >
<option value= "0" > Ship to the same address</option>
<t t-foreach= "shippings" t-as= "shipping" >
<option t-att-value= "shipping.id" t-att-selected= "shipping.id == shipping_id"
t-att-data-shipping_name="shipping.name"
t-att-data-shipping_phone="shipping.phone"
t-att-data-shipping_street="shipping.street"
t-att-data-shipping_city="shipping.city"
t-att-data-shipping_zip="shipping.zip"
t-att-data-shipping_state_id="shipping.state_id and shipping.state_id.id"
t-att-data-shipping_country_id="shipping.country_id and shipping.country_id.id"
><t t-esc= "', '.join('\n'.join(shipping.name_get()[0][1].split(',')).split('\n')[1:])" /> </option>
</t>
2014-10-29 12:31:52 +00:00
<option value= "-1" t-att-selected= "error and len(error) > 0 and shipping_id == -1" > -- Create a new address --</option>
2014-08-01 15:11:20 +00:00
</select>
2013-09-30 22:51:05 +00:00
</div>
2014-01-15 11:05:47 +00:00
</div>
2014-08-01 15:11:20 +00:00
<div class= "js_shipping row mb16" t-att-style= "not shipping_id and 'display:none' or ''" >
2014-01-15 11:05:47 +00:00
<h3 class= "oe_shipping col-lg-12 mt16" > Shipping Information</h3>
2013-09-30 22:51:05 +00:00
2014-01-15 11:05:47 +00:00
<div t-attf-class= "form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "shipping_name" > Name (Shipping)</label>
2014-08-01 15:11:20 +00:00
<input type= "text" name= "shipping_name" class= "form-control" t-att-value= "checkout.get('shipping_name', '')" t-att-readonly= "'readonly' if shipping_id >= 0 else ''" />
2014-01-15 11:05:47 +00:00
</div>
<div t-attf-class= "form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "shipping_phone" > Phone</label>
2014-08-04 14:56:10 +00:00
<input type= "tel" name= "shipping_phone" class= "form-control" t-att-value= "checkout.get('shipping_phone', '')" t-att-readonly= " 'readonly' if shipping_id >= 0 else ''" />
2013-12-12 10:58:21 +00:00
</div>
2014-01-15 11:05:47 +00:00
<div t-attf-class= "form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "shipping_street" > Street</label>
2014-08-04 14:56:10 +00:00
<input type= "text" name= "shipping_street" class= "form-control" t-att-value= "checkout.get('shipping_street', '')" t-att-readonly= " 'readonly' if shipping_id >= 0 else ''" />
2014-01-15 11:05:47 +00:00
</div>
<div class= "clearfix" />
<div t-attf-class= "form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "shipping_city" > City</label>
2014-08-04 14:56:10 +00:00
<input type= "text" name= "shipping_city" class= "form-control" t-att-value= "checkout.get('shipping_city', '')" t-att-readonly= " 'readonly' if shipping_id >= 0 else ''" />
2014-01-15 11:05:47 +00:00
</div>
<div t-attf-class= "form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6" >
2014-09-29 14:04:03 +00:00
<label class= "control-label" for= "shipping_zip" style= "font-weight: normal" > Zip / Postal Code</label>
2014-08-04 14:56:10 +00:00
<input type= "text" name= "shipping_zip" class= "form-control" t-att-value= "checkout.get('shipping_zip', '')" t-att-readonly= " 'readonly' if shipping_id >= 0 else ''" />
2014-01-15 11:05:47 +00:00
</div>
<div t-attf-class= "form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "shipping_country_id" > Country</label>
2014-10-29 12:31:52 +00:00
<select name= "shipping_country_id" class= "form-control" t-att-disabled= " 'disabled' if shipping_id >= 0 else ''" >
2014-01-15 11:05:47 +00:00
<option value= "" > Country...</option>
<t t-foreach= "countries or []" t-as= "country" >
<option t-att-value= "country.id" t-att-selected= "country.id == checkout.get('shipping_country_id')" > <t t-esc= "country.name" /> </option>
</t>
</select>
</div>
2014-06-17 09:33:28 +00:00
<div t-attf-class= "form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6" >
2014-06-18 08:04:40 +00:00
<label class= "control-label" for= "shipping_state_id" style= "font-weight: normal" > State / Province</label>
2016-06-02 14:52:27 +00:00
<select name= "shipping_state_id" class= "form-control" t-att-disabled= " 'disabled' if shipping_id >= 0 else ''" >
2014-06-17 09:33:28 +00:00
<option value= "" > State / Province...</option>
<t t-foreach= "states or []" t-as= "state" >
<option t-att-value= "state.id" style= "display:none;" t-att-data-country_id= "state.country_id.id" t-att-selected= "state.id == checkout.get('shipping_state_id')" > <t t-esc= "state.name" /> </option>
</t>
</select>
</div>
2014-01-15 11:05:47 +00:00
</div>
2014-07-31 13:22:51 +00:00
<div class= "clearfix" >
2014-08-04 14:56:10 +00:00
<a href= "/shop/cart" class= "btn btn-default mb32" > <span class= "fa fa-long-arrow-left" /> Return to Cart</a>
2014-07-31 13:22:51 +00:00
<a class= "btn btn-default btn-primary pull-right mb32 a-submit" > Confirm <span class= "fa fa-long-arrow-right" /> </a>
</div>
2013-12-12 10:58:21 +00:00
</div>
2014-02-06 14:02:58 +00:00
<div class= "col-lg-offset-1 col-lg-3 col-md-3 text-muted" >
2014-01-30 23:39:51 +00:00
<h3 class= "page-header mt16" > Your Order <small > <a href= "/shop/cart" > <span class= "fa fa-arrow-right" /> change</a> </small> </h3>
2014-02-25 10:09:34 +00:00
<t t-set= "website_sale_order" t-value= "website.sale_get_order()" />
2013-12-12 10:58:21 +00:00
<div class= "row" >
2014-06-17 08:54:47 +00:00
<div class= "col-sm-6 text-right" > Subtotal: </div>
2014-06-18 15:43:14 +00:00
<div class= "col-sm-6" > <span style= "white-space: nowrap;" t-field= "website_sale_order.amount_untaxed" t-field-options= '{
2013-12-12 10:58:21 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2013-12-12 10:58:21 +00:00
}'/></div>
2014-06-17 08:54:47 +00:00
<div class= "col-sm-6 text-right" > Taxes: </div>
2014-06-18 15:43:14 +00:00
<div class= "col-sm-6" > <span style= "white-space: nowrap;" t-field= "website_sale_order.amount_tax" t-field-options= '{
2013-12-12 10:58:21 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2013-12-12 10:58:21 +00:00
}'/></div>
2014-06-17 08:54:47 +00:00
<div class= "col-sm-6 text-right" > <h4 > Total To Pay: </h4> </div>
2014-06-18 15:43:14 +00:00
<div class= "col-sm-6" > <h4 > <span style= "white-space: nowrap;" t-field= "website_sale_order.amount_total" t-field-options= '{
2013-12-12 10:58:21 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2013-12-12 10:58:21 +00:00
}'/></h4> </div>
2013-10-17 11:00:46 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
</div>
</form>
</div>
</div>
</t>
</template>
2014-01-30 23:39:51 +00:00
<!-- /shop/payment -->
2013-12-12 10:58:21 +00:00
<template id= "payment" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Shop - Select Payment Mode</t>
<div id= "wrap" >
<div class= "container oe_website_sale" >
<ul class= "wizard pull-right" >
2014-01-30 23:39:51 +00:00
<li > <a href= "/shop/cart" class= "text-success" > Review Order<span class= "chevron" > </span> </a> </li>
2013-12-12 10:58:21 +00:00
<li > <a href= "/shop/checkout" class= "text-success" > Shipping & Billing<span class= "chevron" > </span> </a> </li>
<li class= "text-primary" > Payment<span class= "chevron" > </span> </li>
<li class= "text-muted" > Confirmation<span class= "chevron" > </span> </li>
</ul>
<h1 class= "mb32" > Validate Order</h1>
<div class= "row" >
2014-10-08 13:37:21 +00:00
<div class= "col-lg-8 col-sm-9" >
<t t-foreach= "errors" t-as= "error" >
<div class= "alert alert-danger" t-if= "error" >
<h4 > <t t-esc= "error[0]" /> </h4>
<t t-esc= "error[1]" />
</div>
</t>
</div>
2014-01-30 23:39:51 +00:00
<div class= "col-lg-8 col-sm-9 oe_cart" >
2014-02-25 12:57:36 +00:00
<t t-set= "website_sale_order" t-value= "website.sale_get_order()" />
2014-01-30 23:39:51 +00:00
<table class= 'table table-striped table-condensed' id= "cart_products" t-if= "website_sale_order and website_sale_order.website_order_line" >
2013-12-12 10:58:21 +00:00
<thead >
<tr >
2014-01-28 15:13:59 +00:00
<th colspan= "2" width= "80" > Product</th>
<th width= "100" > Price</th>
<th width= "120" > Quantity</th>
2013-12-12 10:58:21 +00:00
</tr>
</thead>
<tbody >
2013-12-18 13:21:50 +00:00
<tr t-foreach= "website_sale_order.website_order_line" t-as= "line" >
2013-12-12 10:58:21 +00:00
<td colspan= "2" t-if= "not line.product_id.product_tmpl_id" > </td>
<td t-if= "line.product_id.product_tmpl_id" >
2014-03-14 16:23:46 +00:00
<a t-attf-href= "/shop/product/#{ slug(line.product_id.product_tmpl_id) }" >
2013-12-12 10:58:21 +00:00
<span t-field= "line.product_id.image_small"
t-field-options='{"widget": "image", "class": "img-rounded"}'/>
</a>
</td>
<td t-if= "line.product_id.product_tmpl_id" >
2015-02-16 15:31:49 +00:00
<strong t-field= "line.product_id.with_context(display_default_code=False).display_name" />
2013-12-12 10:58:21 +00:00
</td>
<td class= "text-center" >
2014-06-18 15:43:14 +00:00
<span t-field= "line.price_unit" style= "white-space: nowrap;" t-field-options= '{
2013-12-12 10:58:21 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2013-12-12 10:58:21 +00:00
}'/>
</td>
<td >
<div t-esc= "line.product_uom_qty" />
</td>
</tr>
</tbody>
</table>
2014-01-17 17:38:36 +00:00
<t t-call= "website_sale.total" />
2013-12-12 10:58:21 +00:00
<div class= "clearfix" />
2013-10-17 11:00:46 +00:00
<div class= "oe_structure" />
</div>
2013-12-12 10:58:21 +00:00
<div class= "col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id= "right_column" >
<h4 > Bill To:</h4>
2013-12-24 14:58:45 +00:00
<div t-field= "order.partner_invoice_id" t-field-options= '{
2013-12-12 12:02:32 +00:00
"widget": "contact",
"fields": ["address", "name", "phone", "email"]
}'/>
2013-12-12 10:58:21 +00:00
<div >
<a href= "/shop/checkout" > <span class= "fa fa-arrow-right" /> Change Address</a>
</div>
2014-07-17 14:09:52 +00:00
<t >
2014-01-15 11:05:47 +00:00
<h4 class= "mt32" > Ship To:</h4>
<t t-if= "website_sale_order.partner_shipping_id and website_sale_order.partner_shipping_id.id != website_sale_order.partner_invoice_id.id" >
<div t-field= "order.partner_shipping_id" t-field-options= '{
"widget": "contact",
"fields": ["address", "name", "phone"]
}'/>
</t>
<address t-if= "website_sale_order.partner_shipping_id.id == website_sale_order.partner_invoice_id.id" > Ship to the same address</address>
<div class= "mb32" >
<a href= "/shop/checkout" > <span class= "fa fa-arrow-right" /> Change Address</a>
</div>
2013-12-24 14:58:45 +00:00
</t>
2013-07-23 08:18:13 +00:00
</div>
2013-12-12 10:58:21 +00:00
</div>
2013-09-30 22:51:05 +00:00
2014-01-28 16:38:15 +00:00
<div class= "js_payment mb64 row" t-if= "acquirers and website_sale_order.amount_total" id= "payment_method" >
2013-12-12 10:58:21 +00:00
<div class= "col-lg-5 col-sm-6" >
2014-01-19 19:35:27 +00:00
<h4 > Payment Method:</h4>
2014-01-23 10:47:05 +00:00
<ul class= "list-unstyled" >
<li t-foreach= "acquirers or []" t-as= "acquirer" >
<label t-if= "acquirer.button" >
2014-01-19 19:35:27 +00:00
<input t-att-value= "acquirer.id" type= "radio" name= "acquirer" t-att-checked= "acquirers[0] == acquirer" />
2013-12-12 10:58:21 +00:00
<img class= "media-object" style= "width: 60px; display: inline-block;"
t-att-title="acquirer.name"
2014-03-19 14:46:08 +00:00
t-att-src="'/payment_%s/static/src/img/%s_icon.png' % (acquirer.provider, acquirer.provider)"/>
2014-01-21 19:47:14 +00:00
<span t-field= "acquirer.name" />
2013-12-12 10:58:21 +00:00
</label>
2014-01-23 10:47:05 +00:00
</li>
</ul>
2013-12-12 10:58:21 +00:00
</div>
<div class= "col-lg-3 col-sm-3" >
<t t-foreach= "acquirers or []" t-as= "acquirer" >
2014-01-24 14:43:55 +00:00
<div t-att-data-id= "acquirer.id" class= "oe_sale_acquirer_button hidden pull-right" >
<div t-raw= "acquirer.button" />
<div t-field= "acquirer.pre_msg" />
</div>
2013-12-12 10:58:21 +00:00
</t>
</div>
</div>
2014-01-28 16:38:15 +00:00
<div class= "js_payment mb64 row" t-if= "not website_sale_order.amount_total" id= "payment_method" >
<div class= "col-lg-8 col-sm-8" >
2014-03-14 16:23:46 +00:00
<form target= "_self" action= "/shop/payment/validate" method= "post" class= "pull-right" >
2014-03-07 12:51:41 +00:00
<a style= "width:100px;" class= "btn btn-primary a-submit" >
2014-01-28 16:38:15 +00:00
<span > Pay Now <span class= "fa fa-long-arrow-right" > </span> </span>
2014-03-07 12:51:41 +00:00
</a>
2014-01-28 16:38:15 +00:00
</form>
</div>
</div>
2013-12-12 10:58:21 +00:00
</div>
<div class= "oe_structure" />
</div>
</t>
</template>
<template id= "confirmation" >
<t t-call= "website.layout" >
<t t-set= "additional_title" > Shop - Confirmed</t>
<div id= "wrap" >
<div class= "container oe_website_sale" >
<ul class= "wizard pull-right" >
<li class= "text-muted" > Review Order<span class= "chevron" > </span> </li>
<li class= "text-muted" > Shipping & Billing<span class= "chevron" > </span> </li>
<li class= "text-muted" > Payment<span class= "chevron" > </span> </li>
<li class= "text-primary" > Confirmation<span class= "chevron" > </span> </li>
</ul>
2014-01-24 14:57:13 +00:00
<h1 class= "mb32" > Order <em t-field= "order.name" /> Confirmed</h1>
2013-12-12 10:58:21 +00:00
<div class= "row" >
2014-01-30 23:39:51 +00:00
<div class= "col-md-8 oe_cart" >
2013-12-12 10:58:21 +00:00
<h2 > Thank you for your order.</h2>
<div class= "oe_website_sale_tx_status" t-att-data-order-id= "order.id" >
</div>
<div class= "clearfix" />
<div class= "oe_structure" />
</div>
<div class= "col-md-3 col-md-offset-1 text-muted" id= "right_column" >
2014-01-10 10:28:58 +00:00
<h4 > Bill To:</h4>
<div t-field= "order.partner_invoice_id" t-field-options= '{
"widget": "contact",
"fields": ["address", "name", "phone", "email"]
}'/>
2014-07-17 14:09:52 +00:00
<t >
2014-01-15 11:05:47 +00:00
<h4 class= "mt32" > Ship To:</h4>
<t t-if= "order.partner_shipping_id and order.partner_shipping_id.id != order.partner_invoice_id.id" >
<div t-field= "order.partner_shipping_id" t-field-options= '{
"widget": "contact",
"fields": ["address", "name", "phone"]
}'/>
</t>
<address t-if= "order.partner_shipping_id.id == order.partner_invoice_id.id" > Ship to the same address</address>
2014-01-10 10:28:58 +00:00
</t>
2013-12-12 10:58:21 +00:00
</div>
</div>
</div>
<div class= "oe_structure" />
</div>
</t>
</template>
2014-01-17 17:38:36 +00:00
<!-- Page Shop my cart and payment total -->
<template id= "total" >
2014-01-30 23:39:51 +00:00
<table class= 'pull-right mb16' id= "cart_total" t-if= "website_sale_order" >
2014-01-17 17:38:36 +00:00
<thead >
2014-01-28 15:13:59 +00:00
<tr width= "100" style= "border-top: 1px solid #000" id= "order_total" >
2014-06-17 12:23:15 +00:00
<th > <h3 > Total: </h3> </th>
2014-01-17 17:38:36 +00:00
<th class= "text-right" >
2014-06-18 15:43:14 +00:00
<h3 > <span t-field= "website_sale_order.amount_total" style= "white-space: nowrap;" t-field-options= '{
2014-01-17 17:38:36 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-01-17 17:38:36 +00:00
}'/></h3>
</th>
</tr>
2014-01-28 15:13:59 +00:00
<tr width= "120" class= "text-muted" id= "order_total_taxes" >
2014-01-17 17:38:36 +00:00
<td > <abbr title= "Taxes may be updated after providing shipping address" > Taxes:</abbr> </td>
<td class= "text-right" >
2014-06-18 15:43:14 +00:00
<span t-field= "website_sale_order.amount_tax" style= "white-space: nowrap;" t-field-options= '{
2014-01-17 17:38:36 +00:00
"widget": "monetary",
2015-03-31 13:51:53 +00:00
"from_currency": "website_sale_order.pricelist_id.currency_id",
2014-06-18 14:28:35 +00:00
"display_currency": "user_id.partner_id.property_product_pricelist.currency_id"
2014-01-17 17:38:36 +00:00
}'/>
</td>
</tr>
</thead>
</table>
</template>
2014-08-12 11:06:08 +00:00
<template id= "website.layout_footer_copyright" inherit_id= "website.layout" name= "Footer Copyright" >
<xpath expr= "//footer" position= "inside" >
<div class= "container mt16 mb8" >
<div class= "pull-right" t-ignore= "true" t-if= "not editable" >
Powered by <a class= "label label-danger" href= "http://www.odoo.com/page/website-builder" > Odoo</a> ,
2014-08-20 08:31:25 +00:00
the #1 <a href= "http://www.odoo.com/page/e-commerce" > Open Source eCommerce</a> .
2014-08-12 11:06:08 +00:00
</div>
<div class= "pull-left text-muted" >
Copyright & copy; <span t-field= "res_company.name" > Company name</span>
</div>
</div>
</xpath>
</template>
2014-06-27 09:03:34 +00:00
<!-- User Navbar -->
<template id= "content_new_product" inherit_id= "website.user_navbar" groups= "base.group_sale_manager" >
<xpath expr= "//ul[@id='oe_systray']/li/ul[@class='dropdown-menu oe_content_menu']" position= "inside" >
<li > <a id= "create-new-product" href= "#" data-action= "new_product" > New Product</a> </li>
</xpath>
</template>
2013-12-12 10:58:21 +00:00
</data>
2013-07-01 00:20:54 +00:00
</openerp>