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="str(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="hidden" id="products_grid_before"></div>
106 <div class="col-md-12" id="products_grid">
107 <t t-if="product_ids">
110 <t t-set="table_products" t-value="Ecommerce.get_bin_packing_products(product_ids, product_ids_for_holes, 4)"/>
111 <tr t-foreach="table_products" t-as="tr_product">
112 <t t-foreach="tr_product" t-as="td_product">
113 <t t-if="td_product">
114 <t t-set="product" t-value="td_product['product']"/>
115 <td t-att-colspan="td_product['x']"
116 t-attf-width="#{td_product['x']*25}%"
117 t-att-rowspan="td_product['y']"
118 t-attf-class="oe_product oe-height-#{td_product['y']*2} #{ td_product['class'] }">
120 <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
122 <div class="css_options" t-ignore="true" t-if="editable">
123 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
124 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
125 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
126 <li class='dropdown-submenu'>
127 <a tabindex="-1" href="#">Size</a>
128 <ul class="dropdown-menu" name="size">
132 <td class="selected"></td>
133 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
134 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
135 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
138 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
139 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
140 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
141 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
144 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
145 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
146 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
147 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
150 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
151 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
152 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
153 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
159 <li class='dropdown-submenu'>
160 <a tabindex="-1" href="#">Styles</a>
161 <ul class="dropdown-menu" name="style">
162 <t t-foreach="styles" t-as="style">
163 <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>
171 <t t-call="website_sale.products_cart"/>
176 <td t-if="td_product == None"/>
182 <t t-if="not product_ids">
183 <h3 class="text-center text-muted">No product found for this search</h3>
187 <div class="products_pager">
188 <t t-call="website.pager">
189 <t t-set="classname">pull-right</t>
193 <div class="oe_structure mb32"/>
198 <!-- Product Description-->
200 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
201 <xpath expr="//div[@class='oe_product_description']" position="inside">
202 <p class="text-muted oe_subdescription">
203 <span t-field="product.description_sale"/>
208 <!-- Add to cart button-->
210 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
211 <xpath expr="//div[@class='product_price']" position="inside">
212 <a t-href="./add_cart/?product_id=#{ product.id }" class="js_add_cart_json">
213 <span class="icon-shopping-cart"/>
218 <!-- List view of products -->
220 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
221 <xpath expr="//div[@id='products_grid']/table" position="replace">
223 <t t-set="products" t-value="Ecommerce.get_products(product_ids)"/>
224 <t t-foreach="products" t-as="product">
225 <div class="col-md-12 oe_list_products oe-height-1">
226 <t t-call="website_sale.products_cart"/>
236 <template id="product" name="Product">
237 <t t-call="website.layout">
239 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
241 <t t-set="additional_title" t-value="product.name"/>
244 <section class="container mt8">
246 <div class="col-sm-5">
247 <ol class="breadcrumb">
248 <li><a t-href="/shop">Products</a></li>
249 <li t-if="search.get('category')"><a t-href="/shop/" t-keep-query="category,search,facettes"><span t-field="category.name"/></a></li>
250 <li class="active"><span t-field="product.name"></span></li>
252 </div><div class="col-sm-3">
253 <t t-call="website.publish_management">
254 <t t-set="object" t-value="product"/>
255 <t t-set="publish_edit" t-value="True"/>
256 <li class='dropdown-submenu'>
257 <a tabindex="-1" href="#">Promote</a>
258 <ul class="dropdown-menu" name="sequence">
259 <li><a href="#" class="js_go_to_top">Push to top</a></li>
260 <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
264 </div><div class="col-sm-3 col-sm-offset-1">
265 <form t-action="/shop/" method="get" class="pull-right">
266 <t t-call="website_sale.search" />
272 <section class="container oe_website_sale mb16" id="product_detail">
274 <div class="col-sm-7 col-md-7 col-lg-7">
275 <span t-field="product.image" style="max-height: 500px" t-field-options='{"widget": "image", "class": "img img-responsive"}'/>
276 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
277 <h1 t-field="product.name">Product Name</h1>
279 <form t-action="./add_cart/" class="js_add_cart_json">
280 <input type="hidden" t-if="len(product.product_variant_ids) <= 1" name="product_id" t-att-value="product.id"/>
281 <t t-if="len(product.product_variant_ids) > 1">
282 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="product">
283 <input type="radio" name="product_id" t-att-value="product.id" t-att-checked="product == product.product_variant_ids[0] or None"/>
284 <t t-esc="product.variants or ''">Standard</t>
285 <span class="badge" t-if="product.price_extra">
286 <t t-esc="product.price_extra > 0 and '+' or ''"/><span t-field="product.price_extra" t-field-options='{
287 "widget": "monetary",
288 "display_currency": "website.pricelist_id.currency_id"
295 <div class="product_price mt16" t-if="product.product_variant_ids">
297 <b><span class="oe_price" t-esc="product.product_variant_ids[0].price" /> €</b>
299 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
300 <span class="text-danger" style="text-decoration: line-through;">
301 <t t-esc="product.product_variant_ids[0].lst_price" /> €
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="//div[@id='product_full_description']" position="after">
350 <div class="container">
353 <t t-foreach="product.website_attribute_ids" t-as="attribute">
354 <tr t-if="attribute.attribute_id.type == 'distinct'">
355 <th><span t-field="attribute.attribute_id"/></th>
356 <td><span t-field="attribute.value_id"/></td>
358 <tr t-if="attribute.attribute_id.type == 'float'">
359 <th><span t-field="attribute.attribute_id"/></th>
360 <td><span t-field="attribute.value"/></td>
368 <!-- Page Shop my cart -->
370 <template id="mycart" name="Your Cart">
371 <t t-call="website.layout">
373 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
374 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
375 <t t-raw="head or ''"/>
378 <div class="container oe_website_sale">
380 <ul class="wizard pull-right">
381 <li class="text-primary">Review Order<span class="chevron"></span></li>
382 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
383 <li class="text-muted">Payment<span class="chevron"></span></li>
384 <li class="text-muted">Confirmation<span class="chevron"></span></li>
386 <h1 class="mb32">Shopping Cart</h1>
388 <div class="col-md-8 col-md-offset-1 oe_mycart">
389 <div t-if="not website_sale_order or not website_sale_order.order_line" class="well well-lg">
392 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
401 <th colspan="2">Product</th>
407 <tr t-foreach="website_sale_order.order_line" t-as="line">
408 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
409 <td t-if="line.product_id.product_tmpl_id">
410 <span t-field="line.product_id.image_small"
411 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
413 <td t-if="line.product_id.product_tmpl_id">
415 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
416 <strong t-field="line.product_id.name"/>
419 <div class="text-muted" t-field="line.product_id.description_sale"/>
421 <td class="text-center">
422 <del class="text-danger" t-if="line.product_id.lst_price > line.price_unit">
423 <span t-field="line.product_id.lst_price" t-field-options='{
424 "widget": "monetary",
425 "display_currency": "website.pricelist_id.currency_id"
428 <span t-field="line.price_unit" t-field-options='{
429 "widget": "monetary",
430 "display_currency": "website.pricelist_id.currency_id"
434 <div class="input-group">
435 <span class="input-group-addon">
436 <a t-href="./add_cart/?remove=True&order_line_id=#{ line.id }" class="mb8 js_add_cart_json">
437 <span class="icon-minus"/>
440 <input type="text" class="js_quantity form-control"
441 t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
442 <span class="input-group-addon">
443 <a t-href="./add_cart/?order_line_id=#{ line.id }" class="mb8 float_left js_add_cart_json">
444 <span class="icon-plus"/>
453 <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
459 <tr style="border-top: 1px solid #000">
460 <th><h3>Total:</h3></th>
461 <th class="text-right">
462 <h3><t t-call="website_sale.total"/></h3>
465 <tr class="text-muted">
466 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
467 <td class="text-right">
468 <span t-field="website_sale_order.amount_tax" t-field-options='{
469 "widget": "monetary",
470 "display_currency": "website.pricelist_id.currency_id"
476 <div class="clearfix"/>
477 <a t-href="/shop" class="btn btn-default mb32"><span class="icon-long-arrow-left"/> Continue Shopping</a>
478 <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>
479 <div class="oe_structure"/>
481 <div class="col-md-3 text-muted" id="right_column">
483 <ul class="list-unstyled mb32">
484 <li>☑ 30-days money-back guarantee</li>
485 <li>☑ Invoice sent by e-Mail</li>
487 <h4>Secure Payment</h4>
488 <ul class="list-unstyled mb32">
489 <li>☑ 256 bit encryption</li>
490 <li>☑ Processed by Ogone</li>
496 <div class="oe_structure"/>
503 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
504 <xpath expr="//div[@id='products_grid_before']" position="inside">
505 <ul class="nav nav-pills nav-stacked mt16">
506 <li t-att-class=" '' if search.get('category') else 'active' "><a t-href="/shop/">All Products</a></li>
507 <t t-set="categ" t-value="Ecommerce.get_categories()"/>
508 <t t-foreach="categ[0]" t-as="category">
509 <t t-call="website_sale.categories_recursive"/>
513 <xpath expr="//div[@id='products_grid_before']" position="attributes">
514 <attribute name="class">col-md-3</attribute>
516 <xpath expr="//div[@id='products_grid']" position="attributes">
517 <attribute name="class">col-md-9</attribute>
521 <template id="products_attributes" inherit_option_id="website_sale.products" name="Product Filters and Attributes">
522 <xpath expr="//div[@id='products_grid_before']" position="inside">
523 <form t-action="/shop/filter/" method="post" t-keep-query="category,search,add_filter">
524 <ul class="nav nav-pills nav-stacked mt16">
525 <t t-set="attribute_ids" t-value="Ecommerce.get_attribute_ids()"/>
526 <t t-foreach="attribute_ids" t-as="attribute_id">
527 <t t-if="attribute_id.visible">
528 <li t-if="attribute_id.value_ids and attribute_id.type == 'distinct'">
529 <div t-field="attribute_id.name"/>
530 <ul class="nav nav-pills nav-stacked">
531 <t t-foreach="attribute_id.value_ids" t-as="value_id">
532 <li t-att-class="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'active' or ''">
533 <label style="margin: 0 20px;">
534 <input type="checkbox" t-att-name="'att-%s-%s' % (attribute_id.id, value_id.id)"
535 t-att-checked="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'checked' or ''"/>
536 <span style="font-weight: normal" t-field="value_id.name"/>
542 <li t-if="attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max">
543 <div t-field="attribute_id.name"/>
544 <t t-set="attribute" t-value="Ecommerce.has_search_filter(attribute_id.id)"/>
545 <div style="margin: 0 20px;" class="js_slider"
546 t-att-data-id="attribute_id.id"
547 t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min"
548 t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
549 t-att-data-min="attribute_id.float_min"
550 t-att-data-max="attribute_id.float_max"></div>
555 <button class="btn btn-xs btn-primary mt16">Apply filter</button>
556 <a t-href="/shop/" t-keep-query="category,search,add_filter" class="btn btn-xs btn-default mt16">Cancel filter</a>
559 <xpath expr="//div[@id='products_grid_before']" position="attributes">
560 <attribute name="class">col-md-3</attribute>
562 <xpath expr="//div[@id='products_grid']" position="attributes">
563 <attribute name="class">col-md-9</attribute>
567 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in my cart">
568 <xpath expr="//table[@id='mycart_products']" position="after">
569 <table t-if="suggested_products" class='table table-striped table-condensed'>
578 <th colspan="2">Suggested products</th>
582 <tr t-foreach="suggested_products" t-as="product">
585 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
586 <span t-field="product.image_small"
587 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
592 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
593 <strong t-field="product.name"/>
596 <div class="text-muted" t-field="product.description_sale"/>
599 <span t-field="product.lst_price" t-field-options='{
600 "widget": "monetary",
601 "display_currency": "website.pricelist_id.currency_id"
604 <td class="text-center">
605 <a t-href="./add_cart/?product_id=#{ product.id }"><strong>Add to Cart</strong></a>
613 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
614 <xpath expr="//div[@id='right_column']" position="inside">
617 Have a coupon code? Fill in this field and apply.
619 <form t-if="website_sale_order and website_sale_order.order_line" t-action="/shop/mycart/" method="post" class="mb32">
620 <div class="input-group">
621 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
622 <div class="input-group-btn">
623 <button class="btn btn-default">Apply</button>
631 <!-- Page confirm my cart -->
633 <template id="checkout">
634 <t t-call="website.layout">
636 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
637 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
638 <t t-raw="head or ''"/>
640 <t t-set="additional_title">Shop - Checkout</t>
642 <div class="container oe_website_sale">
643 <ul class="wizard pull-right">
644 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
645 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
646 <li class="text-muted">Payment<span class="chevron"></span></li>
647 <li class="text-muted">Confirmation<span class="chevron"></span></li>
649 <h1>Your Address</h1>
650 <form t-action="/shop/confirm_order/" method="post">
653 <div class="col-md-8 oe_mycart">
654 <h3 class="page-header mt16">Billing Information
655 <small t-if="user_id.id == website.public_user.id"> or
656 <a t-if="not partner" t-attf-href="/web#action=redirect&url=#{ request.httprequest.url }">sign in</a>
660 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
661 <label class="control-label" for="contact_name">Your Name</label>
662 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
664 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
665 <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
666 <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
668 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
669 <label class="control-label" for="contact_name">Email</label>
670 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
672 <div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6">
673 <label class="control-label" for="phone">Phone</label>
674 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
677 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
678 <label class="control-label" for="street">Street</label>
679 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
681 <div class="clearfix"/>
683 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
684 <label class="control-label" for="city">City</label>
685 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
687 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
688 <label class="control-label" for="zip">Zip / Postal Code</label>
689 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
691 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
692 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
693 <select name="state_id" class="form-control">
694 <option value="">select...</option>
695 <t t-foreach="states or []" t-as="state">
696 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
700 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
701 <label class="control-label" for="contact_name">Country</label>
702 <select name="country_id" class="form-control">
703 <option value="">Country...</option>
704 <t t-foreach="countries or []" t-as="country">
705 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
710 <div class="clearfix"/>
712 <div class="form-group col-lg-6">
714 <input t-if="not shipping" type="checkbox" name="shipping_different"/>
715 <input t-if="shipping" type="checkbox" name="shipping_different" checked="1"/>
716 Ship to a different address
721 <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''">
722 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
724 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
725 <label class="control-label" for="contact_name">Name (Shipping)</label>
726 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
728 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
729 <label class="control-label" for="contact_name">Phone</label>
730 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
732 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
733 <label class="control-label" for="contact_name">Street</label>
734 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
736 <div class="clearfix"/>
737 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
738 <label class="control-label" for="contact_name">City</label>
739 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
741 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
742 <label class="control-label" for="contact_name">Zip / Postal Code</label>
743 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
745 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
746 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
747 <select name="shipping_state_id" class="form-control">
748 <option value="">State / Province...</option>
749 <t t-foreach="states or []" t-as="state">
750 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
754 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
755 <label class="control-label" for="contact_name">Country</label>
756 <select name="shipping_country_id" class="form-control">
757 <option value="">Country...</option>
758 <t t-foreach="countries or []" t-as="country">
759 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
764 <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="icon-long-arrow-right"/></button>
766 <div class="col-lg-offset-1 col-lg-3 text-muted">
767 <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="icon-arrow-right"/> change</a></small></h3>
769 <div class="col-sm-6 text-right">Subtotal:</div>
770 <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
771 "widget": "monetary",
772 "display_currency": "website.pricelist_id.currency_id"
774 <div class="col-sm-6 text-right">Taxes:</div>
775 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
776 "widget": "monetary",
777 "display_currency": "website.pricelist_id.currency_id"
779 <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
780 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
781 "widget": "monetary",
782 "display_currency": "website.pricelist_id.currency_id"
793 <template id="payment">
794 <t t-call="website.layout">
796 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
797 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
798 <t t-raw="head or ''"/>
800 <t t-set="additional_title">Shop - Select Payment Mode</t>
802 <div class="container oe_website_sale">
804 <ul class="wizard pull-right">
805 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
806 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
807 <li class="text-primary">Payment<span class="chevron"></span></li>
808 <li class="text-muted">Confirmation<span class="chevron"></span></li>
810 <h1 class="mb32">Validate Order</h1>
812 <div class="col-md-8 oe_mycart">
813 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
822 <th colspan="2">Product</th>
828 <tr t-foreach="website_sale_order.order_line" t-as="line">
829 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
830 <td t-if="line.product_id.product_tmpl_id">
831 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
832 <span t-field="line.product_id.image_small"
833 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
836 <td t-if="line.product_id.product_tmpl_id">
837 <strong t-field="line.product_id.name"/>
839 <td class="text-center">
840 <span t-field="line.price_unit" t-field-options='{
841 "widget": "monetary",
842 "display_currency": "website.pricelist_id.currency_id"
846 <div t-esc="line.product_uom_qty"/>
851 <table class='pull-right mb16' id="mycart_total">
857 <tr style="border-top: 1px solid #000">
858 <th><h3>Total:</h3></th>
859 <th class="text-right"><h3><span t-field="website_sale_order.amount_total" t-field-options='{
860 "widget": "monetary",
861 "display_currency": "website.pricelist_id.currency_id"
864 <tr class="text-muted">
865 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
866 <td class="text-right"><span t-field="website_sale_order.amount_tax" t-field-options='{
867 "widget": "monetary",
868 "display_currency": "website.pricelist_id.currency_id"
873 <div class="clearfix"/>
874 <div class="oe_structure"/>
876 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
878 <div t-field="website_sale_order.partner_invoice_id"/>
880 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
883 <h4 class="mt32">Ship To:</h4>
884 <div t-field="website_sale_order.partner_shipping_id"/>
886 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
892 <div class="js_payment mb64">
893 <p>Select your payment method:</p>
895 <t t-foreach="payments or []" t-as="payment">
897 <input t-att-value="payment.id" type="radio" name="payment_type"/> <t t-esc="payment.name"/>
901 <t t-foreach="payments or []" t-as="payment">
902 <div t-att-data-id="payment.id" t-raw="payment._content" class="hidden"/>
904 <a t-href="/shop/payment_validate/" class="btn btn-primary mt16">Validate & Pay <span class="icon-long-arrow-right"/></a>
908 <div class="oe_structure"/>
914 <template id="total">
915 <span t-field="website_sale_order.amount_total" t-field-options='{
916 "widget": "monetary",
917 "display_currency": "website.pricelist_id.currency_id"