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 t-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 ''"/>
19 <!-- List of categories -->
21 <template id="categories_recursive" name="Category list">
22 <li t-att-class="category.id == search.get('category') and 'active' or ''">
23 <a t-att-class="category.id not in categ[1] and 'unpublish' or ''" t-href="/shop/?category=#{ category.id }" t-field="category.name" t-keep-query="search,facettes"></a>
24 <ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
25 <t t-foreach="category.child_id" t-as="category">
26 <t t-if="category.id in categ[1] or editable">
27 <t t-call="website_sale.categories_recursive"/>
36 <template id="search" name="Search hidden fields">
37 <input type="hidden" name="category" t-att-value="search.get('category') or ''"/>
38 <input type="hidden" name="filter" t-att-value="search.get('filter') or ''"/>
39 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search.get('search') or ''"/>
42 <template id="products_cart" name="Shopping cart">
43 <div class="ribbon-wrapper">
44 <div class="ribbon">Promo</div>
46 <div class="oe_product_description">
47 <a t-href="/shop/product/#{ product.id }/" t-keep-query="category,search,facettes">
48 <b t-field="product.name"/>
51 <div class="product_price" t-if="product.product_variant_ids">
53 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
54 <del class="text-danger"
55 t-field="product.product_variant_ids[0].lst_price" t-field-options='{
57 "display_currency": "website.pricelist_id.currency_id"
60 <span t-field="product.product_variant_ids[0].price" t-field-options='{
62 "display_currency": "website.pricelist_id.currency_id"
66 <div class="oe_product_image text-center">
67 <a t-href="/shop/product/#{ product.id }/" t-keep-query="category,search,facettes">
68 <span t-field="product.image" t-field-options='{"widget": "image"}'/>
73 <template id="products" name="Products">
74 <t t-call="website.layout">
76 <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
77 <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
78 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
79 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
80 <t t-raw="head or ''"/>
82 <t t-set="additional_title">Shop</t>
84 <div class="oe_structure"/>
85 <div class="container oe_website_sale">
87 <div class="col-sm-6 pagination hidden-xs" style="padding-left: 15px;">
88 <form t-if="editable" t-keep-query="category,search,facettes"
89 method="POST" t-action="/shop/add_product">
90 <button class="btn btn-primary">New Product</button>
93 <div class="col-sm-6 products_pager">
94 <t t-call="website.pager">
95 <t t-set="classname">pull-right</t>
96 <t t-set="style">padding-left: 5px;</t>
98 <form t-action="/shop/" method="get" class="pull-right pagination form-inline" style="padding-right: 5px;">
99 <t t-call="website_sale.search" />
104 <div class='style_default row'>
105 <div class="col-md-12" id="products_grid" t-if="product_ids">
108 <t t-set="table_products" t-value="Ecommerce.get_bin_packing_products(product_ids, product_ids_for_holes, 4)"/>
109 <tr t-foreach="table_products" t-as="tr_product">
110 <t t-foreach="tr_product" t-as="td_product">
111 <t t-if="td_product">
112 <t t-set="product" t-value="td_product['product']"/>
113 <td t-att-colspan="td_product['x']"
114 t-attf-width="#{td_product['x']*25}%"
115 t-att-rowspan="td_product['y']"
116 t-attf-class="oe_product oe-height-#{td_product['y']*2} #{ td_product['class'] }">
118 <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
120 <div class="css_options" t-ignore="true" t-if="editable">
121 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
122 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
123 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
124 <li class='dropdown-submenu'>
125 <a tabindex="-1" href="#">Size</a>
126 <ul class="dropdown-menu" name="size">
130 <td class="selected"></td>
131 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
132 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
133 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
136 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
137 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
138 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
139 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
142 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
143 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
144 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
145 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
148 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
149 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
150 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
151 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
157 <li class='dropdown-submenu'>
158 <a tabindex="-1" href="#">Styles</a>
159 <ul class="dropdown-menu" name="style">
160 <t t-foreach="styles" t-as="style">
161 <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>
169 <t t-call="website_sale.products_cart"/>
174 <td t-if="td_product == None"/>
180 <div class="col-md-12" id="products_grid_empty" t-if="not product_ids">
181 <h3 class="text-center text-muted">No product found for this search</h3>
184 <div class="products_pager">
185 <t t-call="website.pager">
186 <t t-set="classname">pull-right</t>
190 <div class="oe_structure mb32"/>
195 <!-- Product Description-->
197 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
198 <xpath expr="//div[@class='oe_product_description']" position="inside">
199 <p class="text-muted oe_subdescription">
200 <span t-field="product.description_sale"/>
205 <!-- Add to cart button-->
207 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
208 <xpath expr="//div[@class='product_price']" position="inside">
209 <a t-href="./add_cart/?product_id=#{ product.id }" class="js_add_cart_json">
210 <span class="icon-shopping-cart"/>
215 <!-- List view of products -->
217 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
218 <xpath expr="//div[@id='products_grid']/table" position="replace">
220 <t t-set="products" t-value="Ecommerce.get_products(product_ids)"/>
221 <t t-foreach="products" t-as="product">
222 <div class="col-md-12 oe_list_products oe-height-1">
223 <t t-call="website_sale.products_cart"/>
233 <template id="product" name="Product">
234 <t t-call="website.layout">
236 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
238 <t t-set="additional_title" t-value="product.name"/>
241 <section class="container mt8">
243 <div class="col-sm-5">
244 <ol class="breadcrumb">
245 <li><a t-href="/shop">Products</a></li>
246 <li t-if="search.get('category')"><a t-href="/shop/" t-keep-query="category,search,facettes"><span t-field="category.name"/></a></li>
247 <li class="active"><span t-field="product.name"></span></li>
249 </div><div class="col-sm-3">
250 <t t-call="website.publish_management">
251 <t t-set="object" t-value="product"/>
252 <t t-set="publish_edit" t-value="True"/>
253 <li class='dropdown-submenu'>
254 <a tabindex="-1" href="#">Promote</a>
255 <ul class="dropdown-menu" name="sequence">
256 <li><a href="#" class="js_go_to_top">Push to top</a></li>
257 <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
261 </div><div class="col-sm-3 col-sm-offset-1">
262 <form t-action="/shop/" method="get" class="pull-right">
263 <t t-call="website_sale.search" />
269 <section class="container oe_website_sale mb16" id="product_detail">
271 <div class="col-sm-7 col-md-7 col-lg-7">
272 <span t-field="product.image" style="max-height: 500px" t-field-options='{"widget": "image"}'/>
273 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
274 <h1 t-field="product.name">Product Name</h1>
276 <form t-action="./add_cart/" class="js_add_cart_json">
277 <input type="hidden" t-if="len(product.product_variant_ids) <= 1" name="product_id" t-att-value="product.id"/>
278 <t t-if="len(product.product_variant_ids) > 1">
279 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="product">
280 <input type="radio" name="product_id" t-att-value="product.id" t-att-checked="product == product.product_variant_ids[0] or None"/>
281 <t t-esc="product.variants or ''">Standard</t>
282 <span class="badge" t-if="product.price_extra">
283 <t t-esc="product.price_extra > 0 and '+' or ''"/><span t-field="product.price_extra" t-field-options='{
284 "widget": "monetary",
285 "display_currency": "website.pricelist_id.currency_id"
292 <div class="product_price mt16" t-if="product.product_variant_ids">
294 <b><span class="oe_price" t-esc="product.product_variant_ids[0].price" /> €</b>
296 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
297 <span class="text-danger" style="text-decoration: line-through;">
298 <t t-esc="product.product_variant_ids[0].lst_price" /> €
303 <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
304 <hr t-if="product.description_sale"/>
305 <p t-field="product.description_sale" class="text-muted"/>
307 <p class="text-muted">
308 30-day money-back guarantee<br/>
309 Free Shipping in U.S.<br/>
310 Buy now, get in 2 days
316 <div t-field="product.website_description" class="oe_structure" id="product_full_description"/>
321 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
322 <xpath expr="//div[@id='product_full_description']" position="after">
323 <div class="container mt32" t-if="product.recommended_products()">
324 <h3>Customers who have bought this product also bought:</h3>
325 <div class='row mt16' style="margin-left: 15px !important;">
326 <t t-foreach="product.recommended_products()" t-as="product">
327 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
328 <div class='mt16 text-center'>
329 <span t-field="product.image_small"/>
331 <a t-href="/shop/product/#{ product.id }/"
332 style="display: block">
333 <span t-field='product.name'
334 style="display: block"/>
345 <!-- Page Shop my cart -->
347 <template id="mycart" name="Your Cart">
348 <t t-call="website.layout">
350 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
351 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
352 <t t-raw="head or ''"/>
355 <div class="container oe_website_sale">
357 <ul class="wizard pull-right">
358 <li class="text-primary">Review Order<span class="chevron"></span></li>
359 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
360 <li class="text-muted">Payment<span class="chevron"></span></li>
361 <li class="text-muted">Confirmation<span class="chevron"></span></li>
363 <h1 class="mb32">Shopping Cart</h1>
365 <div class="col-md-3 text-muted" id="right_column">
367 <ul class="list-unstyled mb32">
368 <li>☑ 30-days money-back guarantee</li>
369 <li>☑ Invoice sent by e-Mail</li>
371 <h4>Secure Payment</h4>
372 <ul class="list-unstyled mb32">
373 <li>☑ 256 bit encryption</li>
374 <li>☑ Processed by Ogone</li>
377 <div class="col-md-8 col-md-offset-1 oe_mycart">
378 <div t-if="not website_sale_order or not website_sale_order.order_line" class="well well-lg">
381 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
390 <th colspan="2">Product</th>
396 <tr t-foreach="website_sale_order.order_line" t-as="line">
397 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
398 <td t-if="line.product_id.product_tmpl_id">
399 <span t-field="line.product_id.image_small"
400 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
402 <td t-if="line.product_id.product_tmpl_id">
404 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
405 <strong t-field="line.product_id.name"/>
408 <div class="text-muted" t-field="line.product_id.description_sale"/>
410 <td class="text-center">
411 <del class="text-danger" t-if="line.product_id.lst_price > line.price_unit">
412 <span t-field="line.product_id.lst_price" t-field-options='{
413 "widget": "monetary",
414 "display_currency": "website.pricelist_id.currency_id"
417 <span t-field="line.price_unit" t-field-options='{
418 "widget": "monetary",
419 "display_currency": "website.pricelist_id.currency_id"
423 <div class="input-group">
424 <span class="input-group-addon">
425 <a t-href="./add_cart/?remove=True&order_line_id=#{ line.id }" class="mb8 js_add_cart_json">
426 <span class="icon-minus"/>
429 <input type="text" class="js_quantity form-control"
430 t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
431 <span class="input-group-addon">
432 <a t-href="./add_cart/?order_line_id=#{ line.id }" class="mb8 float_left js_add_cart_json">
433 <span class="icon-plus"/>
442 <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
448 <tr style="border-top: 1px solid #000">
449 <th><h3>Total:</h3></th>
450 <th class="text-right">
451 <h3><t t-call="website_sale.total"/></h3>
454 <tr class="text-muted">
455 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
456 <td class="text-right">
457 <span t-field="website_sale_order.amount_tax" t-field-options='{
458 "widget": "monetary",
459 "display_currency": "website.pricelist_id.currency_id"
465 <div class="clearfix"/>
466 <a t-href="/shop" class="btn btn-default mb32"><span class="icon-long-arrow-left"/> Continue Shopping</a>
467 <a t-if="website_sale_order and website_sale_order.order_line" t-href="/shop/checkout/" class="btn btn-primary pull-right mb32">Process Checkout <span class="icon-long-arrow-right"/></a>
468 <div class="oe_structure"/>
473 <div class="oe_structure"/>
480 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
481 <xpath expr="//div[@id='products_grid']" position="before">
482 <div id="categories" class="col-md-3">
483 <ul class="nav nav-pills nav-stacked mt16">
484 <li t-att-class=" '' if search.get('category') else 'active' "><a t-href="/shop/">All Products</a></li>
485 <t t-set="categ" t-value="Ecommerce.get_categories()"/>
486 <t t-foreach="categ[0]" t-as="category">
487 <t t-call="website_sale.categories_recursive"/>
492 <xpath expr="//div[@id='products_grid']" position="attributes">
493 <attribute name="class">col-md-9</attribute>
497 <template id="products_attributes" inherit_option_id="website_sale.products_categories" name="Product Filters and Attributes">
498 <xpath expr="//div[@id='categories']" position="inside">
499 <form t-action="/shop/filter/" method="post" t-keep-query="category,search,add_filter">
500 <ul class="nav nav-pills nav-stacked mt16">
501 <t t-set="attribute_ids" t-value="Ecommerce.get_attribute_ids()"/>
502 <t t-foreach="attribute_ids" t-as="attribute_id">
503 <t t-if="attribute_id.visible">
504 <li t-if="attribute_id.value_ids and attribute_id.type == 'distinct'">
505 <div t-field="attribute_id.name"/>
506 <ul class="nav nav-pills nav-stacked">
507 <t t-foreach="attribute_id.value_ids" t-as="value_id">
508 <li t-att-class="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'active' or ''">
509 <label style="margin: 0 20px;">
510 <input type="checkbox" t-att-name="'att-%s-%s' % (attribute_id.id, value_id.id)"
511 t-att-checked="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'checked' or ''"/>
512 <span style="font-weight: normal" t-field="value_id.name"/>
518 <li t-if="attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max">
519 <div t-field="attribute_id.name"/>
520 <t t-set="attribute" t-value="Ecommerce.has_search_filter(attribute_id.id)"/>
521 <div style="margin: 0 20px;" class="js_slider"
522 t-att-data-id="attribute_id.id"
523 t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min"
524 t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
525 t-att-data-min="attribute_id.float_min"
526 t-att-data-max="attribute_id.float_max"></div>
531 <button class="btn btn-xs btn-primary mt16">Apply filter</button>
536 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in list view">
537 <xpath expr="//table[@id='mycart_products']" position="after">
538 <table t-if="suggested_products" class='table table-striped table-condensed'>
547 <th colspan="2">Suggested products</th>
551 <tr t-foreach="suggested_products" t-as="product">
554 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
555 <span t-field="product.image_small"
556 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
561 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
562 <strong t-field="product.name"/>
565 <div class="text-muted" t-field="product.description_sale"/>
568 <span t-field="product.lst_price" t-field-options='{
569 "widget": "monetary",
570 "display_currency": "website.pricelist_id.currency_id"
573 <td class="text-center">
574 <a t-href="./add_cart/?product_id=#{ product.id }"><strong>Add to Cart</strong></a>
582 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
583 <xpath expr="//div[@id='right_column']" position="inside">
586 Have a coupon code? Fill in this field and apply.
588 <form t-if="website_sale_order and website_sale_order.order_line" t-action="/shop/mycart/" method="post" class="mb32">
589 <div class="input-group">
590 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
591 <div class="input-group-btn">
592 <button class="btn btn-default">Apply</button>
600 <!-- Page confirm my cart -->
602 <template id="checkout">
603 <t t-call="website.layout">
605 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
606 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
607 <t t-raw="head or ''"/>
609 <t t-set="additional_title">Shop - Checkout</t>
611 <div class="container oe_website_sale">
612 <ul class="wizard pull-right">
613 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
614 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
615 <li class="text-muted">Payment<span class="chevron"></span></li>
616 <li class="text-muted">Confirmation<span class="chevron"></span></li>
618 <h1>Your Address</h1>
619 <form t-action="/shop/confirm_order/" method="post">
622 <div class="col-md-8 oe_mycart">
623 <h3 class="page-header mt16">Billing Information
624 <small t-if="user_id.id == website.public_user.id"> or
625 <a t-if="not partner" t-attf-href="/web#action=redirect&url=#{ request.httprequest.url }">sign in</a>
629 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
630 <label class="control-label" for="contact_name">Your Name</label>
631 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
633 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
634 <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
635 <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
637 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
638 <label class="control-label" for="contact_name">Email</label>
639 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
641 <div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6">
642 <label class="control-label" for="phone">Phone</label>
643 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
646 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
647 <label class="control-label" for="street">Street</label>
648 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
650 <div class="clearfix"/>
652 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
653 <label class="control-label" for="city">City</label>
654 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
656 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
657 <label class="control-label" for="zip">Zip / Postal Code</label>
658 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
660 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
661 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
662 <select name="state_id" class="form-control">
663 <option value="">select...</option>
664 <t t-foreach="states or []" t-as="state">
665 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
669 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
670 <label class="control-label" for="contact_name">Country</label>
671 <select name="country_id" class="form-control">
672 <option value="">Country...</option>
673 <t t-foreach="countries or []" t-as="country">
674 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
679 <div class="clearfix"/>
681 <div class="form-group col-lg-6">
683 <input t-if="not shipping" type="checkbox" name="shipping_different"/>
684 <input t-if="shipping" type="checkbox" name="shipping_different" checked="1"/>
685 Ship to a different address
690 <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''">
691 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
693 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
694 <label class="control-label" for="contact_name">Name (Shipping)</label>
695 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
697 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
698 <label class="control-label" for="contact_name">Phone</label>
699 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
701 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
702 <label class="control-label" for="contact_name">Street</label>
703 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
705 <div class="clearfix"/>
706 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
707 <label class="control-label" for="contact_name">City</label>
708 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
710 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
711 <label class="control-label" for="contact_name">Zip / Postal Code</label>
712 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
714 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
715 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
716 <select name="shipping_state_id" class="form-control">
717 <option value="">State / Province...</option>
718 <t t-foreach="states or []" t-as="state">
719 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
723 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
724 <label class="control-label" for="contact_name">Country</label>
725 <select name="shipping_country_id" class="form-control">
726 <option value="">Country...</option>
727 <t t-foreach="countries or []" t-as="country">
728 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
733 <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="icon-long-arrow-right"/></button>
735 <div class="col-lg-offset-1 col-lg-3 text-muted">
736 <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="icon-arrow-right"/> change</a></small></h3>
738 <div class="col-sm-6 text-right">Subtotal:</div>
739 <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
740 "widget": "monetary",
741 "display_currency": "website.pricelist_id.currency_id"
743 <div class="col-sm-6 text-right">Taxes:</div>
744 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
745 "widget": "monetary",
746 "display_currency": "website.pricelist_id.currency_id"
748 <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
749 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
750 "widget": "monetary",
751 "display_currency": "website.pricelist_id.currency_id"
762 <template id="payment">
763 <t t-call="website.layout">
765 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
766 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
767 <t t-raw="head or ''"/>
769 <t t-set="additional_title">Shop - Select Payment Mode</t>
771 <div class="container oe_website_sale">
773 <ul class="wizard pull-right">
774 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
775 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
776 <li class="text-primary">Payment<span class="chevron"></span></li>
777 <li class="text-muted">Confirmation<span class="chevron"></span></li>
779 <h1 class="mb32">Validate Order</h1>
781 <div class="col-md-8 oe_mycart">
782 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
791 <th colspan="2">Product</th>
797 <tr t-foreach="website_sale_order.order_line" t-as="line">
798 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
799 <td t-if="line.product_id.product_tmpl_id">
800 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
801 <span t-field="line.product_id.image_small"
802 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
805 <td t-if="line.product_id.product_tmpl_id">
806 <strong t-field="line.product_id.name"/>
808 <td class="text-center">
809 <span t-field="line.price_unit" t-field-options='{
810 "widget": "monetary",
811 "display_currency": "website.pricelist_id.currency_id"
815 <div t-esc="line.product_uom_qty"/>
820 <table class='pull-right mb16' id="mycart_total">
826 <tr style="border-top: 1px solid #000">
827 <th><h3>Total:</h3></th>
828 <th class="text-right"><h3><span t-field="website_sale_order.amount_total" t-field-options='{
829 "widget": "monetary",
830 "display_currency": "website.pricelist_id.currency_id"
833 <tr class="text-muted">
834 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
835 <td class="text-right"><span t-field="website_sale_order.amount_tax" t-field-options='{
836 "widget": "monetary",
837 "display_currency": "website.pricelist_id.currency_id"
842 <div class="clearfix"/>
843 <div class="oe_structure"/>
845 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
847 <div t-field="website_sale_order.partner_invoice_id"/>
849 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
852 <h4 class="mt32">Ship To:</h4>
853 <div t-field="website_sale_order.partner_shipping_id"/>
855 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
861 <div class="js_payment mb64">
862 <p>Select your payment method:</p>
864 <t t-foreach="payments or []" t-as="payment">
866 <input t-att-value="payment.id" type="radio" name="payment_type"/> <t t-esc="payment.name"/>
870 <t t-foreach="payments or []" t-as="payment">
871 <div t-att-data-id="payment.id" t-raw="payment._content" class="hidden"/>
873 <a t-href="/shop/payment_validate/" class="btn btn-primary mt16">Validate & Pay <span class="icon-long-arrow-right"/></a>
877 <div class="oe_structure"/>
883 <template id="total">
884 <span t-field="website_sale_order.amount_total" t-field-options='{
885 "widget": "monetary",
886 "display_currency": "website.pricelist_id.currency_id"