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
2013-07-23 08:18:13 +00:00
<!-- Layout add nav and footer -->
2013-12-04 16:17:54 +00:00
<template id= "website.secure_layout" >
<xpath expr= "//t[@id='editable_scripts_hook']" position= "inside" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.editor.js" t-ignore= "true" > </script>
<script type= "text/javascript" src= "/website_sale/static/src/js/website.tour.shop.js" t-ignore= "true" > </script>
</xpath>
</template>
2013-11-07 13:53:06 +00:00
<template id= "header" inherit_id= "website.layout" name= "Header Shop My Cart Link" >
2013-09-18 14:50:28 +00:00
<xpath expr= "//header//ul[@id='top_menu']/li" position= "before" >
2013-10-03 11:04:11 +00:00
<li t-att-class= "(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''" >
2013-11-12 14:44:42 +00:00
<a href= "/shop/mycart/" >
2013-12-03 14:16:32 +00:00
<i class= "fa fa-shopping-cart" > </i>
2013-10-03 11:04:11 +00:00
My cart <sup t-attf-class= "my_cart_quantity label label-primary"
2013-10-03 11:23:54 +00:00
t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
2013-08-12 09:32:55 +00:00
</a>
</li>
</xpath>
</template>
2013-10-15 08:27:26 +00:00
2013-08-12 16:31:23 +00:00
<!-- List of categories -->
2013-08-06 09:23:44 +00:00
2013-10-21 13:39:57 +00:00
<template id= "categories_recursive" name= "Category list" >
2013-11-07 14:48:28 +00:00
<li t-att-class= "str(category.id) == search.get('category') and 'active' or ''" >
2013-12-01 17:25:41 +00:00
<a t-href= "/shop/category/#{ category.id }/" t-field= "category.name" > </a>
2013-08-29 12:22:22 +00:00
<ul t-if= "category.child_id" class= "nav nav-pills nav-stacked nav-hierarchy" >
2013-07-23 08:18:13 +00:00
<t t-foreach= "category.child_id" t-as= "category" >
2013-12-01 17:25:41 +00:00
<t t-call= "website_sale.categories_recursive" />
2013-07-02 09:41:38 +00:00
</t>
2013-07-23 08:18:13 +00:00
</ul>
</li>
</template>
2013-10-21 13:39:57 +00:00
<!-- Product list -->
2013-07-23 08:18:13 +00:00
2013-11-07 13:55:28 +00:00
<template id= "search" name= "Search hidden fields" >
<input type= "hidden" name= "category" t-att-value= "search.get('category') or ''" />
2013-12-01 17:25:41 +00:00
<input type= "hidden" name= "filter_domain" t-att-value= "search.get('filter_domain') or ''" />
2013-11-07 13:55:28 +00:00
<input type= "text" name= "search" class= "search-query form-control" placeholder= "Search..." t-att-value= "search.get('search') or ''" />
2013-11-06 17:57:43 +00:00
</template>
2013-10-21 13:39:57 +00:00
<template id= "products_cart" name= "Shopping cart" >
2013-12-03 17:10:33 +00:00
<div class= "ribbon-wrapper" >
<div class= "ribbon" > Promo</div>
2013-09-29 15:34:20 +00:00
</div>
2013-09-25 18:05:38 +00:00
<div class= "oe_product_description" >
2013-12-02 12:57:23 +00:00
<a t-href= "/shop/product/#{ slug(product) }/" t-keep-query= "category,search,filter_domain" >
2013-09-25 18:05:38 +00:00
<b t-field= "product.name" />
</a>
</div>
2013-10-24 11:04:53 +00:00
<div class= "product_price" t-if= "product.product_variant_ids" >
2013-10-09 13:59:14 +00:00
<b >
<t t-if= "product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price" >
2013-10-14 08:54:59 +00:00
<del class= "text-danger"
t-field="product.product_variant_ids[0].lst_price" t-field-options='{
2013-10-11 13:11:47 +00:00
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
2013-10-14 08:54:59 +00:00
}'/>& nbsp;
2013-10-09 13:59:14 +00:00
</t>
2013-10-14 08:54:59 +00:00
<span t-field= "product.product_variant_ids[0].price" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
2013-10-09 13:59:14 +00:00
</b>
2013-09-25 18:05:38 +00:00
</div>
<div class= "oe_product_image text-center" >
2013-12-01 17:25:41 +00:00
<a t-href= "/shop/product/#{ product.id }/" t-keep-query= "category,search,filter_domain" >
2013-10-22 10:59:55 +00:00
<span t-field= "product.image" t-field-options= '{"widget": "image"}' />
2013-09-25 18:05:38 +00:00
</a>
</div>
</template>
2013-11-05 15:14:04 +00:00
<template id= "products" name= "Products" >
2013-09-22 17:27:27 +00:00
<t t-call= "website.layout" >
2013-09-02 15:30:30 +00:00
<t t-set= "head" >
2013-11-05 15:09:28 +00:00
<script type= "text/javascript" src= "/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js" > </script>
<link rel= 'stylesheet' href= "/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css" />
2013-09-22 17:27:27 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
2013-09-02 15:30:30 +00:00
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_sale.css' />
<t t-raw= "head or ''" />
</t>
2013-10-22 13:44:09 +00:00
<t t-set= "additional_title" > Shop</t>
2013-09-22 17:27:27 +00:00
<div id= "wrap" >
<div class= "oe_structure" />
<div class= "container oe_website_sale" >
2013-09-19 05:54:25 +00:00
<div class= "row" >
2013-11-15 15:27:16 +00:00
<div class= "col-sm-8 products_pager" >
2013-09-29 16:06:35 +00:00
<t t-call= "website.pager" >
<t t-set= "classname" > pull-right</t>
2013-11-07 11:25:33 +00:00
<t t-set= "style" > padding-left: 5px;</t>
2013-09-29 16:06:35 +00:00
</t>
2013-11-12 14:44:42 +00:00
<form action= "/shop/" method= "get" class= "pull-right pagination form-inline" style= "padding-right: 5px;" >
2013-11-07 13:55:28 +00:00
<t t-call= "website_sale.search" />
2013-09-19 05:54:25 +00:00
</form>
</div>
</div>
2013-09-29 15:42:04 +00:00
<div class= 'style_default row' >
2013-11-07 14:39:59 +00:00
<div class= "hidden" id= "products_grid_before" > </div>
2013-09-26 07:56:50 +00:00
<div class= "col-md-12" id= "products_grid" >
<table width= "100%" >
<tbody >
2013-12-01 00:23:55 +00:00
<tr t-foreach= "bins" t-as= "tr_product" >
2013-09-26 07:56:50 +00:00
<t t-foreach= "tr_product" t-as= "td_product" >
<t t-if= "td_product" >
<t t-set= "product" t-value= "td_product['product']" />
<td t-att-colspan= "td_product['x']"
2013-10-15 08:27:26 +00:00
t-attf-width="#{td_product['x']*25}%"
2013-09-26 07:56:50 +00:00
t-att-rowspan="td_product['y']"
2013-10-01 09:08:00 +00:00
t-attf-class="oe_product oe-height-#{td_product['y']*2} #{ td_product['class'] }">
2013-09-27 10:31:48 +00:00
2013-10-01 12:03:35 +00:00
<div class= "oe_product_cart" t-att-data-publish= "product.website_published and 'on' or 'off'" >
2013-10-21 13:39:57 +00:00
2013-11-21 13:23:17 +00:00
<div class= "css_options" t-ignore= "true" t-if= "editable" >
2013-10-01 12:03:35 +00:00
<div t-attf-class= "dropdown js_options" t-att-data-id= "product.id" >
<a class= "btn btn-default" t-att-id= "'dopprod-%s' % product.id" role= "button" data-toggle= "dropdown" > Options <span class= "caret" > </span> </a>
<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" >
2013-10-09 12:48:48 +00:00
<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>
2013-10-01 12:03:35 +00:00
</t>
</ul>
</li>
</ul>
</div>
2013-09-27 10:31:48 +00:00
</div>
2013-10-01 09:08:00 +00:00
<t t-call= "website_sale.products_cart" />
</div>
2013-10-01 12:03:35 +00:00
2013-09-26 07:56:50 +00:00
</td>
</t>
2013-09-26 11:18:54 +00:00
<td t-if= "td_product == None" />
2013-09-25 18:05:38 +00:00
</t>
2013-09-26 07:56:50 +00:00
</tr>
</tbody>
</table>
2013-12-01 00:23:55 +00:00
<t t-if= "not bins" >
2013-11-07 14:39:59 +00:00
<h3 class= "text-center text-muted" > No product found for this search</h3>
</t>
2013-09-26 07:56:50 +00:00
</div>
2013-08-05 12:38:36 +00:00
</div>
2013-11-07 11:25:33 +00:00
<div class= "products_pager" >
2013-10-22 14:28:04 +00:00
<t t-call= "website.pager" >
<t t-set= "classname" > pull-right</t>
</t>
2013-07-23 08:18:13 +00:00
</div>
2013-09-22 17:27:27 +00:00
</div>
<div class= "oe_structure mb32" />
</div>
2013-07-23 08:18:13 +00:00
</t>
</template>
2013-09-23 11:14:41 +00:00
<!-- Product Description -->
2013-09-27 05:49:10 +00:00
<template id= "product_description" inherit_option_id= "website_sale.products_cart" name= "Product Description" >
2013-10-09 13:59:14 +00:00
<xpath expr= "//div[@class='oe_product_description']" position= "inside" >
2013-09-27 05:49:10 +00:00
<p class= "text-muted oe_subdescription" >
2013-09-25 11:28:03 +00:00
<span t-field= "product.description_sale" />
2013-09-27 05:49:10 +00:00
</p>
2013-09-23 11:14:41 +00:00
</xpath>
</template>
<!-- Add to cart button -->
2013-09-26 09:18:25 +00:00
<template id= "add_to_basket" inherit_option_id= "website_sale.products_cart" name= "Add to Cart" >
<xpath expr= "//div[@class='product_price']" position= "inside" >
2013-12-03 15:44:22 +00:00
<a t-href= "/shop/add_cart/#{ product.product_variant_ids[0].id }/" class= "js_add_cart_json" >
2013-12-03 14:16:32 +00:00
<span class= "fa fa-shopping-cart" />
2013-09-23 11:14:41 +00:00
</a>
</xpath>
</template>
2013-09-23 12:47:52 +00:00
<!-- List view of products -->
2013-09-23 13:02:38 +00:00
<template id= "list_view" inherit_option_id= "website_sale.products" name= "List View" >
2013-11-12 17:28:11 +00:00
<xpath expr= "//div[@id='products_grid']//table" position= "replace" >
2013-09-26 07:56:50 +00:00
<div class= "row" >
2013-09-26 07:46:44 +00:00
<t t-foreach= "products" t-as= "product" >
<div class= "col-md-12 oe_list_products oe-height-1" >
<t t-call= "website_sale.products_cart" />
</div>
</t>
</div>
2013-09-23 12:47:52 +00:00
</xpath>
</template>
2013-10-21 13:39:57 +00:00
<!-- product -->
2013-07-23 08:18:13 +00:00
2013-08-12 16:31:23 +00:00
<template id= "product" name= "Product" >
2013-09-22 17:27:27 +00:00
<t t-call= "website.layout" >
<t t-set= "head" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
2013-07-23 08:18:13 +00:00
</t>
2013-10-10 13:29:07 +00:00
<t t-set= "additional_title" t-value= "product.name" />
2013-09-22 17:27:27 +00:00
<div id= "wrap" >
2013-09-22 19:33:56 +00:00
<section class= "container mt8" >
<div class= "row" >
<div class= "col-sm-5" >
<ol class= "breadcrumb" >
2013-11-12 14:44:42 +00:00
<li > <a href= "/shop" > Products</a> </li>
2013-12-01 17:25:41 +00:00
<li t-if= "search.get('category')" > <a t-href= "/shop/" t-keep-query= "category,search,filter_domain" > <span t-field= "category.name" /> </a> </li>
2013-11-28 16:08:51 +00:00
<li class= "active" > <span t-field= "product.name" /> </li>
2013-09-22 19:33:56 +00:00
</ol>
</div> <div class= "col-sm-3" >
2013-09-26 11:18:54 +00:00
<t t-call= "website.publish_management" >
<t t-set= "object" t-value= "product" />
2013-10-02 15:45:28 +00:00
<t t-set= "publish_edit" t-value= "True" />
2013-09-26 11:18:54 +00:00
<li class= 'dropdown-submenu' >
2013-09-27 10:31:48 +00:00
<a tabindex= "-1" href= "#" > Promote</a>
2013-09-26 11:18:54 +00:00
<ul class= "dropdown-menu" name= "sequence" >
2013-09-30 08:37:59 +00:00
<li > <a href= "#" class= "js_go_to_top" > Push to top</a> </li>
<li > <a href= "#" class= "js_go_to_bottom" > Push to bottom</a> </li>
2013-09-26 11:18:54 +00:00
</ul>
</li>
</t>
2013-09-22 19:33:56 +00:00
</div> <div class= "col-sm-3 col-sm-offset-1" >
2013-11-12 14:44:42 +00:00
<form action= "/shop/" method= "get" class= "pull-right" >
2013-11-07 13:55:28 +00:00
<t t-call= "website_sale.search" />
2013-11-06 17:57:43 +00:00
</form>
2013-09-22 19:33:56 +00:00
</div>
2013-07-23 08:18:13 +00:00
</div>
2013-09-22 19:33:56 +00:00
</section>
<section class= "container oe_website_sale mb16" id= "product_detail" >
<div class= "row" >
<div class= "col-sm-7 col-md-7 col-lg-7" >
2013-11-07 16:21:01 +00:00
<span t-field= "product.image" style= "max-height: 500px" t-field-options= '{"widget": "image", "class": "img img-responsive"}' />
2013-09-22 19:33:56 +00:00
</div> <div class= "col-sm-5 col-md-5 col-lg-4 col-lg-offset-1" >
<h1 t-field= "product.name" > Product Name</h1>
2013-12-03 15:44:22 +00:00
<form action= "/shop/add_cart/" class= "js_add_cart_json" method= "POST" >
2013-11-15 16:30:48 +00:00
<input type= "hidden" t-if= "len(product.product_variant_ids) == 1" name= "product_id" t-att-value= "product.product_variant_ids[0].id" />
2013-09-22 19:33:56 +00:00
<t t-if= "len(product.product_variant_ids) > 1" >
2013-11-15 16:30:48 +00:00
<label label-default= "label-default" class= "radio" t-foreach= "product.product_variant_ids" t-as= "variant_id" >
<input type= "radio" name= "product_id" t-att-value= "variant_id.id" t-att-checked= "variant_id == product.product_variant_ids[0] or None" />
<t t-esc= "variant_id.variants or ''" > Standard</t>
<span class= "badge" t-if= "variant_id.price_extra" >
<t t-esc= "variant_id.price_extra > 0 and '+' or ''" /> <span t-field= "variant_id.price_extra" t-field-options= '{
2013-10-11 13:11:47 +00:00
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
2013-09-22 19:33:56 +00:00
</span>
</label>
<br />
</t>
2013-10-02 07:12:39 +00:00
2013-10-24 11:04:53 +00:00
<div class= "product_price mt16" t-if= "product.product_variant_ids" >
2013-10-13 19:01:05 +00:00
<h4 >
2013-10-02 07:12:39 +00:00
<t t-if= "product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price" >
2013-10-16 15:08:37 +00:00
<span class= "text-danger" style= "text-decoration: line-through;"
t-field="product.product_variant_ids[0].lst_price"
t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/><br />
2013-10-02 07:12:39 +00:00
</t>
2013-10-16 15:08:37 +00:00
<b class= "oe_price"
t-field="product.product_variant_ids[0].price"
t-field-options='{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
2013-10-14 09:58:20 +00:00
</h4>
2013-09-22 19:33:56 +00:00
</div>
<button class= "btn btn-primary btn-lg mt8" > Add to Cart</button>
<hr t-if= "product.description_sale" />
<p t-field= "product.description_sale" class= "text-muted" />
<hr />
<p class= "text-muted" >
30-day money-back guarantee<br />
Free Shipping in U.S.<br />
Buy now, get in 2 days
</p>
</form>
</div>
</div>
</section>
<div t-field= "product.website_description" class= "oe_structure" id= "product_full_description" />
2013-09-22 17:27:27 +00:00
</div>
2013-07-23 08:18:13 +00:00
</t>
</template>
2013-09-22 19:33:56 +00:00
2013-08-12 16:31:23 +00:00
<template id= "recommended_products" inherit_id= "website_sale.product" inherit_option_id= "website_sale.product" name= "Recommended Products" >
2013-09-22 19:33:56 +00:00
<xpath expr= "//div[@id='product_full_description']" position= "after" >
<div class= "container mt32" t-if= "product.recommended_products()" >
2013-09-14 22:13:01 +00:00
<h3 > Customers who have bought this product also bought:</h3>
2013-08-26 09:26:41 +00:00
<div class= 'row mt16' style= "margin-left: 15px !important;" >
2013-08-12 16:31:23 +00:00
<t t-foreach= "product.recommended_products()" t-as= "product" >
2013-08-29 17:58:31 +00:00
<div class= 'col-md-2 thumbnail' style= 'width: 170px; margin-right: 16px;' >
2013-09-19 12:15:41 +00:00
<div class= 'mt16 text-center' >
2013-10-08 12:04:56 +00:00
<span t-field= "product.image_small" />
2013-09-19 12:15:41 +00:00
<h5 >
2013-12-02 12:57:23 +00:00
<a t-href= "/shop/product/#{ slug(product) }/"
2013-09-19 12:15:41 +00:00
style="display: block">
<span t-field= 'product.name'
style="display: block"/>
</a>
</h5>
</div>
2013-08-12 16:31:23 +00:00
</div>
</t>
</div>
</div>
</xpath>
</template>
2013-07-23 08:18:13 +00:00
2013-11-07 16:21:01 +00:00
<template id= "product_attributes" inherit_option_id= "website_sale.product" name= "Product Attributes" >
2013-11-07 16:45:22 +00:00
<xpath expr= "//p[@t-field='product.description_sale']" position= "after" >
<hr t-if= "product.website_attribute_ids" />
<p class= "text-muted" >
<t t-set= "attr" t-value= "None" />
<t t-foreach= "product.website_attribute_ids" t-as= "attribute" > <br t-if= "attr and attribute.attribute_id.id != attr" /> <t t-if= "attribute.attribute_id.id != attr" > <span t-field= "attribute.attribute_id" /> : </t> <t t-if= "attribute.attribute_id.id == attr" > , </t> <t t-if= "attribute.attribute_id.type == 'distinct'" > <span t-field= "attribute.value_id" /> </t> <t t-if= "attribute.attribute_id.type == 'float'" > <span t-field= "attribute.value" /> </t> <t t-set= "attr" t-value= "attribute.attribute_id.id" /> </t>
</p>
2013-11-07 16:21:01 +00:00
</xpath>
</template>
2013-10-21 13:39:57 +00:00
<!-- Page Shop my cart -->
2013-07-23 08:18:13 +00:00
2013-11-05 09:49:53 +00:00
<template id= "mycart" name= "Your Cart" >
2013-09-22 17:27:27 +00:00
<t t-call= "website.layout" >
<t t-set= "head" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
2013-09-30 22:51:05 +00:00
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_sale.css' />
2013-09-22 17:27:27 +00:00
<t t-raw= "head or ''" />
</t>
<div id= "wrap" >
<div class= "container oe_website_sale" >
2013-09-30 22:51:05 +00:00
<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>
2013-10-22 14:01:19 +00:00
<h1 class= "mb32" > Shopping Cart</h1>
2013-09-30 22:51:05 +00:00
<div class= "row" >
2013-11-16 22:43:06 +00:00
<div class= "col-md-8 col-sm-9 oe_mycart" >
2013-10-22 14:01:19 +00:00
<div t-if= "not website_sale_order or not website_sale_order.order_line" class= "well well-lg" >
Your cart is empty!
</div>
<table class= 'table table-striped table-condensed' id= "mycart_products" t-if= "website_sale_order and website_sale_order.order_line" >
<colgroup >
<col width= "80" />
<col />
<col width= "100" />
<col width= "120" />
</colgroup>
<thead >
<tr >
<th colspan= "2" > Product</th>
<th > Price</th>
<th > Quantity</th>
</tr>
</thead>
<tbody >
<tr t-foreach= "website_sale_order.order_line" t-as= "line" >
<td colspan= "2" t-if= "not line.product_id.product_tmpl_id" > </td>
<td t-if= "line.product_id.product_tmpl_id" >
<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 >
2013-12-02 12:57:23 +00:00
<a t-href= "/shop/product/#{ slug(line.product_id.product_tmpl_id) }/" >
2013-10-22 14:01:19 +00:00
<strong t-field= "line.product_id.name" />
2013-12-03 15:44:22 +00:00
<t t-if= "line.product_id.variants" > (<t t-esc= "line.product_id.variants" /> )</t>
2013-10-22 14:01:19 +00:00
</a>
</div>
<div class= "text-muted" t-field= "line.product_id.description_sale" />
</td>
<td class= "text-center" >
<del class= "text-danger" t-if= "line.product_id.lst_price > line.price_unit" >
<span t-field= "line.product_id.lst_price" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</del>
<span t-field= "line.price_unit" t-field-options= '{
2013-10-11 13:11:47 +00:00
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
2013-10-22 14:01:19 +00:00
</td>
<td >
<div class= "input-group" >
<span class= "input-group-addon" >
2013-12-03 15:44:22 +00:00
<a t-href= "./change_cart/#{ line.id }/?remove=True" class= "mb8 js_add_cart_json" >
<i class= "fa fa-minus-square" > </i>
2013-10-22 14:01:19 +00:00
</a>
</span>
<input type= "text" class= "js_quantity form-control"
t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
<span class= "input-group-addon" >
2013-12-03 15:44:22 +00:00
<a t-href= "./change_cart/#{ line.id }/" class= "mb8 float_left js_add_cart_json" >
<i class= "fa fa-plus-square" > </i>
2013-10-22 14:01:19 +00:00
</a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
2013-11-05 15:54:10 +00:00
<table class= 'pull-right mb16' id= "mycart_total" t-if= "website_sale_order" >
2013-10-22 14:01:19 +00:00
<colgroup >
<col width= "100" />
<col width= "120" />
</colgroup>
<thead >
<tr style= "border-top: 1px solid #000" >
<th > <h3 > Total:</h3> </th>
2013-11-05 13:27:47 +00:00
<th class= "text-right" >
<h3 > <t t-call= "website_sale.total" /> </h3>
2013-10-22 14:01:19 +00:00
</th>
</tr>
<tr class= "text-muted" >
<td > <abbr title= "Taxes may be updated after providing shipping address" > Incl. Taxes:</abbr> </td>
<td class= "text-right" >
<span t-field= "website_sale_order.amount_tax" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</td>
</tr>
</thead>
</table>
<div class= "clearfix" />
2013-12-03 14:16:32 +00:00
<a href= "/shop" class= "btn btn-default mb32" > <span class= "fa fa-long-arrow-left" /> Continue Shopping</a>
<a t-if= "website_sale_order and website_sale_order.order_line" href= "/shop/checkout/" class= "btn btn-primary pull-right mb32" > Process Checkout <span class= "fa fa-long-arrow-right" /> </a>
2013-10-22 14:01:19 +00:00
<div class= "oe_structure" />
</div>
2013-11-16 22:43:06 +00:00
<div class= "col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id= "right_column" >
2013-11-07 16:21:01 +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>
2013-08-05 12:38:36 +00:00
</div>
2013-09-30 22:51:05 +00:00
2013-09-22 17:27:27 +00:00
</div>
<div class= "oe_structure" />
</div>
2013-07-23 08:18:13 +00:00
</t>
</template>
2013-09-22 17:27:27 +00:00
2013-10-21 13:39:57 +00:00
<!-- Page Shop -->
2013-09-22 17:27:27 +00:00
<template id= "products_categories" inherit_option_id= "website_sale.products" name= "Product Categories" >
2013-11-07 14:39:59 +00:00
<xpath expr= "//div[@id='products_grid_before']" position= "inside" >
<ul class= "nav nav-pills nav-stacked mt16" >
2013-11-12 14:44:42 +00:00
<li t-att-class= " '' if search.get('category') else 'active' " > <a href= "/shop/" > All Products</a> </li>
2013-12-01 17:25:41 +00:00
<t t-foreach= "categories" t-as= "category" >
2013-11-07 14:39:59 +00:00
<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</attribute>
2013-09-22 17:27:27 +00:00
</xpath>
<xpath expr= "//div[@id='products_grid']" position= "attributes" >
<attribute name= "class" > col-md-9</attribute>
</xpath>
</template>
2013-11-07 14:39:59 +00:00
<template id= "products_attributes" inherit_option_id= "website_sale.products" name= "Product Filters and Attributes" >
<xpath expr= "//div[@id='products_grid_before']" position= "inside" >
2013-11-21 13:05:29 +00:00
<form t-action= "/shop/filter/" method= "post" t-keep-query= "category,search" >
2013-10-15 08:27:26 +00:00
<ul class= "nav nav-pills nav-stacked mt16" >
<t t-set= "attribute_ids" t-value= "Ecommerce.get_attribute_ids()" />
<t t-foreach= "attribute_ids" t-as= "attribute_id" >
2013-11-05 15:09:28 +00:00
<t t-if= "attribute_id.visible" >
2013-10-15 08:27:26 +00:00
<li t-if= "attribute_id.value_ids and attribute_id.type == 'distinct'" >
<div t-field= "attribute_id.name" />
<ul class= "nav nav-pills nav-stacked" >
<t t-foreach= "attribute_id.value_ids" t-as= "value_id" >
2013-11-05 15:09:28 +00:00
<li t-att-class= "Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'active' or ''" >
2013-10-15 08:27:26 +00:00
<label style= "margin: 0 20px;" >
<input type= "checkbox" t-att-name= "'att-%s-%s' % (attribute_id.id, value_id.id)"
2013-11-05 15:09:28 +00:00
t-att-checked="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'checked' or ''"/>
2013-10-15 08:27:26 +00:00
<span style= "font-weight: normal" t-field= "value_id.name" />
</label>
</li>
</t>
</ul>
</li>
<li t-if= "attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max" >
<div t-field= "attribute_id.name" />
2013-11-05 15:09:28 +00:00
<t t-set= "attribute" t-value= "Ecommerce.has_search_filter(attribute_id.id)" />
2013-10-15 08:27:26 +00:00
<div style= "margin: 0 20px;" class= "js_slider"
t-att-data-id="attribute_id.id"
t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min"
t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
t-att-data-min="attribute_id.float_min"
t-att-data-max="attribute_id.float_max"></div>
</li>
2013-11-05 15:09:28 +00:00
</t>
2013-10-15 08:27:26 +00:00
</t>
</ul>
<button class= "btn btn-xs btn-primary mt16" > Apply filter</button>
2013-11-07 14:48:28 +00:00
<a t-href= "/shop/" t-keep-query= "category,search,add_filter" class= "btn btn-xs btn-default mt16" > Cancel filter</a>
2013-10-15 08:27:26 +00:00
</form>
</xpath>
2013-11-07 14:39:59 +00:00
<xpath expr= "//div[@id='products_grid_before']" position= "attributes" >
<attribute name= "class" > col-md-3</attribute>
</xpath>
<xpath expr= "//div[@id='products_grid']" position= "attributes" >
<attribute name= "class" > col-md-9</attribute>
</xpath>
2013-10-15 08:27:26 +00:00
</template>
2013-09-22 17:27:27 +00:00
2013-11-07 16:29:16 +00:00
<template id= "suggested_products_list" inherit_id= "website_sale.mycart" inherit_option_id= "website_sale.mycart" name= "Suggested Products in my cart" >
2013-08-19 10:41:44 +00:00
<xpath expr= "//table[@id='mycart_products']" position= "after" >
2013-09-30 22:51:05 +00:00
<table t-if= "suggested_products" class= 'table table-striped table-condensed' >
2013-08-19 10:41:44 +00:00
<colgroup >
<col width= "80" />
2013-09-30 22:51:05 +00:00
<col />
<col width= "100" />
<col width= "120" />
2013-08-19 10:41:44 +00:00
</colgroup>
<thead >
<tr >
2013-09-30 22:51:05 +00:00
<th colspan= "2" > Suggested products</th>
2013-08-19 10:41:44 +00:00
</tr>
</thead>
<tbody >
2013-09-30 22:51:05 +00:00
<tr t-foreach= "suggested_products" t-as= "product" >
<td >
2013-12-02 12:57:23 +00:00
<a t-href= "/shop/product/#{ slug(product.product_tmpl_id) }/" >
2013-10-08 12:04:56 +00:00
<span t-field= "product.image_small"
t-field-options='{"widget": "image", "class": "img-rounded"}'/>
2013-09-30 22:51:05 +00:00
</a>
</td>
<td >
<div >
2013-12-02 12:57:23 +00:00
<a t-href= "/shop/product/#{ slug(product.product_tmpl_id) }/" >
2013-09-30 22:51:05 +00:00
<strong t-field= "product.name" />
</a>
</div>
<div class= "text-muted" t-field= "product.description_sale" />
</td>
<td >
2013-10-11 13:11:47 +00:00
<span t-field= "product.lst_price" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
2013-09-30 22:51:05 +00:00
</td>
<td class= "text-center" >
2013-12-03 15:44:22 +00:00
<a t-href= "./add_cart/#{ product.id }/" > <strong > Add to Cart</strong> </a>
2013-09-30 22:51:05 +00:00
</td>
</tr>
2013-08-19 10:41:44 +00:00
</tbody>
</table>
</xpath>
</template>
2013-09-30 22:51:05 +00:00
<template id= "reduction_code" inherit_option_id= "website_sale.mycart" name= "Reduction Code" >
<xpath expr= "//div[@id='right_column']" position= "inside" >
<h4 > Coupon Code</h4>
<p >
Have a coupon code? Fill in this field and apply.
</p>
2013-11-12 14:44:42 +00:00
<form t-if= "website_sale_order and website_sale_order.order_line" action= "/shop/mycart/" method= "post" class= "mb32" >
2013-09-30 22:51:05 +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" >
<button class= "btn btn-default" > Apply</button>
2013-08-19 10:41:44 +00:00
</div>
</div>
</form>
</xpath>
</template>
2013-07-23 08:18:13 +00:00
<!-- Page confirm my cart -->
<template id= "checkout" >
<t t-call= "website.layout" >
2013-09-15 17:25:37 +00:00
<t t-set= "head" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
2013-09-30 22:51:05 +00:00
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_sale.css' />
2013-09-15 17:25:37 +00:00
<t t-raw= "head or ''" />
</t>
2013-10-10 13:29:07 +00:00
<t t-set= "additional_title" > Shop - Checkout</t>
2013-09-15 17:25:37 +00:00
<div id= "wrap" >
2013-08-29 20:45:53 +00:00
<div class= "container oe_website_sale" >
2013-09-30 22:51:05 +00:00
<ul class= "wizard pull-right" >
<li > <a href= "/shop/mycart" class= "text-success" > Review Order<span class= "chevron" > </span> </a> </li>
<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>
2013-11-12 14:44:42 +00:00
<form action= "/shop/confirm_order/" method= "post" >
2013-09-30 22:51:05 +00:00
2013-07-23 08:18:13 +00:00
<div class= "row" >
2013-09-30 22:51:05 +00:00
<div class= "col-md-8 oe_mycart" >
2013-10-24 09:20:57 +00:00
<h3 class= "page-header mt16" > Billing Information
2013-10-21 13:39:57 +00:00
<small t-if= "user_id.id == website.public_user.id" > or
2013-11-05 15:56:27 +00:00
<a t-if= "not partner" t-attf-href= "/web#action=redirect&url=#{ request.httprequest.url }" > sign in</a>
2013-09-30 22:51:05 +00:00
</small>
</h3>
<div class= "row" >
<div t-attf-class= "form-group #{error.get('name') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Your Name</label>
2013-10-01 09:51:17 +00:00
<input type= "text" name= "name" class= "form-control" t-att-value= "checkout.get('name')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('company') and 'has-error' or ''} col-lg-6" >
2013-10-10 08:51:41 +00:00
<label class= "control-label" for= "company" style= "font-weight: normal" > Your Company</label>
2013-10-01 09:51:17 +00:00
<input type= "text" name= "company" class= "form-control" t-att-value= "checkout.get('company')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('email') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Email</label>
2013-10-01 09:51:17 +00:00
<input type= "email" name= "email" class= "form-control" t-att-value= "checkout.get('email')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6" >
2013-11-05 15:56:27 +00:00
<label class= "control-label" for= "phone" > Phone</label>
2013-10-01 09:51:17 +00:00
<input type= "tel" name= "phone" class= "form-control" t-att-value= "checkout.get('phone')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('street') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "street" > Street</label>
2013-10-01 09:51:17 +00:00
<input type= "text" name= "street" class= "form-control" t-att-value= "checkout.get('street')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div class= "clearfix" />
<div t-attf-class= "form-group #{error.get('city') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "city" > City</label>
2013-10-01 09:51:17 +00:00
<input type= "text" name= "city" class= "form-control" t-att-value= "checkout.get('city')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('zip') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "zip" > Zip / Postal Code</label>
2013-10-01 09:51:17 +00:00
<input type= "text" name= "zip" class= "form-control" t-att-value= "checkout.get('zip')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6" >
2013-10-10 08:51:41 +00:00
<label class= "control-label" for= "state_id" style= "font-weight: normal" > State / Province</label>
2013-09-30 22:51:05 +00:00
<select name= "state_id" class= "form-control" >
<option value= "" > select...</option>
<t t-foreach= "states or []" t-as= "state" >
2013-10-01 09:51:17 +00:00
<option t-att-value= "state.id" t-att-selected= "state.id == checkout.get('state_id')" > <t t-esc= "state.name" /> </option>
2013-09-30 22:51:05 +00:00
</t>
</select>
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Country</label>
2013-09-30 22:51:05 +00:00
<select name= "country_id" class= "form-control" >
<option value= "" > Country...</option>
<t t-foreach= "countries or []" t-as= "country" >
2013-10-01 09:51:17 +00:00
<option t-att-value= "country.id" t-att-selected= "country.id == checkout.get('country_id')" > <t t-esc= "country.name" /> </option>
2013-09-30 22:51:05 +00:00
</t>
</select>
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div class= "clearfix" />
<div class= "form-group col-lg-6" >
<label >
<input t-if= "not shipping" type= "checkbox" name= "shipping_different" />
<input t-if= "shipping" type= "checkbox" name= "shipping_different" checked= "1" />
Ship to a different address
</label>
2013-08-13 10:39:48 +00:00
</div>
2013-07-23 08:18:13 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div class= "js_shipping row mb16" t-att-style= "not shipping and 'display:none' or ''" >
<h3 class= "oe_shipping col-lg-12 mt16" > Shipping Information</h3>
<div t-attf-class= "form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Name (Shipping)</label>
2013-09-30 22:51:05 +00:00
<input type= "text" name= "shipping_name" class= "form-control" t-att-value= "checkout.get('shipping_name', '')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6" >
2013-11-05 15:56:27 +00:00
<label class= "control-label" for= "contact_name" > Phone</label>
2013-09-30 22:51:05 +00:00
<input type= "tel" name= "shipping_phone" class= "form-control" t-att-value= "checkout.get('shipping_phone', '')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Street</label>
2013-09-30 22:51:05 +00:00
<input type= "text" name= "shipping_street" class= "form-control" t-att-value= "checkout.get('shipping_street', '')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div class= "clearfix" />
<div t-attf-class= "form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > City</label>
2013-09-30 22:51:05 +00:00
<input type= "text" name= "shipping_city" class= "form-control" t-att-value= "checkout.get('shipping_city', '')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Zip / Postal Code</label>
2013-09-30 22:51:05 +00:00
<input type= "text" name= "shipping_zip" class= "form-control" t-att-value= "checkout.get('shipping_zip', '')" />
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6" >
2013-10-10 08:51:41 +00:00
<label class= "control-label" for= "contact_name" style= "font-weight: normal" > State / Province</label>
2013-09-30 22:51:05 +00:00
<select name= "shipping_state_id" class= "form-control" >
<option value= "" > State / Province...</option>
<t t-foreach= "states or []" t-as= "state" >
<option t-att-value= "state.id" t-att-selected= "state.id == checkout.get('shipping_state_id')" > <t t-esc= "state.name" /> </option>
</t>
</select>
2013-08-13 10:39:48 +00:00
</div>
2013-09-30 22:51:05 +00:00
<div t-attf-class= "form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6" >
2013-10-03 11:27:20 +00:00
<label class= "control-label" for= "contact_name" > Country</label>
2013-09-30 22:51:05 +00:00
<select name= "shipping_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('shipping_country_id')" > <t t-esc= "country.name" /> </option>
</t>
</select>
2013-08-13 10:39:48 +00:00
</div>
2013-07-23 08:18:13 +00:00
</div>
2013-12-03 14:16:32 +00:00
<button type= "submit" class= "btn btn-default btn-primary pull-right mb32" > Confirm <span class= "fa fa-long-arrow-right" /> </button>
2013-09-30 22:51:05 +00:00
</div>
<div class= "col-lg-offset-1 col-lg-3 text-muted" >
2013-12-03 14:16:32 +00:00
<h3 class= "page-header mt16" > Your Order <small > <a href= "/shop/mycart" > <span class= "fa fa-arrow-right" /> change</a> </small> </h3>
2013-09-30 22:51:05 +00:00
<div class= "row" >
<div class= "col-sm-6 text-right" > Subtotal:</div>
2013-10-11 13:11:47 +00:00
<div class= "col-sm-6" > <span t-esc= "website_sale_order.amount_untaxed" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/></div>
2013-09-30 22:51:05 +00:00
<div class= "col-sm-6 text-right" > Taxes:</div>
2013-10-11 13:11:47 +00:00
<div class= "col-sm-6" > <span t-field= "website_sale_order.amount_tax" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/></div>
2013-09-30 22:51:05 +00:00
<div class= "col-sm-6 text-right" > <h4 > Total To Pay:</h4> </div>
2013-10-11 13:11:47 +00:00
<div class= "col-sm-6" > <h4 > <span t-field= "website_sale_order.amount_total" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/></h4> </div>
2013-09-30 22:51:05 +00:00
</div>
2013-08-08 14:23:41 +00:00
</div>
</div>
2013-09-30 22:51:05 +00:00
</form>
</div>
2013-09-15 17:25:37 +00:00
</div>
2013-08-08 14:23:41 +00:00
</t>
</template>
<template id= "payment" >
<t t-call= "website.layout" >
2013-09-30 22:51:05 +00:00
<t t-set= "head" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
2013-11-15 13:34:14 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_payment.js" > </script>
2013-09-30 22:51:05 +00:00
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_sale.css' />
<t t-raw= "head or ''" />
</t>
2013-10-10 13:29:07 +00:00
<t t-set= "additional_title" > Shop - Select Payment Mode</t>
2013-09-30 22:51:05 +00:00
<div id= "wrap" >
<div class= "container oe_website_sale" >
<ul class= "wizard pull-right" >
<li > <a href= "/shop/mycart" class= "text-success" > Review Order<span class= "chevron" > </span> </a> </li>
<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>
2013-08-08 14:23:41 +00:00
<div class= "row" >
2013-11-16 22:43:06 +00:00
<div class= "col-lg-8 col-sm-9 oe_mycart" >
2013-09-30 22:51:05 +00:00
<table class= 'table table-striped table-condensed' id= "mycart_products" t-if= "website_sale_order and website_sale_order.order_line" >
<colgroup >
<col width= "80" />
<col />
<col width= "100" />
<col width= "120" />
</colgroup>
<thead >
<tr >
<th colspan= "2" > Product</th>
<th > Price</th>
<th > Quantity</th>
</tr>
</thead>
<tbody >
<tr t-foreach= "website_sale_order.order_line" t-as= "line" >
<td colspan= "2" t-if= "not line.product_id.product_tmpl_id" > </td>
<td t-if= "line.product_id.product_tmpl_id" >
2013-12-02 12:57:23 +00:00
<a t-href= "/shop/product/#{ slug(line.product_id.product_tmpl_id) }/" >
2013-10-08 12:04:56 +00:00
<span t-field= "line.product_id.image_small"
t-field-options='{"widget": "image", "class": "img-rounded"}'/>
</a>
2013-09-30 22:51:05 +00:00
</td>
<td t-if= "line.product_id.product_tmpl_id" >
<strong t-field= "line.product_id.name" />
</td>
<td class= "text-center" >
2013-10-11 13:11:47 +00:00
<span t-field= "line.price_unit" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
2013-09-30 22:51:05 +00:00
</td>
<td >
<div t-esc= "line.product_uom_qty" />
</td>
</tr>
</tbody>
</table>
<table class= 'pull-right mb16' id= "mycart_total" >
<colgroup >
<col width= "100" />
<col width= "120" />
</colgroup>
<thead >
<tr style= "border-top: 1px solid #000" >
<th > <h3 > Total:</h3> </th>
2013-10-11 13:11:47 +00:00
<th class= "text-right" > <h3 > <span t-field= "website_sale_order.amount_total" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/></h3> </th>
2013-09-30 22:51:05 +00:00
</tr>
<tr class= "text-muted" >
2013-11-16 22:43:06 +00:00
<td > Incl. Taxes:</td>
2013-10-11 13:11:47 +00:00
<td class= "text-right" > <span t-field= "website_sale_order.amount_tax" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/></td>
2013-09-30 22:51:05 +00:00
</tr>
</thead>
</table>
<div class= "clearfix" />
<div class= "oe_structure" />
</div>
2013-11-16 22:43:06 +00:00
<div class= "col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id= "right_column" >
2013-09-30 22:51:05 +00:00
<h4 > Bill To:</h4>
<div t-field= "website_sale_order.partner_invoice_id" />
<div >
2013-12-03 14:16:32 +00:00
<a href= "/shop/checkout" > <span class= "fa fa-arrow-right" /> Change Address</a>
2013-09-30 22:51:05 +00:00
</div>
<h4 class= "mt32" > Ship To:</h4>
<div t-field= "website_sale_order.partner_shipping_id" />
<div >
2013-12-03 14:16:32 +00:00
<a href= "/shop/checkout" > <span class= "fa fa-arrow-right" /> Change Address</a>
2013-09-30 22:51:05 +00:00
</div>
</div>
</div>
2013-12-04 13:06:28 +00:00
<div class= "js_payment mb64" t-if= "acquirers" id= "payment_method" >
2013-12-02 15:02:18 +00:00
<h3 > Choose your payment method</h3>
<div class= "col-lg-5 col-sm-6" >
2013-12-04 13:06:28 +00:00
<t t-foreach= "acquirers or []" t-as= "acquirer" >
<label t-if= "acquirer.button" class= "oe_sale_acquirer_logo" style= "display: block;" >
<input t-att-value= "acquirer.id" type= "radio" name= "acquirer" />
<img class= "media-object" style= "width: 60px; display: inline-block;"
t-att-title="acquirer.name"
t-att-src="'/payment_acquirer_%s/static/src/img/%s_icon.png' % (acquirer.name, acquirer.name)"/>
2013-11-20 14:03:21 +00:00
</label>
2013-09-30 22:51:05 +00:00
</t>
2013-12-02 15:02:18 +00:00
</div>
<div class= "col-lg-3 col-sm-3" >
2013-12-04 13:06:28 +00:00
<t t-foreach= "acquirers or []" t-as= "acquirer" >
<div t-att-data-id= "acquirer.id" t-raw= "acquirer.button" class= "oe_sale_acquirer_button hidden" />
</t>
2013-07-22 10:28:57 +00:00
</div>
2013-07-23 08:18:13 +00:00
</div>
2013-09-30 22:51:05 +00:00
2013-10-17 11:00:46 +00:00
</div>
<div class= "oe_structure" />
</div>
</t>
</template>
<template id= "confirmation" >
<t t-call= "website.layout" >
<t t-set= "head" >
<link rel= 'stylesheet' href= '/website_sale/static/src/css/website_sale.css' />
2013-11-19 16:01:29 +00:00
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale_validate.js" > </script>
2013-10-17 11:00:46 +00:00
<t t-raw= "head or ''" />
</t>
<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>
2013-11-21 12:09:02 +00:00
<h1 class= "mb32" > Order Confirmed</h1>
2013-10-17 11:00:46 +00:00
<div class= "row" >
2013-11-21 12:09:02 +00:00
<div class= "col-md-8 oe_mycart" >
<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" >
<h4 > Bill To:</h4>
<div t-field= "order.partner_invoice_id" />
2013-10-17 11:00:46 +00:00
2013-11-21 12:09:02 +00:00
<h4 class= "mt32" > Ship To:</h4>
<div t-field= "order.partner_shipping_id" />
2013-10-17 11:00:46 +00:00
2013-11-21 12:09:02 +00:00
<h4 class= "mt32" > Amount:</h4>
2013-12-04 14:10:56 +00:00
<!-- <div t - field="order.amount_total" t - field - options='{
2013-11-21 12:09:02 +00:00
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/> -->
</div>
2013-11-19 16:01:29 +00:00
</div>
2013-10-17 11:00:46 +00:00
2013-09-30 22:51:05 +00:00
</div>
<div class= "oe_structure" />
2013-07-23 08:18:13 +00:00
</div>
2013-09-30 22:51:05 +00:00
2013-07-23 08:18:13 +00:00
</t>
</template>
2013-11-05 13:27:47 +00:00
<template id= "total" >
<span t-field= "website_sale_order.amount_total" t-field-options= '{
"widget": "monetary",
"display_currency": "website.pricelist_id.currency_id"
}'/>
</template>
2013-07-23 08:18:13 +00:00
</data>
2013-07-01 00:20:54 +00:00
</openerp>