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 ''"/>
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 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 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 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 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>
298 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
299 <span class="text-danger" style="text-decoration: line-through;"
300 t-field="product.product_variant_ids[0].lst_price"
302 "widget": "monetary",
303 "display_currency": "website.pricelist_id.currency_id"
307 t-field="product.product_variant_ids[0].price"
309 "widget": "monetary",
310 "display_currency": "website.pricelist_id.currency_id"
314 <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
315 <hr t-if="product.description_sale"/>
316 <p t-field="product.description_sale" class="text-muted"/>
318 <p class="text-muted">
319 30-day money-back guarantee<br/>
320 Free Shipping in U.S.<br/>
321 Buy now, get in 2 days
327 <div t-field="product.website_description" class="oe_structure" id="product_full_description"/>
332 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
333 <xpath expr="//div[@id='product_full_description']" position="after">
334 <div class="container mt32" t-if="product.recommended_products()">
335 <h3>Customers who have bought this product also bought:</h3>
336 <div class='row mt16' style="margin-left: 15px !important;">
337 <t t-foreach="product.recommended_products()" t-as="product">
338 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
339 <div class='mt16 text-center'>
340 <span t-field="product.image_small"/>
342 <a t-href="/shop/product/#{ product.id }/"
343 style="display: block">
344 <span t-field='product.name'
345 style="display: block"/>
356 <template id="product_attributes" inherit_option_id="website_sale.product" name="Product Attributes">
357 <xpath expr="//p[@t-field='product.description_sale']" position="after">
358 <hr t-if="product.website_attribute_ids"/>
359 <p class="text-muted">
360 <t t-set="attr" t-value="None"/>
361 <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>
366 <!-- Page Shop my cart -->
368 <template id="mycart" name="Your Cart">
369 <t t-call="website.layout">
371 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
372 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
373 <t t-raw="head or ''"/>
376 <div class="container oe_website_sale">
378 <ul class="wizard pull-right">
379 <li class="text-primary">Review Order<span class="chevron"></span></li>
380 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
381 <li class="text-muted">Payment<span class="chevron"></span></li>
382 <li class="text-muted">Confirmation<span class="chevron"></span></li>
384 <h1 class="mb32">Shopping Cart</h1>
386 <div class="col-md-8 col-md-offset-1 oe_mycart">
387 <div t-if="not website_sale_order or not website_sale_order.order_line" class="well well-lg">
390 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
399 <th colspan="2">Product</th>
405 <tr t-foreach="website_sale_order.order_line" t-as="line">
406 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
407 <td t-if="line.product_id.product_tmpl_id">
408 <span t-field="line.product_id.image_small"
409 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
411 <td t-if="line.product_id.product_tmpl_id">
413 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
414 <strong t-field="line.product_id.name"/>
417 <div class="text-muted" t-field="line.product_id.description_sale"/>
419 <td class="text-center">
420 <del class="text-danger" t-if="line.product_id.lst_price > line.price_unit">
421 <span t-field="line.product_id.lst_price" t-field-options='{
422 "widget": "monetary",
423 "display_currency": "website.pricelist_id.currency_id"
426 <span t-field="line.price_unit" t-field-options='{
427 "widget": "monetary",
428 "display_currency": "website.pricelist_id.currency_id"
432 <div class="input-group">
433 <span class="input-group-addon">
434 <a t-href="./add_cart/?remove=True&order_line_id=#{ line.id }" class="mb8 js_add_cart_json">
435 <span class="icon-minus"/>
438 <input type="text" class="js_quantity form-control"
439 t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
440 <span class="input-group-addon">
441 <a t-href="./add_cart/?order_line_id=#{ line.id }" class="mb8 float_left js_add_cart_json">
442 <span class="icon-plus"/>
451 <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
457 <tr style="border-top: 1px solid #000">
458 <th><h3>Total:</h3></th>
459 <th class="text-right">
460 <h3><t t-call="website_sale.total"/></h3>
463 <tr class="text-muted">
464 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
465 <td class="text-right">
466 <span t-field="website_sale_order.amount_tax" t-field-options='{
467 "widget": "monetary",
468 "display_currency": "website.pricelist_id.currency_id"
474 <div class="clearfix"/>
475 <a href="/shop" class="btn btn-default mb32"><span class="icon-long-arrow-left"/> Continue Shopping</a>
476 <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>
477 <div class="oe_structure"/>
479 <div class="col-md-3 text-muted" id="right_column">
481 <ul class="list-unstyled mb32">
482 <li>☑ 30-days money-back guarantee</li>
483 <li>☑ Invoice sent by e-Mail</li>
485 <h4>Secure Payment</h4>
486 <ul class="list-unstyled mb32">
487 <li>☑ 256 bit encryption</li>
488 <li>☑ Processed by Ogone</li>
494 <div class="oe_structure"/>
501 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
502 <xpath expr="//div[@id='products_grid_before']" position="inside">
503 <ul class="nav nav-pills nav-stacked mt16">
504 <li t-att-class=" '' if search.get('category') else 'active' "><a href="/shop/">All Products</a></li>
505 <t t-set="categ" t-value="Ecommerce.get_categories()"/>
506 <t t-foreach="categ[0]" t-as="category">
507 <t t-call="website_sale.categories_recursive"/>
511 <xpath expr="//div[@id='products_grid_before']" position="attributes">
512 <attribute name="class">col-md-3</attribute>
514 <xpath expr="//div[@id='products_grid']" position="attributes">
515 <attribute name="class">col-md-9</attribute>
519 <template id="products_attributes" inherit_option_id="website_sale.products" name="Product Filters and Attributes">
520 <xpath expr="//div[@id='products_grid_before']" position="inside">
521 <form t-action="/shop/filter/" method="post" t-keep-query="category,search,add_filter">
522 <ul class="nav nav-pills nav-stacked mt16">
523 <t t-set="attribute_ids" t-value="Ecommerce.get_attribute_ids()"/>
524 <t t-foreach="attribute_ids" t-as="attribute_id">
525 <t t-if="attribute_id.visible">
526 <li t-if="attribute_id.value_ids and attribute_id.type == 'distinct'">
527 <div t-field="attribute_id.name"/>
528 <ul class="nav nav-pills nav-stacked">
529 <t t-foreach="attribute_id.value_ids" t-as="value_id">
530 <li t-att-class="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'active' or ''">
531 <label style="margin: 0 20px;">
532 <input type="checkbox" t-att-name="'att-%s-%s' % (attribute_id.id, value_id.id)"
533 t-att-checked="Ecommerce.has_search_filter(attribute_id.id, value_id.id) and 'checked' or ''"/>
534 <span style="font-weight: normal" t-field="value_id.name"/>
540 <li t-if="attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max">
541 <div t-field="attribute_id.name"/>
542 <t t-set="attribute" t-value="Ecommerce.has_search_filter(attribute_id.id)"/>
543 <div style="margin: 0 20px;" class="js_slider"
544 t-att-data-id="attribute_id.id"
545 t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min"
546 t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
547 t-att-data-min="attribute_id.float_min"
548 t-att-data-max="attribute_id.float_max"></div>
553 <button class="btn btn-xs btn-primary mt16">Apply filter</button>
554 <a t-href="/shop/" t-keep-query="category,search,add_filter" class="btn btn-xs btn-default mt16">Cancel filter</a>
557 <xpath expr="//div[@id='products_grid_before']" position="attributes">
558 <attribute name="class">col-md-3</attribute>
560 <xpath expr="//div[@id='products_grid']" position="attributes">
561 <attribute name="class">col-md-9</attribute>
565 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in my cart">
566 <xpath expr="//table[@id='mycart_products']" position="after">
567 <table t-if="suggested_products" class='table table-striped table-condensed'>
576 <th colspan="2">Suggested products</th>
580 <tr t-foreach="suggested_products" t-as="product">
583 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
584 <span t-field="product.image_small"
585 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
590 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
591 <strong t-field="product.name"/>
594 <div class="text-muted" t-field="product.description_sale"/>
597 <span t-field="product.lst_price" t-field-options='{
598 "widget": "monetary",
599 "display_currency": "website.pricelist_id.currency_id"
602 <td class="text-center">
603 <a t-href="./add_cart/?product_id=#{ product.id }"><strong>Add to Cart</strong></a>
611 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
612 <xpath expr="//div[@id='right_column']" position="inside">
615 Have a coupon code? Fill in this field and apply.
617 <form t-if="website_sale_order and website_sale_order.order_line" action="/shop/mycart/" method="post" class="mb32">
618 <div class="input-group">
619 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
620 <div class="input-group-btn">
621 <button class="btn btn-default">Apply</button>
629 <!-- Page confirm my cart -->
631 <template id="checkout">
632 <t t-call="website.layout">
634 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
635 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
636 <t t-raw="head or ''"/>
638 <t t-set="additional_title">Shop - Checkout</t>
640 <div class="container oe_website_sale">
641 <ul class="wizard pull-right">
642 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
643 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
644 <li class="text-muted">Payment<span class="chevron"></span></li>
645 <li class="text-muted">Confirmation<span class="chevron"></span></li>
647 <h1>Your Address</h1>
648 <form action="/shop/confirm_order/" method="post">
651 <div class="col-md-8 oe_mycart">
652 <h3 class="page-header mt16">Billing Information
653 <small t-if="user_id.id == website.public_user.id"> or
654 <a t-if="not partner" t-attf-href="/web#action=redirect&url=#{ request.httprequest.url }">sign in</a>
658 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
659 <label class="control-label" for="contact_name">Your Name</label>
660 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
662 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
663 <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
664 <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
666 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
667 <label class="control-label" for="contact_name">Email</label>
668 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
670 <div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6">
671 <label class="control-label" for="phone">Phone</label>
672 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
675 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
676 <label class="control-label" for="street">Street</label>
677 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
679 <div class="clearfix"/>
681 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
682 <label class="control-label" for="city">City</label>
683 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
685 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
686 <label class="control-label" for="zip">Zip / Postal Code</label>
687 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
689 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
690 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
691 <select name="state_id" class="form-control">
692 <option value="">select...</option>
693 <t t-foreach="states or []" t-as="state">
694 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
698 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
699 <label class="control-label" for="contact_name">Country</label>
700 <select name="country_id" class="form-control">
701 <option value="">Country...</option>
702 <t t-foreach="countries or []" t-as="country">
703 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
708 <div class="clearfix"/>
710 <div class="form-group col-lg-6">
712 <input t-if="not shipping" type="checkbox" name="shipping_different"/>
713 <input t-if="shipping" type="checkbox" name="shipping_different" checked="1"/>
714 Ship to a different address
719 <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''">
720 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
722 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
723 <label class="control-label" for="contact_name">Name (Shipping)</label>
724 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
726 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
727 <label class="control-label" for="contact_name">Phone</label>
728 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
730 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
731 <label class="control-label" for="contact_name">Street</label>
732 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
734 <div class="clearfix"/>
735 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
736 <label class="control-label" for="contact_name">City</label>
737 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
739 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
740 <label class="control-label" for="contact_name">Zip / Postal Code</label>
741 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
743 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
744 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
745 <select name="shipping_state_id" class="form-control">
746 <option value="">State / Province...</option>
747 <t t-foreach="states or []" t-as="state">
748 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
752 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
753 <label class="control-label" for="contact_name">Country</label>
754 <select name="shipping_country_id" class="form-control">
755 <option value="">Country...</option>
756 <t t-foreach="countries or []" t-as="country">
757 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
762 <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="icon-long-arrow-right"/></button>
764 <div class="col-lg-offset-1 col-lg-3 text-muted">
765 <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="icon-arrow-right"/> change</a></small></h3>
767 <div class="col-sm-6 text-right">Subtotal:</div>
768 <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
769 "widget": "monetary",
770 "display_currency": "website.pricelist_id.currency_id"
772 <div class="col-sm-6 text-right">Taxes:</div>
773 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
774 "widget": "monetary",
775 "display_currency": "website.pricelist_id.currency_id"
777 <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
778 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
779 "widget": "monetary",
780 "display_currency": "website.pricelist_id.currency_id"
791 <template id="payment">
792 <t t-call="website.layout">
794 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
795 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_payment.js"></script>
796 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
797 <t t-raw="head or ''"/>
799 <t t-set="additional_title">Shop - Select Payment Mode</t>
801 <div class="container oe_website_sale">
803 <ul class="wizard pull-right">
804 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
805 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
806 <li class="text-primary">Payment<span class="chevron"></span></li>
807 <li class="text-muted">Confirmation<span class="chevron"></span></li>
809 <h1 class="mb32">Validate Order</h1>
811 <div class="col-md-8 oe_mycart">
812 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
821 <th colspan="2">Product</th>
827 <tr t-foreach="website_sale_order.order_line" t-as="line">
828 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
829 <td t-if="line.product_id.product_tmpl_id">
830 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
831 <span t-field="line.product_id.image_small"
832 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
835 <td t-if="line.product_id.product_tmpl_id">
836 <strong t-field="line.product_id.name"/>
838 <td class="text-center">
839 <span t-field="line.price_unit" t-field-options='{
840 "widget": "monetary",
841 "display_currency": "website.pricelist_id.currency_id"
845 <div t-esc="line.product_uom_qty"/>
850 <table class='pull-right mb16' id="mycart_total">
856 <tr style="border-top: 1px solid #000">
857 <th><h3>Total:</h3></th>
858 <th class="text-right"><h3><span t-field="website_sale_order.amount_total" t-field-options='{
859 "widget": "monetary",
860 "display_currency": "website.pricelist_id.currency_id"
863 <tr class="text-muted">
864 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
865 <td class="text-right"><span t-field="website_sale_order.amount_tax" t-field-options='{
866 "widget": "monetary",
867 "display_currency": "website.pricelist_id.currency_id"
872 <div class="clearfix"/>
873 <div class="oe_structure"/>
875 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
877 <div t-field="website_sale_order.partner_invoice_id"/>
879 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
882 <h4 class="mt32">Ship To:</h4>
883 <div t-field="website_sale_order.partner_shipping_id"/>
885 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
891 <div class="js_payment mb64" t-if="not payment_acquirer_id and payments">
892 <p>Select your payment method:</p>
894 <t t-foreach="payments" t-as="payment">
895 <label t-if="payment._content">
896 <input t-att-value="payment.id" type="radio" name="payment_type"/> <t t-esc="payment.name"/>
900 <t t-foreach="payments" t-as="payment">
901 <div t-att-data-id="payment.id" t-raw="payment._content" class="hidden"/>
905 <div class="js_payment_validation mb64" t-if="payment_acquirer_id">
906 Please wait, we validate your payment.
908 <t t-esc="validation"/>
913 <div class="oe_structure"/>
919 <template id="confirmation">
920 <t t-call="website.layout">
922 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
923 <t t-raw="head or ''"/>
925 <t t-set="additional_title">Shop - Confirmed</t>
927 <div class="container oe_website_sale">
929 <ul class="wizard pull-right">
930 <li class="text-muted">Review Order<span class="chevron"></span></li>
931 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
932 <li class="text-muted">Payment<span class="chevron"></span></li>
933 <li class="text-primary">Confirmation<span class="chevron"></span></li>
935 <h1 class="mb32">Validate Order</h1>
937 <div class="col-md-8 oe_mycart">
938 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
947 <th colspan="2">Product</th>
953 <tr t-foreach="website_sale_order.order_line" t-as="line">
954 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
955 <td t-if="line.product_id.product_tmpl_id">
956 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
957 <span t-field="line.product_id.image_small"
958 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
961 <td t-if="line.product_id.product_tmpl_id">
962 <strong t-field="line.product_id.name"/>
964 <td class="text-center">
965 <span t-field="line.price_unit" t-field-options='{
966 "widget": "monetary",
967 "display_currency": "website.pricelist_id.currency_id"
971 <div t-esc="line.product_uom_qty"/>
976 <table class='pull-right mb16' id="mycart_total">
982 <tr style="border-top: 1px solid #000">
983 <th><h3>Total:</h3></th>
984 <th class="text-right"><h3><span t-field="website_sale_order.amount_total" t-field-options='{
985 "widget": "monetary",
986 "display_currency": "website.pricelist_id.currency_id"
989 <tr class="text-muted">
990 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
991 <td class="text-right"><span t-field="website_sale_order.amount_tax" t-field-options='{
992 "widget": "monetary",
993 "display_currency": "website.pricelist_id.currency_id"
998 <div class="clearfix"/>
999 <div class="oe_structure"/>
1001 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
1003 <div t-field="website_sale_order.partner_invoice_id"/>
1005 <h4 class="mt32">Ship To:</h4>
1006 <div t-field="website_sale_order.partner_shipping_id"/>
1010 <h2>Tanks you for your order.</h2>
1011 <a href="/shop/payment_validate/" class="btn btn-primary mt16">Validate & Pay <span class="icon-long-arrow-right"/></a>
1014 <div class="oe_structure"/>
1020 <template id="total">
1021 <span t-field="website_sale_order.amount_total" t-field-options='{
1022 "widget": "monetary",
1023 "display_currency": "website.pricelist_id.currency_id"