1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- Layout add nav and footer -->
7 <template id="header" inherit_id="website.layout" name="Custom Header">
8 <xpath expr="//header//ul[@id='top_menu']/li" position="before">
9 <li><a t-href="/shop/">Shop</a></li>
10 <li t-att-class="(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''">
11 <a t-href="/shop/mycart/">
12 <i class="icon-shopping-cart"></i>
13 My cart <sup t-attf-class="my_cart_quantity label label-primary"
14 t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
20 <!-- List of categories -->
22 <template id="categories_recursive" name="Category list">
23 <li t-att-class="category.id == search.get('category') and 'active' or ''">
24 <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>
25 <ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
26 <t t-foreach="category.child_id" t-as="category">
27 <t t-if="category.id in categ[1] or editable">
28 <t t-call="website_sale.categories_recursive"/>
37 <template id="products_cart" name="Shopping cart">
38 <div class="ribbon-wrapper">
39 <div class="ribbon">Promo</div>
41 <div class="oe_product_description">
42 <a t-href="/shop/product/#{ product.id }/" t-keep-query="category,search,facettes">
43 <b t-field="product.name"/>
46 <div class="product_price">
48 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
49 <del class="text-danger"
50 t-field="product.product_variant_ids[0].lst_price" t-field-options='{
52 "display_currency": "website.pricelist_id.currency_id"
55 <span t-field="product.product_variant_ids[0].price" t-field-options='{
57 "display_currency": "website.pricelist_id.currency_id"
61 <div class="oe_product_image text-center">
62 <a t-href="/shop/product/#{ product.id }/" t-keep-query="category,search,facettes">
63 <img class="img" t-att-src="product.img('image')"/>
68 <template id="products" name="Products" page="True">
69 <t t-call="website.layout">
71 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
72 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
73 <t t-raw="head or ''"/>
75 <t t-set="additional_title">Our Products</t>
77 <div class="oe_structure"/>
78 <div class="container oe_website_sale">
80 <div class="col-sm-4">
82 </div><div class="col-sm-2 pagination text-center">
83 <a t-if="editable" t-href="/shop/add_product/" class="btn btn-primary btn-default" t-keep-query="category,search,facettes">New Product</a>
84 </div><div class="col-sm-6">
85 <t t-call="website.pager">
86 <t t-set="classname">pull-right</t>
88 <form t-action="/shop/" method="get" class="pull-right pagination form-inline" style="padding-right: 5px;" t-keep-query="category,search,facettes">
89 <div class="form-group">
90 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search.get('search') or ''"/>
96 <div class='style_default row'>
97 <div class="col-md-12" id="products_grid">
100 <t t-set="table_products" t-value="Ecommerce.get_bin_packing_products(product_ids, product_ids_for_holes, 4)"/>
101 <tr t-foreach="table_products" t-as="tr_product">
102 <t t-foreach="tr_product" t-as="td_product">
103 <t t-if="td_product">
104 <t t-set="product" t-value="td_product['product']"/>
105 <td t-att-colspan="td_product['x']"
106 t-attf-width="#{td_product['x']*25}%"
107 t-att-rowspan="td_product['y']"
108 t-attf-class="oe_product oe-height-#{td_product['y']*2} #{ td_product['class'] }">
110 <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
112 <div class="css_options" t-ignore="true" t-if="editable">
113 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
114 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
115 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
116 <li class='dropdown-submenu'>
117 <a tabindex="-1" href="#">Size</a>
118 <ul class="dropdown-menu" name="size">
122 <td class="selected"></td>
123 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
124 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
125 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
128 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
129 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
130 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
131 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
134 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
135 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
136 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
137 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
140 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
141 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
142 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
143 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
149 <li class='dropdown-submenu'>
150 <a tabindex="-1" href="#">Styles</a>
151 <ul class="dropdown-menu" name="style">
152 <t t-foreach="styles" t-as="style">
153 <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>
161 <t t-call="website_sale.products_cart"/>
166 <td t-if="td_product == None"/>
173 <div class="text-center">
174 <t t-call="website.pager" />
177 <div class="oe_structure mb32"/>
182 <!-- Product Description-->
184 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
185 <xpath expr="//div[@class='oe_product_description']" position="inside">
186 <p class="text-muted oe_subdescription">
187 <span t-field="product.description_sale"/>
192 <!-- Add to cart button-->
194 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
195 <xpath expr="//div[@class='product_price']" position="inside">
196 <a t-href="./add_cart/?product_id=#{ product.id }" class="js_add_cart_json">
197 <span class="icon-shopping-cart"/>
202 <!-- List view of products -->
204 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
205 <xpath expr="//div[@id='products_grid']/table" position="replace">
207 <t t-set="products" t-value="Ecommerce.get_products(product_ids)"/>
208 <t t-foreach="products" t-as="product">
209 <div class="col-md-12 oe_list_products oe-height-1">
210 <t t-call="website_sale.products_cart"/>
220 <template id="product" name="Product">
221 <t t-call="website.layout">
223 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
225 <t t-set="additional_title" t-value="product.name"/>
228 <section class="container mt8">
230 <div class="col-sm-5">
231 <ol class="breadcrumb">
232 <li><a t-href="/shop">Products</a></li>
233 <li t-if="search.get('category')"><a t-att-href="'/shop/" t-keep-query="category,search,facettes"><span t-field="category.name"/></a></li>
234 <li class="active"><span t-field="product.name"></span></li>
236 </div><div class="col-sm-3">
237 <t t-call="website.publish_management">
238 <t t-set="object" t-value="product"/>
239 <t t-set="publish_edit" t-value="True"/>
240 <li class='dropdown-submenu'>
241 <a tabindex="-1" href="#">Promote</a>
242 <ul class="dropdown-menu" name="sequence">
243 <li><a href="#" class="js_go_to_top">Push to top</a></li>
244 <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
248 </div><div class="col-sm-3 col-sm-offset-1">
249 <form t-action="/shop/" method="get" class="pull-right" t-keep-query="category,facettes">
250 <div class="input-group">
252 <t foreach="search.items()" t-as="key">
253 <input t-att-name="key[0]" t-att-value="key[1]"/>
256 <span class="input-group-addon"><span class="glyphicon glyphicon-search"/></span>
257 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search or ''"/>
264 <section class="container oe_website_sale mb16" id="product_detail">
266 <div class="col-sm-7 col-md-7 col-lg-7">
267 <span t-field="product.image" style="max-height: 500px" t-field-options='{"widget": "image"}'/>
268 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
269 <h1 t-field="product.name">Product Name</h1>
271 <form t-action="./add_cart/" class="js_add_cart_json">
272 <input type="hidden" t-if="len(product.product_variant_ids) <= 1" name="product_id" t-att-value="product.id"/>
273 <t t-if="len(product.product_variant_ids) > 1">
274 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="product">
275 <input type="radio" name="product_id" t-att-value="product.id" t-att-checked="product == product.product_variant_ids[0] or None"/>
276 <t t-esc="product.variants or ''">Standard</t>
277 <span class="badge" t-if="product.price_extra">
278 <t t-esc="product.price_extra > 0 and '+' or ''"/><span t-field="product.price_extra" t-field-options='{
279 "widget": "monetary",
280 "display_currency": "website.pricelist_id.currency_id"
287 <div class="product_price mt16">
289 <b><span class="oe_price" t-esc="product.product_variant_ids[0].price" /> €</b>
291 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
292 <span class="text-danger" style="text-decoration: line-through;">
293 <t t-esc="product.product_variant_ids[0].lst_price" /> €
296 <h4><b><span class="oe_price" t-esc="product.product_variant_ids[0].price" /> €</b></h4>
299 <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
300 <hr t-if="product.description_sale"/>
301 <p t-field="product.description_sale" class="text-muted"/>
303 <p class="text-muted">
304 30-day money-back guarantee<br/>
305 Free Shipping in U.S.<br/>
306 Buy now, get in 2 days
312 <div t-field="product.website_description" class="oe_structure" id="product_full_description"/>
317 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
318 <xpath expr="//div[@id='product_full_description']" position="after">
319 <div class="container mt32" t-if="product.recommended_products()">
320 <h3>Customers who have bought this product also bought:</h3>
321 <div class='row mt16' style="margin-left: 15px !important;">
322 <t t-foreach="product.recommended_products()" t-as="product">
323 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
324 <div class='mt16 text-center'>
325 <span t-field="product.image_small"/>
327 <a t-href="/shop/product/#{ product.id }/"
328 style="display: block">
329 <span t-field='product.name'
330 style="display: block"/>
341 <!-- Page Shop my cart -->
343 <template id="mycart" name="Your Cart" page="True">
344 <t t-call="website.layout">
346 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
347 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
348 <t t-raw="head or ''"/>
351 <div class="container oe_website_sale">
353 <ul class="wizard pull-right">
354 <li class="text-primary">Review Order<span class="chevron"></span></li>
355 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
356 <li class="text-muted">Payment<span class="chevron"></span></li>
357 <li class="text-muted">Confirmation<span class="chevron"></span></li>
359 <h1 class="mb32">Your Cart</h1>
362 <div class="col-md-8 oe_mycart">
363 <div t-if="not website_sale_order or not website_sale_order.order_line" class="well well-lg">
366 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
375 <th colspan="2">Product</th>
381 <tr t-foreach="website_sale_order.order_line" t-as="line">
382 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
383 <td t-if="line.product_id.product_tmpl_id">
384 <span t-field="line.product_id.image_small"
385 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
387 <td t-if="line.product_id.product_tmpl_id">
389 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
390 <strong t-field="line.product_id.name"/>
393 <div class="text-muted" t-field="line.product_id.description_sale"/>
395 <td class="text-center">
396 <del class="text-danger" t-if="line.product_id.lst_price > line.price_unit">
397 <span t-field="line.product_id.lst_price" t-field-options='{
398 "widget": "monetary",
399 "display_currency": "website.pricelist_id.currency_id"
402 <span t-field="line.price_unit" t-field-options='{
403 "widget": "monetary",
404 "display_currency": "website.pricelist_id.currency_id"
408 <div class="input-group">
409 <span class="input-group-addon">
410 <a t-href="./remove_cart/?order_line_id=#{ line.id }" t-att-data-id="line.id" class="mb8 js_add_cart_json">
411 <span class="icon-minus"/>
414 <input type="text" class="js_quantity form-control"
415 t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
416 <span class="input-group-addon">
417 <a t-href="./add_cart/?order_line_id=#{ line.id }" t-att-data-id="line.id" class="mb8 float_left js_add_cart_json">
418 <span class="icon-plus"/>
427 <table class='pull-right mb16' id="mycart_total">
433 <tr style="border-top: 1px solid #000">
434 <th><h3>Total:</h3></th>
435 <th class="text-right"><h3>
436 <span t-field="website_sale_order.amount_total" t-field-options='{
437 "widget": "monetary",
438 "display_currency": "website.pricelist_id.currency_id"
442 <tr class="text-muted">
443 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
444 <td class="text-right">
445 <span t-field="website_sale_order.amount_tax" t-field-options='{
446 "widget": "monetary",
447 "display_currency": "website.pricelist_id.currency_id"
453 <div class="clearfix"/>
455 <a t-href="/shop" class="btn btn-default"><span class="icon-long-arrow-left"/> Continue Shopping</a>
456 <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>
457 <div class="oe_structure"/>
459 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
461 <ul class="list-unstyled mb32">
462 <li>☑ 30-days money-back guarantee</li>
463 <li>☑ Invoice sent by e-Mail</li>
466 <h4>Secure Payment</h4>
467 <ul class="list-unstyled mb32">
468 <li>☑ Transation 256bit encrypted</li>
469 <li>☑ Processed by Ogone</li>
476 <div class="oe_structure"/>
483 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
484 <xpath expr="//div[@id='products_grid']" position="before">
485 <div id="categories" class="col-md-3">
486 <ul class="nav nav-pills nav-stacked mt16">
487 <li t-att-class=" '' if search.get('category') else 'active' "><a t-href="/shop/">All Products</a></li>
488 <t t-set="categ" t-value="Ecommerce.get_categories()"/>
489 <t t-foreach="categ[0]" t-as="category">
490 <t t-call="website_sale.categories_recursive"/>
495 <xpath expr="//div[@id='products_grid']" position="attributes">
496 <attribute name="class">col-md-9</attribute>
500 <template id="products_attributes" inherit_option_id="website_sale.products_categories" name="Product Attributes">
501 <xpath expr="//div[@id='categories']" position="inside">
502 <form t-action="/shop/attributes/" method="post" t-keep-query="category,search">
503 <ul class="nav nav-pills nav-stacked mt16">
504 <t t-set="attribute_ids" t-value="Ecommerce.get_attribute_ids()"/>
505 <t t-foreach="attribute_ids" t-as="attribute_id">
506 <li t-if="attribute_id.value_ids and attribute_id.type == 'distinct'">
507 <div t-field="attribute_id.name"/>
508 <ul class="nav nav-pills nav-stacked">
509 <t t-foreach="attribute_id.value_ids" t-as="value_id">
510 <li t-att-class="Ecommerce.has_search_attributes(attribute_id.id, value_id.id) and 'active' or ''">
511 <label style="margin: 0 20px;">
512 <input type="checkbox" t-att-name="'att-%s-%s' % (attribute_id.id, value_id.id)"
513 t-att-checked="Ecommerce.has_search_attributes(attribute_id.id, value_id.id) and 'checked' or ''"/>
514 <span style="font-weight: normal" t-field="value_id.name"/>
520 <li t-if="attribute_id.type == 'float' and attribute_id.float_min != attribute_id.float_max">
521 <div t-field="attribute_id.name"/>
522 <t t-set="attribute" t-value="Ecommerce.has_search_attributes(attribute_id.id)"/>
523 <div style="margin: 0 20px;" class="js_slider"
524 t-att-data-id="attribute_id.id"
525 t-att-data-value-min="attribute and attribute[1][0] or attribute_id.float_min"
526 t-att-data-value-max="attribute and attribute[1][1] or attribute_id.float_max"
527 t-att-data-min="attribute_id.float_min"
528 t-att-data-max="attribute_id.float_max"></div>
532 <button class="btn btn-xs btn-primary mt16">Apply filter</button>
537 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in list view">
538 <xpath expr="//table[@id='mycart_products']" position="after">
539 <table t-if="suggested_products" class='table table-striped table-condensed'>
548 <th colspan="2">Suggested products</th>
552 <tr t-foreach="suggested_products" t-as="product">
555 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
556 <span t-field="product.image_small"
557 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
562 <a t-href="/shop/product/#{ product.product_tmpl_id.id }/">
563 <strong t-field="product.name"/>
566 <div class="text-muted" t-field="product.description_sale"/>
569 <span t-field="product.lst_price" t-field-options='{
570 "widget": "monetary",
571 "display_currency": "website.pricelist_id.currency_id"
574 <td class="text-center">
575 <a t-href="./add_cart/?product_id=#{ product.id }"><strong>Add to Cart</strong></a>
583 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
584 <xpath expr="//div[@id='right_column']" position="inside">
587 Have a coupon code? Fill in this field and apply.
589 <form t-if="website_sale_order and website_sale_order.order_line" t-action="/shop/mycart/" method="post" class="mb32">
590 <div class="input-group">
591 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
592 <div class="input-group-btn">
593 <button class="btn btn-default">Apply</button>
601 <!-- Page confirm my cart -->
603 <template id="checkout">
604 <t t-call="website.layout">
606 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
607 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
608 <t t-raw="head or ''"/>
610 <t t-set="additional_title">Shop - Checkout</t>
612 <div class="container oe_website_sale">
613 <ul class="wizard pull-right">
614 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
615 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
616 <li class="text-muted">Payment<span class="chevron"></span></li>
617 <li class="text-muted">Confirmation<span class="chevron"></span></li>
619 <h1>Your Address</h1>
620 <form t-action="/shop/confirm_order/" method="post">
623 <div class="col-md-8 oe_mycart">
624 <h3 class="page-header mt16">Set Billing Information
625 <small t-if="user_id.id == website.public_user.id"> or
626 <a t-if="not partner" t-attf-href="/web#action=redirect&url=#{ request.httprequest.host_url }/shop/checkout/">sign in</a>
630 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
631 <label class="control-label" for="contact_name">Your Name</label>
632 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
634 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
635 <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
636 <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
638 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
639 <label class="control-label" for="contact_name">Email</label>
640 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
642 <div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''} col-lg-6">
643 <label class="control-label" for="phone">Telephone</label>
644 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
647 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
648 <label class="control-label" for="street">Street</label>
649 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
651 <div class="clearfix"/>
653 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
654 <label class="control-label" for="city">City</label>
655 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
657 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
658 <label class="control-label" for="zip">Zip / Postal Code</label>
659 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
661 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
662 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
663 <select name="state_id" class="form-control">
664 <option value="">select...</option>
665 <t t-foreach="states or []" t-as="state">
666 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
670 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
671 <label class="control-label" for="contact_name">Country</label>
672 <select name="country_id" class="form-control">
673 <option value="">Country...</option>
674 <t t-foreach="countries or []" t-as="country">
675 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
680 <div class="clearfix"/>
682 <div class="form-group col-lg-6">
684 <input t-if="not shipping" type="checkbox" name="shipping_different"/>
685 <input t-if="shipping" type="checkbox" name="shipping_different" checked="1"/>
686 Ship to a different address
691 <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''">
692 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
694 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
695 <label class="control-label" for="contact_name">Name (Shipping)</label>
696 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
698 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
699 <label class="control-label" for="contact_name">Telephone</label>
700 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
702 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
703 <label class="control-label" for="contact_name">Street</label>
704 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
706 <div class="clearfix"/>
707 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
708 <label class="control-label" for="contact_name">City</label>
709 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
711 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
712 <label class="control-label" for="contact_name">Zip / Postal Code</label>
713 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
715 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
716 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
717 <select name="shipping_state_id" class="form-control">
718 <option value="">State / Province...</option>
719 <t t-foreach="states or []" t-as="state">
720 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
724 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
725 <label class="control-label" for="contact_name">Country</label>
726 <select name="shipping_country_id" class="form-control">
727 <option value="">Country...</option>
728 <t t-foreach="countries or []" t-as="country">
729 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
734 <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="icon-long-arrow-right"/></button>
736 <div class="col-lg-offset-1 col-lg-3 text-muted">
737 <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="icon-arrow-right"/> change</a></small></h3>
739 <div class="col-sm-6 text-right">Subtotal:</div>
740 <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
741 "widget": "monetary",
742 "display_currency": "website.pricelist_id.currency_id"
744 <div class="col-sm-6 text-right">Taxes:</div>
745 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
746 "widget": "monetary",
747 "display_currency": "website.pricelist_id.currency_id"
749 <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
750 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
751 "widget": "monetary",
752 "display_currency": "website.pricelist_id.currency_id"
755 <button type="submit" class="btn btn-default btn-primary pull-right mt16" t-if="user_id.id != website.public_user.id">
756 Confirm <span class="icon-long-arrow-right"/>
767 <template id="payment">
768 <t t-call="website.layout">
770 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
771 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
772 <t t-raw="head or ''"/>
774 <t t-set="additional_title">Shop - Select Payment Mode</t>
776 <div class="container oe_website_sale">
778 <ul class="wizard pull-right">
779 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
780 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
781 <li class="text-primary">Payment<span class="chevron"></span></li>
782 <li class="text-muted">Confirmation<span class="chevron"></span></li>
784 <h1 class="mb32">Validate Order</h1>
786 <div class="col-md-8 oe_mycart">
787 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.order_line">
796 <th colspan="2">Product</th>
802 <tr t-foreach="website_sale_order.order_line" t-as="line">
803 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
804 <td t-if="line.product_id.product_tmpl_id">
805 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/">
806 <span t-field="line.product_id.image_small"
807 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
810 <td t-if="line.product_id.product_tmpl_id">
811 <strong t-field="line.product_id.name"/>
813 <td class="text-center">
814 <span t-field="line.price_unit" t-field-options='{
815 "widget": "monetary",
816 "display_currency": "website.pricelist_id.currency_id"
820 <div t-esc="line.product_uom_qty"/>
825 <table class='pull-right mb16' id="mycart_total">
831 <tr style="border-top: 1px solid #000">
832 <th><h3>Total:</h3></th>
833 <th class="text-right"><h3><span t-field="website_sale_order.amount_total" t-field-options='{
834 "widget": "monetary",
835 "display_currency": "website.pricelist_id.currency_id"
838 <tr class="text-muted">
839 <td><abbr title="Taxes may be updated after providing shipping address">Incl. Taxes:</abbr></td>
840 <td class="text-right"><span t-field="website_sale_order.amount_tax" t-field-options='{
841 "widget": "monetary",
842 "display_currency": "website.pricelist_id.currency_id"
847 <div class="clearfix"/>
848 <div class="oe_structure"/>
850 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
852 <div t-field="website_sale_order.partner_invoice_id"/>
854 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
857 <h4 class="mt32">Ship To:</h4>
858 <div t-field="website_sale_order.partner_shipping_id"/>
860 <a href="/shop/checkout"><span class="icon-arrow-right"/> Change Address</a>
866 <div class="js_payment mb64">
867 <p>Select your payment method:</p>
869 <t t-foreach="payments or []" t-as="payment">
871 <input t-att-value="payment.id" type="radio" name="payment_type"/> <t t-esc="payment.name"/>
875 <t t-foreach="payments or []" t-as="payment">
876 <div t-att-data-id="payment.id" t-raw="payment._content" class="hidden"/>
878 <a t-href="/shop/payment_validate/" class="btn btn-primary mt16">Validate & Pay <span class="icon-long-arrow-right"/></a>
882 <div class="oe_structure"/>