1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- Layout add nav and footer -->
7 <template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
8 <xpath expr="//header//ul[@id='top_menu']/li" position="before">
9 <li t-att-class="(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''">
10 <a href="/shop/mycart/">
11 <i class="icon-shopping-cart"></i>
12 My cart <sup t-attf-class="my_cart_quantity label label-primary"
13 t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
17 <xpath expr="//t[@id='editable_scripts_hook']" position="inside">
18 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.editor.js" t-ignore="true"></script>
19 <script type="text/javascript" src="/website_sale/static/src/js/website.tour.shop.js" t-ignore="true"></script>
23 <!-- List of categories -->
25 <template id="categories_recursive" name="Category list">
26 <li t-att-class="str(category.id) == search.get('category') and 'active' or ''">
27 <a t-href="/shop/category/#{ category.id }/" t-field="category.name"></a>
28 <ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
29 <t t-foreach="category.child_id" t-as="category">
30 <t t-call="website_sale.categories_recursive"/>
38 <template id="search" name="Search hidden fields">
39 <input type="hidden" name="category" t-att-value="search.get('category') or ''"/>
40 <input type="hidden" name="filter_domain" t-att-value="search.get('filter_domain') or ''"/>
41 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search.get('search') or ''"/>
44 <template id="products_cart" name="Shopping cart">
45 <div class="ribbon-wrapper" contentEditable="false">
46 <div class="ribbon"><span contentEditable="true">Promo</span></div>
48 <div class="oe_product_description">
49 <a t-href="/shop/product/#{ product.id }/" t-keep-query="category,search,filter_domain">
50 <b t-field="product.name"/>
53 <div class="product_price" t-if="product.product_variant_ids">
55 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
56 <del class="text-danger"
57 t-field="product.product_variant_ids[0].lst_price" t-field-options='{
59 "display_currency": "website.pricelist_id.currency_id"
62 <span t-field="product.product_variant_ids[0].price" t-field-options='{
64 "display_currency": "website.pricelist_id.currency_id"
68 <div class="oe_product_image text-center">
69 <a t-href="/shop/product/#{ product.id }/" t-keep-query="category,search,filter_domain">
70 <span t-field="product.image" t-field-options='{"widget": "image"}'/>
75 <template id="products" name="Products">
76 <t t-call="website.layout">
78 <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
79 <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
80 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
81 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
82 <t t-raw="head or ''"/>
84 <t t-set="additional_title">Shop</t>
86 <div class="oe_structure"/>
87 <div class="container oe_website_sale">
89 <div class="col-sm-8 products_pager">
90 <t t-call="website.pager">
91 <t t-set="classname">pull-right</t>
92 <t t-set="style">padding-left: 5px;</t>
94 <form action="/shop/" method="get" class="pull-right pagination form-inline" style="padding-right: 5px;">
95 <t t-call="website_sale.search" />
100 <div class='style_default row'>
101 <div class="hidden" id="products_grid_before"></div>
102 <div class="col-md-12" id="products_grid">
105 <tr t-foreach="bins" t-as="tr_product">
106 <t t-foreach="tr_product" t-as="td_product">
107 <t t-if="td_product">
108 <t t-set="product" t-value="td_product['product']"/>
109 <td t-att-colspan="td_product['x']"
110 t-attf-width="#{td_product['x']*25}%"
111 t-att-rowspan="td_product['y']"
112 t-attf-class="oe_product oe-height-#{td_product['y']*2} #{ td_product['class'] }">
114 <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
116 <div class="css_options" t-ignore="true" t-if="editable">
117 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
118 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
119 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
120 <li class='dropdown-submenu'>
121 <a tabindex="-1" href="#">Size</a>
122 <ul class="dropdown-menu" name="size">
126 <td class="selected"></td>
127 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
128 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
129 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
132 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
133 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
134 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
135 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
138 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
139 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
140 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
141 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
144 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
145 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
146 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
147 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
153 <li class='dropdown-submenu'>
154 <a tabindex="-1" href="#">Styles</a>
155 <ul class="dropdown-menu" name="style">
156 <t t-foreach="styles" t-as="style">
157 <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>
165 <t t-call="website_sale.products_cart"/>
170 <td t-if="td_product == None"/>
176 <h3 class="text-center text-muted">No product found for this search</h3>
180 <div class="products_pager">
181 <t t-call="website.pager">
182 <t t-set="classname">pull-right</t>
186 <div class="oe_structure mb32"/>
191 <!-- Product Description-->
193 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
194 <xpath expr="//div[@class='oe_product_description']" position="inside">
195 <p class="text-muted oe_subdescription">
196 <span t-field="product.description_sale"/>
201 <!-- Add to cart button-->
203 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
204 <xpath expr="//div[@class='product_price']" position="inside">
205 <a t-href="/shop/add_cart/?product_id=#{ product.id }" class="js_add_cart_json">
206 <span class="icon-shopping-cart"/>
211 <!-- List view of products -->
213 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
214 <xpath expr="//div[@id='products_grid']//table" position="replace">
216 <t t-set="products" t-value="Ecommerce.get_products(product_ids)"/>
217 <t t-foreach="products" t-as="product">
218 <div class="col-md-12 oe_list_products oe-height-1">
219 <t t-call="website_sale.products_cart"/>
229 <template id="product" name="Product">
230 <t t-call="website.layout">
232 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
234 <t t-set="additional_title" t-value="product.name"/>
237 <section class="container mt8">
239 <div class="col-sm-5">
240 <ol class="breadcrumb">
241 <li><a href="/shop">Products</a></li>
242 <li t-if="search.get('category')"><a t-href="/shop/" t-keep-query="category,search,filter_domain"><span t-field="category.name"/></a></li>
243 <li class="active"><span t-field="product.name"/></li>
245 </div><div class="col-sm-3">
246 <t t-call="website.publish_management">
247 <t t-set="object" t-value="product"/>
248 <t t-set="publish_edit" t-value="True"/>
249 <li class='dropdown-submenu'>
250 <a tabindex="-1" href="#">Promote</a>
251 <ul class="dropdown-menu" name="sequence">
252 <li><a href="#" class="js_go_to_top">Push to top</a></li>
253 <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
257 </div><div class="col-sm-3 col-sm-offset-1">
258 <form action="/shop/" method="get" class="pull-right">
259 <t t-call="website_sale.search" />
265 <section class="container oe_website_sale mb16" id="product_detail">
267 <div class="col-sm-7 col-md-7 col-lg-7">
268 <span t-field="product.image" style="max-height: 500px" t-field-options='{"widget": "image", "class": "img img-responsive"}'/>
269 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
270 <h1 t-field="product.name">Product Name</h1>
272 <form action="/shop/add_cart/" class="js_add_cart_json">
273 <input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
274 <t t-if="len(product.product_variant_ids) > 1">
275 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="variant_id">
276 <input type="radio" name="product_id" t-att-value="variant_id.id" t-att-checked="variant_id == product.product_variant_ids[0] or None"/>
277 <t t-esc="variant_id.variants or ''">Standard</t>
278 <span class="badge" t-if="variant_id.price_extra">
279 <t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" t-field-options='{
280 "widget": "monetary",
281 "display_currency": "website.pricelist_id.currency_id"
288 <div class="product_price mt16" t-if="product.product_variant_ids">
290 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
291 <span class="text-danger" style="text-decoration: line-through;"
292 t-field="product.product_variant_ids[0].lst_price"
294 "widget": "monetary",
295 "display_currency": "website.pricelist_id.currency_id"
299 t-field="product.product_variant_ids[0].price"
301 "widget": "monetary",
302 "display_currency": "website.pricelist_id.currency_id"
306 <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
307 <hr t-if="product.description_sale"/>
308 <p t-field="product.description_sale" class="text-muted"/>
310 <p class="text-muted">
311 30-day money-back guarantee<br/>
312 Free Shipping in U.S.<br/>
313 Buy now, get in 2 days
319 <div t-field="product.website_description" class="oe_structure" id="product_full_description"/>
324 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
325 <xpath expr="//div[@id='product_full_description']" position="after">
326 <div class="container mt32" t-if="product.recommended_products()">
327 <h3>Customers who have bought this product also bought:</h3>
328 <div class='row mt16' style="margin-left: 15px !important;">
329 <t t-foreach="product.recommended_products()" t-as="product">
330 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
331 <div class='mt16 text-center'>
332 <span t-field="product.image_small"/>
334 <a t-href="/shop/product/#{ product.id }/"
335 style="display: block">
336 <span t-field='product.name'
337 style="display: block"/>
348 <template id="product_attributes" inherit_option_id="website_sale.product" name="Product Attributes">
349 <xpath expr="//p[@t-field='product.description_sale']" position="after">
350 <hr t-if="product.website_attribute_ids"/>
351 <p class="text-muted">
352 <t t-set="attr" t-value="None"/>
353 <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>
358 <!-- Page Shop my cart -->
360 <template id="mycart" name="Your Cart">
361 <t t-call="website.layout">
363 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
364 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
365 <t t-raw="head or ''"/>
368 <div class="container oe_website_sale">
370 <ul class="wizard pull-right">
371 <li class="text-primary">Review Order<span class="chevron"></span></li>
372 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
373 <li class="text-muted">Payment<span class="chevron"></span></li>
374 <li class="text-muted">Confirmation<span class="chevron"></span></li>
376 <h1 class="mb32">Shopping Cart</h1>
378 <div class="col-md-8 col-sm-9 oe_mycart">
379 <div t-if="not website_sale_order or not website_sale_order.order_line" class="well well-lg">
382 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
391 <th colspan="2">Product</th>
397 <tr t-foreach="website_sale_order.order_line" t-as="line">
398 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
399 <td t-if="line.product_id.product_tmpl_id">
400 <span t-field="line.product_id.image_small"
401 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
403 <td t-if="line.product_id.product_tmpl_id">
405 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
406 <strong t-field="line.product_id.name"/>
409 <div class="text-muted" t-field="line.product_id.description_sale"/>
411 <td class="text-center">
412 <del class="text-danger" t-if="line.product_id.lst_price > line.price_unit">
413 <span t-field="line.product_id.lst_price" t-field-options='{
414 "widget": "monetary",
415 "display_currency": "website.pricelist_id.currency_id"
418 <span t-field="line.price_unit" t-field-options='{
419 "widget": "monetary",
420 "display_currency": "website.pricelist_id.currency_id"
424 <div class="input-group">
425 <span class="input-group-addon">
426 <a t-href="./add_cart/?remove=True&order_line_id=#{ line.id }" class="mb8 js_add_cart_json">
427 <span class="icon-minus"/>
430 <input type="text" class="js_quantity form-control"
431 t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
432 <span class="input-group-addon">
433 <a t-href="./add_cart/?order_line_id=#{ line.id }" class="mb8 float_left js_add_cart_json">
434 <span class="icon-plus"/>
443 <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
449 <tr style="border-top: 1px solid #000">
450 <th><h3>Total:</h3></th>
451 <th class="text-right">
452 <h3><t t-call="website_sale.total"/></h3>
455 <tr class="text-muted">
456 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
457 <td class="text-right">
458 <span t-field="website_sale_order.amount_tax" t-field-options='{
459 "widget": "monetary",
460 "display_currency": "website.pricelist_id.currency_id"
466 <div class="clearfix"/>
467 <a href="/shop" class="btn btn-default mb32"><span class="icon-long-arrow-left"/> Continue Shopping</a>
468 <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="icon-long-arrow-right"/></a>
469 <div class="oe_structure"/>
471 <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
473 <ul class="list-unstyled mb32">
474 <li>☑ 30-days money-back guarantee</li>
475 <li>☑ Invoice sent by e-Mail</li>
477 <h4>Secure Payment</h4>
478 <ul class="list-unstyled mb32">
479 <li>☑ 256 bit encryption</li>
480 <li>☑ Processed by Ogone</li>
486 <div class="oe_structure"/>
493 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
494 <xpath expr="//div[@id='products_grid_before']" position="inside">
495 <ul class="nav nav-pills nav-stacked mt16">
496 <li t-att-class=" '' if search.get('category') else 'active' "><a href="/shop/">All Products</a></li>
497 <t t-foreach="categories" t-as="category">
498 <t t-call="website_sale.categories_recursive"/>
502 <xpath expr="//div[@id='products_grid_before']" position="attributes">
503 <attribute name="class">col-md-3</attribute>
505 <xpath expr="//div[@id='products_grid']" position="attributes">
506 <attribute name="class">col-md-9</attribute>
510 <template id="products_attributes" inherit_option_id="website_sale.products" name="Product Filters and Attributes">
511 <xpath expr="//div[@id='products_grid_before']" position="inside">
512 <form t-action="/shop/filter/" method="post" t-keep-query="category,search">
513 <ul class="nav nav-pills nav-stacked mt16">
514 <t t-set="attribute_ids" t-value="Ecommerce.get_attribute_ids()"/>
515 <t t-foreach="attribute_ids" t-as="attribute_id">
516 <t t-if="attribute_id.visible">
517 <li t-if="attribute_id.value_ids and attribute_id.type == 'distinct'">
518 <div t-field="attribute_id.name"/>
519 <ul class="nav nav-pills nav-stacked">
520 <t t-foreach="attribute_id.value_ids" t-as="value_id">
521 <li t-att-class="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'active' or ''">
522 <label style="margin: 0 20px;">
523 <input type="checkbox" t-att-name="'att-%s-%s' % (attribute_id.id, value_id.id)"
524 t-att-checked="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'checked' or ''"/>
525 <span style="font-weight: normal" t-field="value_id.name"/>
531 <li t-if="attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max">
532 <div t-field="attribute_id.name"/>
533 <t t-set="attribute" t-value="Ecommerce.has_search_filter(attribute_id.id)"/>
534 <div style="margin: 0 20px;" class="js_slider"
535 t-att-data-id="attribute_id.id"
536 t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min"
537 t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
538 t-att-data-min="attribute_id.float_min"
539 t-att-data-max="attribute_id.float_max"></div>
544 <button class="btn btn-xs btn-primary mt16">Apply filter</button>
545 <a t-href="/shop/" t-keep-query="category,search,add_filter" class="btn btn-xs btn-default mt16">Cancel filter</a>
548 <xpath expr="//div[@id='products_grid_before']" position="attributes">
549 <attribute name="class">col-md-3</attribute>
551 <xpath expr="//div[@id='products_grid']" position="attributes">
552 <attribute name="class">col-md-9</attribute>
556 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in my cart">
557 <xpath expr="//table[@id='mycart_products']" position="after">
558 <table t-if="suggested_products" class='table table-striped table-condensed'>
567 <th colspan="2">Suggested products</th>
571 <tr t-foreach="suggested_products" t-as="product">
574 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
575 <span t-field="product.image_small"
576 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
581 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
582 <strong t-field="product.name"/>
585 <div class="text-muted" t-field="product.description_sale"/>
588 <span t-field="product.lst_price" t-field-options='{
589 "widget": "monetary",
590 "display_currency": "website.pricelist_id.currency_id"
593 <td class="text-center">
594 <a t-href="./add_cart/?product_id=#{ product.id }"><strong>Add to Cart</strong></a>
602 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
603 <xpath expr="//div[@id='right_column']" position="inside">
606 Have a coupon code? Fill in this field and apply.
608 <form t-if="website_sale_order and website_sale_order.order_line" action="/shop/mycart/" method="post" class="mb32">
609 <div class="input-group">
610 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
611 <div class="input-group-btn">
612 <button class="btn btn-default">Apply</button>
620 <!-- Page confirm my cart -->
622 <template id="checkout">
623 <t t-call="website.layout">
625 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
626 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
627 <t t-raw="head or ''"/>
629 <t t-set="additional_title">Shop - Checkout</t>
631 <div class="container oe_website_sale">
632 <ul class="wizard pull-right">
633 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
634 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
635 <li class="text-muted">Payment<span class="chevron"></span></li>
636 <li class="text-muted">Confirmation<span class="chevron"></span></li>
638 <h1>Your Address</h1>
639 <form action="/shop/confirm_order/" method="post">
642 <div class="col-md-8 oe_mycart">
643 <h3 class="page-header mt16">Billing Information
644 <small t-if="user_id.id == website.public_user.id"> or
645 <a t-if="not partner" t-attf-href="/web#action=redirect&url=#{ request.httprequest.url }">sign in</a>
649 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
650 <label class="control-label" for="contact_name">Your Name</label>
651 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
653 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
654 <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
655 <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
657 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
658 <label class="control-label" for="contact_name">Email</label>
659 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
661 <div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6">
662 <label class="control-label" for="phone">Phone</label>
663 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
666 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
667 <label class="control-label" for="street">Street</label>
668 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
670 <div class="clearfix"/>
672 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
673 <label class="control-label" for="city">City</label>
674 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
676 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
677 <label class="control-label" for="zip">Zip / Postal Code</label>
678 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
680 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
681 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
682 <select name="state_id" class="form-control">
683 <option value="">select...</option>
684 <t t-foreach="states or []" t-as="state">
685 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
689 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
690 <label class="control-label" for="contact_name">Country</label>
691 <select name="country_id" class="form-control">
692 <option value="">Country...</option>
693 <t t-foreach="countries or []" t-as="country">
694 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
699 <div class="clearfix"/>
701 <div class="form-group col-lg-6">
703 <input t-if="not shipping" type="checkbox" name="shipping_different"/>
704 <input t-if="shipping" type="checkbox" name="shipping_different" checked="1"/>
705 Ship to a different address
710 <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''">
711 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
713 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
714 <label class="control-label" for="contact_name">Name (Shipping)</label>
715 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
717 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
718 <label class="control-label" for="contact_name">Phone</label>
719 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
721 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
722 <label class="control-label" for="contact_name">Street</label>
723 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
725 <div class="clearfix"/>
726 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
727 <label class="control-label" for="contact_name">City</label>
728 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
730 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
731 <label class="control-label" for="contact_name">Zip / Postal Code</label>
732 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
734 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
735 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
736 <select name="shipping_state_id" class="form-control">
737 <option value="">State / Province...</option>
738 <t t-foreach="states or []" t-as="state">
739 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
743 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
744 <label class="control-label" for="contact_name">Country</label>
745 <select name="shipping_country_id" class="form-control">
746 <option value="">Country...</option>
747 <t t-foreach="countries or []" t-as="country">
748 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
753 <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="icon-long-arrow-right"/></button>
755 <div class="col-lg-offset-1 col-lg-3 text-muted">
756 <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="icon-arrow-right"/> change</a></small></h3>
758 <div class="col-sm-6 text-right">Subtotal:</div>
759 <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
760 "widget": "monetary",
761 "display_currency": "website.pricelist_id.currency_id"
763 <div class="col-sm-6 text-right">Taxes:</div>
764 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
765 "widget": "monetary",
766 "display_currency": "website.pricelist_id.currency_id"
768 <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
769 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
770 "widget": "monetary",
771 "display_currency": "website.pricelist_id.currency_id"
782 <template id="payment">
783 <t t-call="website.layout">
785 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
786 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_payment.js"></script>
787 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
788 <t t-raw="head or ''"/>
790 <t t-set="additional_title">Shop - Select Payment Mode</t>
792 <div class="container oe_website_sale">
794 <ul class="wizard pull-right">
795 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
796 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
797 <li class="text-primary">Payment<span class="chevron"></span></li>
798 <li class="text-muted">Confirmation<span class="chevron"></span></li>
800 <h1 class="mb32">Validate Order</h1>
802 <div class="col-lg-8 col-sm-9 oe_mycart">
803 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
812 <th colspan="2">Product</th>
818 <tr t-foreach="website_sale_order.order_line" t-as="line">
819 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
820 <td t-if="line.product_id.product_tmpl_id">
821 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
822 <span t-field="line.product_id.image_small"
823 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
826 <td t-if="line.product_id.product_tmpl_id">
827 <strong t-field="line.product_id.name"/>
829 <td class="text-center">
830 <span t-field="line.price_unit" t-field-options='{
831 "widget": "monetary",
832 "display_currency": "website.pricelist_id.currency_id"
836 <div t-esc="line.product_uom_qty"/>
841 <table class='pull-right mb16' id="mycart_total">
847 <tr style="border-top: 1px solid #000">
848 <th><h3>Total:</h3></th>
849 <th class="text-right"><h3><span t-field="website_sale_order.amount_total" t-field-options='{
850 "widget": "monetary",
851 "display_currency": "website.pricelist_id.currency_id"
854 <tr class="text-muted">
855 <td>Incl. Taxes:</td>
856 <td class="text-right"><span t-field="website_sale_order.amount_tax" t-field-options='{
857 "widget": "monetary",
858 "display_currency": "website.pricelist_id.currency_id"
863 <div class="clearfix"/>
864 <div class="oe_structure"/>
866 <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
868 <div t-field="website_sale_order.partner_invoice_id"/>
870 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
873 <h4 class="mt32">Ship To:</h4>
874 <div t-field="website_sale_order.partner_shipping_id"/>
876 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
882 <div class="js_payment mb64" t-if="not payment_acquirer_id and payments" id="payment_method">
883 <p>Payment method:</p>
885 <t t-foreach="payments or []" t-as="payment">
886 <label t-if="payment._content">
887 <input t-att-value="payment.id" type="radio" name="payment_type"/> <span t-field="payment.name"/>
891 <t t-foreach="payments" t-as="payment">
892 <div t-att-data-id="payment.id" t-raw="payment._content" class="oe_payment_acquirer hidden"/>
897 <div class="oe_structure"/>
903 <template id="confirmation">
904 <t t-call="website.layout">
906 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
907 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_validate.js"></script>
908 <t t-raw="head or ''"/>
910 <t t-set="additional_title">Shop - Confirmed</t>
912 <div class="container oe_website_sale">
914 <ul class="wizard pull-right">
915 <li class="text-muted">Review Order<span class="chevron"></span></li>
916 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
917 <li class="text-muted">Payment<span class="chevron"></span></li>
918 <li class="text-primary">Confirmation<span class="chevron"></span></li>
920 <h1 class="mb32">Order Confirmed</h1>
922 <div class="col-md-8 oe_mycart">
923 <h2>Thank you for your order.</h2>
924 <div class="oe_website_sale_tx_status" t-att-data-order-id="order.id">
926 <div class="clearfix"/>
927 <div class="oe_structure"/>
929 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
931 <div t-field="order.partner_invoice_id"/>
933 <h4 class="mt32">Ship To:</h4>
934 <div t-field="order.partner_shipping_id"/>
936 <h4 class="mt32">Amount:</h4>
937 <!-- <div t-field="order.amount_total" t-field-options='{
938 "widget": "monetary",
939 "display_currency": "website.pricelist_id.currency_id"
945 <div class="oe_structure"/>
951 <template id="total">
952 <span t-field="website_sale_order.amount_total" t-field-options='{
953 "widget": "monetary",
954 "display_currency": "website.pricelist_id.currency_id"