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-09-04 09:54:05 +00:00
<record id= "product_normal_form_view" model= "ir.ui.view" >
<field name= "name" > product.normal.form.inherit</field>
<field name= "model" > product.product</field>
<field name= "inherit_id" ref= "product.product_normal_form_view" />
<field name= "arch" type= "xml" >
<!-- add state field in header -->
<xpath expr= "//sheet" position= "before" >
<div class= "oe_form_box_info oe_text_center" attrs= "{'invisible': [('sale_ok', '=', False)]}" >
2013-09-04 14:01:38 +00:00
<p attrs= "{'invisible': [('website_published', '=', True)]}" >
2013-09-04 09:54:05 +00:00
This product is <b > not available</b> for public user in your ecommerce.
</p>
2013-09-04 14:01:38 +00:00
<p attrs= "{'invisible': [('website_published', '=', False)]}" >
2013-09-04 09:54:05 +00:00
This product is <b > available</b> for public user in your ecommerce.
</p>
<p > Website view: <field class= "oe_inline" name= "website_url" widget= "url" /> </p>
</div>
</xpath>
<group name= "sale" position= "inside" >
<group name= "website" string= "Website" >
<field name= "website_published" />
<field name= "suggested_product_ids" widget= "many2many_tags" />
2013-09-26 11:18:54 +00:00
<field name= "website_style_ids" widget= "many2many_tags" />
2013-09-04 09:54:05 +00:00
</group>
</group>
</field>
</record>
2013-08-12 09:12:49 +00:00
<record model= "ir.ui.view" id= "product_pricelist_view" >
<field name= "name" > product.pricelist.website.form</field>
<field name= "model" > product.pricelist</field>
<field name= "inherit_id" ref= "product.product_pricelist_view" />
<field name= "arch" type= "xml" >
<field name= "active" position= "after" >
<field name= "code" />
</field>
</field>
</record>
2013-07-23 08:18:13 +00:00
<!-- Layout add nav and footer -->
2013-09-05 09:29:27 +00:00
<template id= "header_footer" inherit_id= "website.layout" name= "Custom Footer" >
2013-09-18 14:50:28 +00:00
<xpath expr= "//header//ul[@id='top_menu']/li" position= "before" >
2013-09-26 14:54:48 +00:00
<li > <a t-href= "/shop/" > Shop</a> </li>
2013-08-12 09:32:55 +00:00
<li >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/mycart/" >
2013-08-12 09:32:55 +00:00
<i class= "icon-shopping-cart" > </i>
2013-09-10 14:15:02 +00:00
My cart <span t-attf-class= "my_cart_quantity badge #{(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''}"
t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
2013-09-05 09:29:27 +00:00
</a>
</li>
</xpath>
2013-09-18 14:50:28 +00:00
<xpath expr= "//footer//ul[@name='products']" position= "inside" >
2013-09-26 14:54:48 +00:00
<li > <a t-href= "/shop/" > Shop</a> </li>
2013-09-05 09:29:27 +00:00
<li >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/mycart/" >
2013-09-05 09:29:27 +00:00
<i class= "icon-shopping-cart" > </i>
2013-09-10 14:15:02 +00:00
My cart <span t-attf-class= "my_cart_quantity badge #{(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''}"
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-08-12 16:31:23 +00:00
<!-- List of categories -->
2013-08-06 09:23:44 +00:00
2013-07-23 08:18:13 +00:00
<template id= "categories_recursive" >
2013-08-20 14:12:03 +00:00
<li t-att-class= "category.id == category_id and 'active' or ''" >
2013-09-26 14:54:48 +00:00
<a t-att-class= "category.id not in categ[1] and 'unpublish' or ''" 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-09-24 10:28:34 +00:00
<t t-if= "category.id in categ[1] or editable" >
<t t-call= "website_sale.categories_recursive" />
</t>
2013-07-02 09:41:38 +00:00
</t>
2013-07-23 08:18:13 +00:00
</ul>
</li>
</template>
<!-- Product list -->
2013-09-25 18:05:38 +00:00
<template id= "products_cart" >
2013-09-29 15:34:20 +00:00
<div class= "ribbon-wrapper" >
<div class= "ribbon" > Promo</div>
</div>
2013-09-25 18:05:38 +00:00
<div class= "oe_product_description" >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&category_id=%s' % category_id) or ''}" >
2013-09-25 18:05:38 +00:00
<b t-field= "product.name" />
</a>
2013-09-26 09:18:25 +00:00
<div class= "product_price" >
2013-09-25 18:05:38 +00:00
<b >
<t t-if= "product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price" >
<span class= "text-danger" style= "text-decoration: line-through;" >
<t t-esc= "product.product_variant_ids[0].lst_price" /> €
</span> & nbsp;
</t>
<t t-esc= "product.product_variant_ids[0].price" /> €
</b>
</div>
</div>
<div class= "oe_product_image text-center" >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&category_id=%s' % category_id) or ''}" >
2013-09-25 18:05:38 +00:00
<img class= "img" t-att-src= "product.img('image')" />
</a>
</div>
</template>
2013-08-21 12:13:58 +00:00
<template id= "products" page= "True" >
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-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-09-22 17:27:27 +00:00
<t t-set= "title" > Our Products</t>
<div id= "wrap" >
<div class= "oe_structure" />
<div class= "container oe_website_sale" >
2013-09-19 05:54:25 +00:00
<div class= "row" >
<div class= "col-sm-4" >
2013-09-22 20:57:37 +00:00
<h1 > Our Products</h1>
2013-09-29 16:06:35 +00:00
</div> <div class= "col-sm-2 pagination text-center" >
<a t-if= "editable" t-href= "/shop/#{ category_id and ('category/%s/' % category_id) or ''}add_product/" class= "btn btn-primary btn-default" > New Product</a>
</div> <div class= "col-sm-6" >
<t t-call= "website.pager" >
<t t-set= "classname" > pull-right</t>
</t>
<form t-action= "/shop/#{ category_id and ('category/%s/' % category_id) or ''}" method= "get" class= "pull-right pagination form-inline" style= "padding-right: 5px;" >
<div class= "form-group" >
2013-09-22 19:33:56 +00:00
<input type= "text" name= "search" class= "search-query form-control" placeholder= "Search..." t-att-value= "search or ''" />
2013-09-21 23:28:27 +00:00
</div>
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-09-26 07:56:50 +00:00
<div class= "col-md-12" id= "products_grid" >
<table width= "100%" >
<colgroup >
<col style= "width: 1px; margin-right: -1px;" />
<col class= "col-md-3" />
<col class= "col-md-3" />
<col class= "col-md-3" />
<col class= "col-md-3" />
</colgroup>
<tbody >
<t t-set= "table_products" t-value= "get_bin_packing_products(product_ids, product_ids_for_holes, 4)" />
<tr t-foreach= "table_products" t-as= "tr_product" >
<td class= "oe-height-2" > </td>
<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']"
t-att-rowspan="td_product['y']"
t-attf-class="oe_product #{ td_product['class'] }"
t-att-data-publish="product.website_published and 'on' or 'off'">
2013-09-27 10:31:48 +00:00
<div class= "css_options" t-ignore= "true" >
<div t-attf-class= "dropdown js_options" t-att-data-id= "product.id" >
2013-09-29 16:06:35 +00:00
<a class= "btn btn-default" t-att-id= "'dopprod-%s' % product.id" role= "button" data-toggle= "dropdown" > Options <span class= "caret" > </span> </a>
2013-09-27 10:31:48 +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.id in [s.id for s in product.website_style_ids] 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>
</ul>
</div>
</div>
2013-09-26 07:56:50 +00:00
<t t-call= "website_sale.products_cart" />
</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>
</div>
2013-08-05 12:38:36 +00:00
</div>
2013-08-14 09:53:17 +00:00
<div class= "text-center" >
2013-08-12 13:43:12 +00:00
<t t-call= "website.pager" />
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" >
<xpath expr= "//div[@class='product_price']" position= "before" >
<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-09-26 14:54:48 +00:00
<a t-href= "./add_cart/?product_id=#{ product.id }" >
2013-09-23 11:14:41 +00:00
<span class= "icon-shopping-cart" />
</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-09-26 07:56:50 +00:00
<xpath expr= "//div[@id='products_grid']/table" position= "replace" >
<div class= "row" >
2013-09-26 07:46:44 +00:00
<t t-set= "products" t-value= "get_products(product_ids)" />
<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-07-23 08:18:13 +00:00
<!-- product -->
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-09-22 17:27:27 +00:00
<t t-set= "title" t-raw= "product.name" />
<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-09-26 14:54:48 +00:00
<li > <a t-href= "/shop" > Products</a> </li>
2013-09-27 10:31:48 +00:00
<li t-if= "category" > <a t-att-href= "'/shop/category/%s' % (category_id,)" > <span t-field= "category.name" /> </a> </li>
2013-09-27 12:44:06 +00:00
<li class= "active" > <span t-field= "product.name" > </span> </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" />
<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-09-26 14:54:48 +00:00
<form t-action= "/shop/#{ category_id and ('category/%s/' % category_id) or ''}" method= "get" class= "pull-right" >
2013-09-22 19:33:56 +00:00
<div class= "input-group" >
<span class= "input-group-addon" > <span class= "glyphicon glyphicon-search" /> </span>
<input type= "text" name= "search" class= "search-query form-control" placeholder= "Search..." t-att-value= "search or ''" />
</div>
</form>
</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" >
<img class= "img" t-att-src= "product.img('image')" style= "max-height: 500px" />
</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-09-26 14:54:48 +00:00
<form t-action= "./add_cart/" >
2013-09-22 19:33:56 +00:00
<input type= "hidden" t-if= "len(product.product_variant_ids) <= 1" name= "product_id" t-att-value= "product.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= "product" >
<input type= "radio" name= "product_id" t-att-value= "product.id" t-att-checked= "product == product.product_variant_ids[0] or None" />
<t t-esc= "product.variants or ''" > Standard</t>
<span class= "badge" t-if= "product.price_extra" >
<t t-esc= "product.price_extra > 0 and '+' or ''" /> <t t-esc= "product.price_extra" /> €
</span>
</label>
<br />
</t>
<div >
<t t-if= "product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price" >
2013-09-27 14:46:36 +00:00
<h5 class= "text-danger" style= "text-decoration: line-through;" title= "Price without reduction" > <span t-field= "product.product_variant_ids[0].lst_price" /> €</h5>
2013-09-22 19:33:56 +00:00
<h4 > <t t-esc= "product.product_variant_ids[0].price" /> €</h4>
</t>
<h4 t-if= "product.product_variant_ids[0].lst_price == product.product_variant_ids[0].price" >
2013-09-25 11:28:03 +00:00
<b > <span t-field= "product.product_variant_ids[0].lst_price" /> €</b>
2013-09-22 19:33:56 +00:00
</h4>
</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' >
<img t-att-src= "product.img('image_small')" />
<h5 >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ product.id }/"
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
<!-- Page Shop my cart -->
2013-08-21 14:38:16 +00:00
<template id= "mycart" name= "My cart" page= "True" >
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>
<t t-raw= "head or ''" />
</t>
<t t-set= "title" > Your Cart</t>
<div id= "wrap" >
<div class= "container oe_website_sale" >
2013-08-26 11:05:31 +00:00
<div class= "col-md-12 oe_mycart" >
2013-08-29 20:45:53 +00:00
<h1 > My Shopping Cart</h1>
2013-08-23 09:40:17 +00:00
<table class= 'table' id= "mycart_products" >
2013-08-19 10:41:44 +00:00
<colgroup >
<col width= "80" />
<col />
<col width= "80" />
<col width= "160" />
</colgroup>
2013-08-12 16:31:23 +00:00
<thead >
2013-08-13 10:39:48 +00:00
<tr >
2013-08-19 10:41:44 +00:00
<th colspan= "2" > Product</th>
<th > Price</th>
<th > Quantity</th>
2013-08-13 10:39:48 +00:00
</tr>
2013-08-12 16:31:23 +00:00
</thead>
2013-09-10 14:15:02 +00:00
<tbody t-if= "not website_sale_order or not website_sale_order.order_line" >
2013-08-13 10:39:48 +00:00
<tr > <td colspan= "4" > <h3 > Your cart is empty</h3> </td> </tr>
</tbody>
2013-09-10 14:15:02 +00:00
<tbody t-if= "website_sale_order and website_sale_order.order_line" >
<t t-foreach= "website_sale_order.order_line" t-as= "line" >
2013-08-12 16:31:23 +00:00
<tr >
2013-09-02 10:46:46 +00:00
<td colspan= "2" t-if= "not line.product_id.product_tmpl_id" > </td>
<td t-if= "line.product_id.product_tmpl_id" >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ line.product_id.product_tmpl_id.id }/" > <img class= "img-rounded" t-att-src= "line.product_id.img('image_small')" /> </a>
2013-08-12 16:31:23 +00:00
</td>
2013-09-02 10:46:46 +00:00
<td t-if= "line.product_id.product_tmpl_id" >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ line.product_id.product_tmpl_id.id }/" > <span t-field= "line.name" /> </a> <br />
2013-08-13 10:39:48 +00:00
<small t-field= "line.product_id.description_sale" />
2013-08-12 16:31:23 +00:00
</td>
<td >
2013-09-02 10:46:46 +00:00
<t t-if= "line.product_id.product_tmpl_id and line.product_id.lst_price != line.price_unit" >
<small class= "text-error" style= "text-decoration: line-through;" > <t t-esc= "line.product_id.lst_price" /> €</small>
</t>
2013-08-23 09:40:17 +00:00
<span t-field= "line.price_unit" > </span> €
2013-08-12 16:31:23 +00:00
</td>
<td >
2013-08-29 20:45:53 +00:00
<div class= "pull-right" >
2013-09-02 10:46:46 +00:00
<input type= "text" class= "js_quantity input-sm col-md-5" t-att-data-id= "line.id" t-att-value= "line.product_uom_qty" />
2013-09-26 14:54:48 +00:00
<a t-href= "./remove_cart/?order_line_id=#{ line.id }" t-att-data-id= "line.id" class= "btn btn-default mb8 btn-sm btn-inverse" > -</a>
<a t-href= "./add_cart/?order_line_id=#{ line.id }" t-att-data-id= "line.id" class= "btn btn-default mb8 btn-sm btn-success" > +</a>
2013-08-12 16:31:23 +00:00
</div>
</td>
</tr>
</t>
</tbody>
</table>
2013-08-19 10:41:44 +00:00
<table class= 'table table-hover table-condensed' id= "mycart_total" >
<colgroup >
<col width= "80" />
<col />
<col width= "80" />
<col width= "160" />
</colgroup>
<thead >
2013-09-10 14:15:02 +00:00
<tr > <th colspan= "3" > Subtotal </th> <th > <t t-esc= "website_sale_order and website_sale_order.amount_untaxed or 0" /> €</th> </tr>
<tr > <th colspan= "3" > Taxes </th> <th > <t t-esc= "website_sale_order and website_sale_order.amount_tax or 0" /> €</th> </tr>
<tr > <th colspan= "3" > <h4 > Total</h4> </th> <th > <h4 > <t t-esc= "website_sale_order and website_sale_order.amount_total or 0" /> €</h4> </th> </tr>
2013-08-19 10:41:44 +00:00
</thead>
</table>
2013-09-26 14:54:48 +00:00
<a t-if= "website_sale_order and website_sale_order.order_line" t-href= "/shop/checkout/" class= "btn btn-success" > Proceed To Payment</a>
2013-08-05 12:38:36 +00:00
</div>
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
<!-- Page Shop -->
<template id= "products_categories" inherit_option_id= "website_sale.products" name= "Product Categories" >
<xpath expr= "//div[@id='products_grid']" position= "before" >
<div class= "col-md-3" >
<ul class= "nav nav-pills nav-stacked mt16" >
2013-09-26 14:54:48 +00:00
<li t-att-class= " '' if category_id else 'active' " > <a t-href= "/shop/" > All Products</a> </li>
2013-09-24 10:28:34 +00:00
<t t-set= "categ" t-value= "get_categories()" />
<t t-foreach= "categ[0]" t-as= "category" >
2013-09-22 17:27:27 +00:00
<t t-call= "website_sale.categories_recursive" />
</t>
</ul>
</div>
</xpath>
<xpath expr= "//div[@id='products_grid']" position= "attributes" >
<attribute name= "class" > col-md-9</attribute>
</xpath>
</template>
2013-08-19 10:41:44 +00:00
<template id= "suggested_products_list" inherit_id= "website_sale.mycart" inherit_option_id= "website_sale.mycart" name= "Suggested Products in list view" >
<xpath expr= "//table[@id='mycart_products']" position= "after" >
<table t-if= "suggested_products" class= 'table table-hover table-condensed' >
<colgroup >
<col />
<col width= "80" />
<col width= "160" />
</colgroup>
<thead >
<tr >
<th > Suggested products</th>
</tr>
</thead>
<tbody >
2013-08-21 14:09:53 +00:00
<t t-foreach= "suggested_products" t-as= "product" >
2013-08-19 10:41:44 +00:00
<tr >
<td >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ product.id }/" > <span t-field= "product.name" /> </a> <br />
2013-08-21 14:09:53 +00:00
<small t-field= "product.description_sale" />
2013-08-19 10:41:44 +00:00
</td>
<td >
2013-08-21 14:09:53 +00:00
<span t-field= "product.list_price" > </span> €
2013-08-19 10:41:44 +00:00
</td>
<td >
<div class= "pull-right" >
2013-09-26 14:54:48 +00:00
<a t-href= "./add_cart/?product_id=#{ product.id }" class= "btn btn-sm btn-success" > +</a>
2013-08-19 10:41:44 +00:00
</div>
</td>
</tr>
</t>
</tbody>
</table>
</xpath>
</template>
<template id= "suggested_products_cell" inherit_option_id= "website_sale.mycart" name= "Suggested Products in card view" >
<xpath expr= "//table[@id='mycart_products']" position= "after" >
<div class= "mt16 mb32" t-if= "suggested_products" >
<h4 > Suggested products</h4>
<div class= 'row mt16' >
<t t-foreach= "suggested_products" t-as= "product" >
2013-08-26 05:44:41 +00:00
<div class= 'col-md-2 thumbnail' >
2013-09-24 11:24:02 +00:00
<div class= 'mt16 text-center' >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ product.id }/" >
2013-08-26 09:26:41 +00:00
<img t-att-src= "product.img('image_small')" />
2013-09-24 11:24:02 +00:00
</a>
<h5 >
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/product/#{ product.id }/" style= "display: block;" >
2013-09-24 11:24:02 +00:00
<span t-field= "product.name" />
</a>
</h5>
</div>
2013-08-19 10:41:44 +00:00
</div>
</t>
</div>
</div>
</xpath>
</template>
<template id= "reduction_code" inherit_option_id= "website_sale.mycart" name= "Reduction Code" >
<xpath expr= "//table[@id='mycart_total']" position= "after" >
2013-09-26 14:54:48 +00:00
<form t-if= "website_sale_order and website_sale_order.order_line" class= "well" t-action= "/shop/mycart/" method= "post" >
2013-09-10 14:15:02 +00:00
<input name= "promo" class= 'input' type= "text" placeholder= "Reduction Code..." t-att-value= "website_sale_order.pricelist_id.code or ''" />
2013-08-19 10:41:44 +00:00
<button class= "btn" > Apply Code</button>
</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>
<t t-raw= "head or ''" />
</t>
<t t-set= "title" > Shop - Checkout</t>
<div id= "wrap" >
2013-08-29 20:45:53 +00:00
<div class= "container oe_website_sale" >
2013-07-23 08:18:13 +00:00
<div class= "row" >
2013-08-26 05:44:41 +00:00
<div class= "col-md-4" >
2013-08-13 10:39:48 +00:00
<table class= "table table-condensed" >
2013-07-23 08:18:13 +00:00
<thead >
2013-08-13 10:39:48 +00:00
<tr >
<th > Product</th>
<th > Price</th>
<th > Qty.</th>
</tr>
2013-07-23 08:18:13 +00:00
</thead>
2013-09-10 14:15:02 +00:00
<tbody t-if= "website_sale_order.order_line" >
<t t-foreach= "website_sale_order.order_line" t-as= "line" >
2013-07-24 09:42:18 +00:00
<tr >
2013-08-23 09:40:17 +00:00
<td > <t t-esc= "line.name" /> </td>
2013-08-13 10:39:48 +00:00
<td > <t t-esc= "line.product_uom_qty" /> </td>
2013-08-23 09:40:17 +00:00
<td > <t t-esc= "line.price_unit" /> €</td>
2013-07-24 09:42:18 +00:00
</tr>
2013-07-23 08:18:13 +00:00
</t>
2013-08-13 10:39:48 +00:00
</tbody>
<tfoot >
2013-09-10 14:15:02 +00:00
<tr > <th > Untaxed Amount</th> <td > </td> <td > <t t-esc= "website_sale_order.amount_untaxed" /> €</td> </tr>
<tr > <th > Taxes</th> <td > </td> <td > <t t-esc= "website_sale_order.amount_tax" /> €</td> </tr>
<tr > <th > Total</th> <td > </td> <td > <t t-esc= "website_sale_order.amount_total" /> €</td> </tr>
2013-08-13 10:39:48 +00:00
</tfoot>
2013-07-02 12:06:25 +00:00
</table>
</div>
2013-09-26 14:54:48 +00:00
<form class= "col-md-8 form-horizontal" t-action= "/shop/confirm_order/" method= "post" >
2013-08-13 10:39:48 +00:00
<div class= " row" >
2013-09-10 13:41:33 +00:00
<a t-if= "not partner" t-attf-href= "/admin#action=redirect&url=#{ request.httprequest.host_url }/shop/checkout/" class= "btn btn-primary" > Log me, I have an account</a>
2013-08-26 07:40:16 +00:00
<h3 class= "col-md-10" > Billing Information</h3>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('name') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Name and firstname</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "text" name= "name" class= "form-control" t-att-value= "checkout['name']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{ error.get('phone') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Telephone</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "tel" name= "phone" class= "form-control" t-att-value= "checkout['phone']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('fax') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Fax</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "tel" name= "fax" class= "form-control" t-att-value= "checkout['fax']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('company') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Company</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "text" name= "company" class= "form-control" t-att-value= "checkout['company']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('email') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Email address</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "email" name= "email" class= "form-control" t-att-value= "checkout['email']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('street') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Street</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "text" name= "street" class= "form-control" t-att-value= "checkout['street']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('city') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > City</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "text" name= "city" class= "form-control" t-att-value= "checkout['city']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('state_id') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > State / Province</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +00:00
<select name= "state_id" class= "form-control" >
2013-08-13 10:39:48 +00:00
<option value= "" > State / Province...</option>
<t t-foreach= "states or []" t-as= "state" >
2013-09-24 12:42:53 +00:00
<option t-att-value= "state.id" t-att-selected= "state.id == checkout['state_id']" > <t t-esc= "state.name" /> </option>
2013-08-13 10:39:48 +00:00
</t>
</select>
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('zip') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Zip / Postal Code</label>
<div class= "col-lg-4" >
2013-09-24 12:42:53 +00:00
<input type= "text" name= "zip" class= "form-control" t-att-value= "checkout['zip']" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('country_id') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Country</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +00:00
<select name= "country_id" class= "form-control" >
2013-08-13 10:39:48 +00:00
<option value= "" > Country...</option>
<t t-foreach= "countries or []" t-as= "country" >
2013-09-24 12:42:53 +00:00
<option t-att-value= "country.id" t-att-selected= "country.id == checkout['country_id']" > <t t-esc= "country.name" /> </option>
2013-08-13 10:39:48 +00:00
</t>
</select>
</div>
</div>
2013-08-27 13:34:26 +00:00
<div class= "form-group checkbox" >
<div class= "col-lg-7 col-md-offset-3" >
<label >
2013-08-13 10:39:48 +00:00
<input t-if= "not shipping" type= "checkbox" name= "shipping_different" />
<input t-if= "shipping" type= "checkbox" name= "shipping_different" checked= "1" />
Ship to different address
</label>
</div>
</div>
2013-07-23 08:18:13 +00:00
</div>
2013-08-13 10:39:48 +00:00
<div class= "js_shipping row" t-att-style= "not shipping and 'display:none' or ''" >
2013-08-26 07:40:16 +00:00
<h3 class= "col-md-12 oe_shipping" > Shipping Information</h3>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_name') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Name and firstname</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +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>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_phone') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Telephone</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +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>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_fax') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Fax</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +00:00
<input type= "tel" name= "shipping_fax" class= "form-control" t-att-value= "checkout.get('shipping_fax', '')" />
2013-08-13 10:39:48 +00:00
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_street') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Street</label>
<div class= "col-lg-4" >
2013-08-30 14:42:04 +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>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_city') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > City</label>
<div class= "col-lg-4" >
2013-08-30 14:42:04 +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>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_state_id') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > State / Province</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +00:00
<select name= "shipping_state_id" class= "form-control" >
2013-08-13 10:39:48 +00:00
<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>
</div>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_zip') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Zip / Postal Code</label>
<div class= "col-lg-4" >
2013-08-30 14:42:04 +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>
</div>
2013-09-05 09:59:33 +00:00
<div t-attf-class= "form-group #{error.get('shipping_country_id') and 'has-error' or ''}" >
2013-08-26 07:40:16 +00:00
<label class= "col-lg-3 control-label" for= "contact_name" > Country</label>
<div class= "col-lg-4" >
2013-08-26 12:15:09 +00:00
<select name= "shipping_country_id" class= "form-control" >
2013-08-13 10:39:48 +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>
</div>
2013-07-23 08:18:13 +00:00
</div>
2013-09-24 12:42:53 +00:00
<button type= "submit" class= "btn btn-default" > Confirm</button>
2013-08-08 14:23:41 +00:00
</form>
</div>
</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-15 17:25:37 +00:00
<t t-set= "head" >
<script type= "text/javascript" src= "/website_sale/static/src/js/website_sale.js" > </script>
<t t-raw= "head or ''" />
</t>
<t t-set= "title" > Shop - Payment</t>
<div id= "wrap" >
2013-08-29 20:45:53 +00:00
<div class= "container oe_website_sale" >
2013-08-08 14:23:41 +00:00
<div class= "row" >
2013-08-26 05:44:41 +00:00
<div class= "col-md-4" >
2013-08-23 14:37:57 +00:00
<table class= "table table-condensed" t-if= "order" >
2013-08-08 14:23:41 +00:00
<thead >
2013-08-13 10:39:48 +00:00
<tr >
2013-08-13 11:52:47 +00:00
<th > Product</th>
<th > Price</th>
<th > Qty.</th>
2013-08-13 10:39:48 +00:00
</tr>
2013-08-08 14:23:41 +00:00
</thead>
2013-09-10 14:15:02 +00:00
<tbody t-if= "website_sale_order.order_line" >
<t t-foreach= "website_sale_order.order_line" t-as= "line" >
2013-08-08 14:23:41 +00:00
<tr >
2013-08-13 11:52:47 +00:00
<td > <t t-esc= "line.name" /> </td>
<td > <t t-esc= "line.product_uom_qty" /> </td>
2013-08-23 09:40:17 +00:00
<td > <t t-esc= "line.price_unit" /> €</td>
2013-08-08 14:23:41 +00:00
</tr>
</t>
</tbody>
2013-08-13 10:39:48 +00:00
<tfoot >
2013-09-10 14:15:02 +00:00
<tr > <th > Untaxed Amount</th> <td > </td> <td > <t t-esc= "website_sale_order.amount_untaxed" /> €</td> </tr>
<tr > <th > Taxes</th> <td > </td> <td > <t t-esc= "website_sale_order.amount_tax" /> €</td> </tr>
<tr > <th > Total</th> <td > </td> <td > <t t-esc= "website_sale_order.amount_total" /> €</td> </tr>
2013-08-13 10:39:48 +00:00
</tfoot>
2013-08-08 14:23:41 +00:00
</table>
</div>
2013-08-26 05:44:41 +00:00
<div class= "col-md-8" >
2013-08-23 09:40:17 +00:00
<div class= "js_payment row" >
2013-08-27 13:34:26 +00:00
<h3 class= "col-md-12" > Click on your payment method</h3>
2013-08-26 05:44:41 +00:00
<div class= "col-md-2" >
2013-08-23 09:40:17 +00:00
<t t-foreach= "payments or []" t-as= "payment" >
<label >
<input t-att-value= "payment.id" type= "radio" name= "payment_type" /> <t t-esc= "payment.name" />
</label>
</t>
</div>
2013-07-24 12:23:30 +00:00
<t t-foreach= "payments or []" t-as= "payment" >
2013-08-26 05:44:41 +00:00
<div t-att-data-id= "payment.id" t-raw= "payment._content" class= "hidden col-md-6" />
2013-07-24 12:23:30 +00:00
</t>
2013-09-26 14:54:48 +00:00
<a t-href= "/shop/payment_validate/" class= "hidden btn btn-default" > I validate my payment</a>
2013-07-22 10:28:57 +00:00
</div>
</div>
2013-07-23 08:18:13 +00:00
</div>
</div>
2013-09-15 17:25:37 +00:00
</div>
2013-07-23 08:18:13 +00:00
</t>
</template>
</data>
2013-07-01 00:20:54 +00:00
</openerp>