1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="product_normal_form_view" model="ir.ui.view">
6 <field name="name">product.normal.form.inherit</field>
7 <field name="model">product.product</field>
8 <field name="inherit_id" ref="product.product_normal_form_view"/>
9 <field name="arch" type="xml">
10 <!-- add state field in header -->
11 <xpath expr="//sheet" position="before">
12 <div class="oe_form_box_info oe_text_center" attrs="{'invisible': [('sale_ok', '=', False)]}">
13 <p attrs="{'invisible': [('website_published', '=', True)]}">
14 This product is <b>not available</b> for public user in your ecommerce.
16 <p attrs="{'invisible': [('website_published', '=', False)]}">
17 This product is <b>available</b> for public user in your ecommerce.
19 <p>Website view: <field class="oe_inline" name="website_url" widget="url"/></p>
23 <group name="sale" position="inside">
24 <group name="website" string="Website">
25 <field name="website_published"/>
26 <field name="suggested_product_ids" widget="many2many_tags"/>
27 <field name="website_style_ids" widget="many2many_tags"/>
33 <record model="ir.ui.view" id="product_pricelist_view">
34 <field name="name">product.pricelist.website.form</field>
35 <field name="model">product.pricelist</field>
36 <field name="inherit_id" ref="product.product_pricelist_view"/>
37 <field name="arch" type="xml">
38 <field name="active" position="after">
44 <!-- Layout add nav and footer -->
46 <template id="header_footer" inherit_id="website.layout" name="Custom Footer">
47 <xpath expr="//header//ul[@id='top_menu']/li" position="before">
48 <li><a t-href="/shop/">Shop</a></li>
50 <a t-href="/shop/mycart/">
51 <i class="icon-shopping-cart"></i>
52 My cart <span t-attf-class="my_cart_quantity badge #{(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''}"
53 t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
57 <xpath expr="//footer//ul[@name='products']" position="inside">
58 <li><a t-href="/shop/">Shop</a></li>
60 <a t-href="/shop/mycart/">
61 <i class="icon-shopping-cart"></i>
62 My cart <span t-attf-class="my_cart_quantity badge #{(not website_sale_order or not website_sale_order.get_total_quantity()) and 'hidden' or ''}"
63 t-esc="website_sale_order and website_sale_order.get_total_quantity() or ''"/>
68 <!-- List of categories -->
70 <template id="categories_recursive">
71 <li t-att-class="category.id == category_id and 'active' or ''">
72 <a t-att-class="category.id not in categ[1] and 'unpublish' or ''" t-href="/shop/category/#{ category.id }/" t-field="category.name"></a>
73 <ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
74 <t t-foreach="category.child_id" t-as="category">
75 <t t-if="category.id in categ[1] or editable">
76 <t t-call="website_sale.categories_recursive"/>
85 <template id="products_cart">
86 <div class="oe_product_description">
87 <a t-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&category_id=%s' % category_id) or ''}">
88 <b t-field="product.name"/>
90 <div class="product_price">
92 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
93 <span class="text-danger" style="text-decoration: line-through;">
94 <t t-esc="product.product_variant_ids[0].lst_price" /> €
97 <t t-esc="product.product_variant_ids[0].price" /> €
102 <div class="oe_product_image text-center">
103 <a t-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&category_id=%s' % category_id) or ''}">
104 <img class="img" t-att-src="product.img('image')"/>
109 <template id="products" page="True">
110 <t t-call="website.layout">
112 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
113 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
114 <t t-raw="head or ''"/>
116 <t t-set="title">Our Products</t>
118 <div class="oe_structure"/>
119 <div class="container oe_website_sale">
121 <div class="col-sm-4">
122 <h1>Our Products</h1>
123 </div><div class="col-sm-4 pagination text-center">
124 <a t-if="editable" t-href="/shop/#{ category_id and ('category/%s/' % category_id) or ''}add_product/" class="btn btn-default">New Product</a>
125 </div><div class="col-sm-4">
126 <form t-action="/shop/#{ category_id and ('category/%s/' % category_id) or ''}" method="get" class="pull-right pagination">
127 <div class="input-group">
128 <span class="input-group-addon"><span class="glyphicon glyphicon-search"/></span>
129 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search or ''"/>
132 <t t-call="website.pager">
133 <t t-set="classname">pull-left</t>
138 <div class='style_default'>
139 <div class="col-md-12" id="products_grid">
142 <col style="width: 1px; margin-right: -1px;" />
143 <col class="col-md-3" />
144 <col class="col-md-3" />
145 <col class="col-md-3" />
146 <col class="col-md-3" />
149 <t t-set="table_products" t-value="get_bin_packing_products(product_ids, product_ids_for_holes, 4)"/>
150 <tr t-foreach="table_products" t-as="tr_product">
151 <td class="oe-height-2"></td>
152 <t t-foreach="tr_product" t-as="td_product">
153 <t t-if="td_product">
154 <t t-set="product" t-value="td_product['product']"/>
155 <td t-att-colspan="td_product['x']"
156 t-att-rowspan="td_product['y']"
157 t-attf-class="oe_product #{ td_product['class'] }"
158 t-att-data-publish="product.website_published and 'on' or 'off'">
160 <div class="css_options" t-ignore="true">
161 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
162 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown"> Style options <span class="caret"></span></a>
163 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
164 <li class='dropdown-submenu'>
165 <a tabindex="-1" href="#">Size</a>
166 <ul class="dropdown-menu" name="size">
170 <td class="selected"></td>
171 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
172 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
173 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
176 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
177 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
178 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
179 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
182 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
183 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
184 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
185 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
188 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
189 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
190 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
191 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
197 <li class='dropdown-submenu'>
198 <a tabindex="-1" href="#">Styles</a>
199 <ul class="dropdown-menu" name="style">
200 <t t-foreach="styles" t-as="style">
201 <li t-att-class="style.id in [s.id for s in product.website_style_ids] 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>
209 <t t-call="website_sale.products_cart"/>
212 <td t-if="td_product == None"/>
219 <div class="text-center">
220 <t t-call="website.pager" />
223 <div class="oe_structure mb32"/>
228 <!-- Product Description-->
230 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
231 <xpath expr="//div[@class='product_price']" position="before">
232 <p class="text-muted oe_subdescription">
233 <span t-field="product.description_sale"/>
238 <!-- Add to cart button-->
240 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
241 <xpath expr="//div[@class='product_price']" position="inside">
242 <a t-href="./add_cart/?product_id=#{ product.id }">
243 <span class="icon-shopping-cart"/>
248 <!-- List view of products -->
250 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
251 <xpath expr="//div[@id='products_grid']/table" position="replace">
253 <t t-set="products" t-value="get_products(product_ids)"/>
254 <t t-foreach="products" t-as="product">
255 <div class="col-md-12 oe_list_products oe-height-1">
256 <t t-call="website_sale.products_cart"/>
266 <template id="product" name="Product">
267 <t t-call="website.layout">
269 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
271 <t t-set="title" t-raw="product.name"/>
274 <section class="container mt8">
276 <div class="col-sm-5">
277 <ol class="breadcrumb">
278 <li><a t-href="/shop">Products</a></li>
279 <li t-if="category"><a t-att-href="'/shop/category/%s' % (category_id,)"><span t-field="category.name"/></a></li>
280 <li class="active"><span t-field="product.name"></span></li>
282 </div><div class="col-sm-3">
283 <t t-call="website.publish_management">
284 <t t-set="object" t-value="product"/>
285 <li class='dropdown-submenu'>
286 <a tabindex="-1" href="#">Promote</a>
287 <ul class="dropdown-menu" name="sequence">
288 <li><a href="#" class="js_go_to_top">Push on top</a></li>
289 <li><a href="#" class="js_go_to_bottom">Push on bottom</a></li>
293 </div><div class="col-sm-3 col-sm-offset-1">
294 <form t-action="/shop/#{ category_id and ('category/%s/' % category_id) or ''}" method="get" class="pull-right">
295 <div class="input-group">
296 <span class="input-group-addon"><span class="glyphicon glyphicon-search"/></span>
297 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search or ''"/>
304 <section class="container oe_website_sale mb16" id="product_detail">
306 <div class="col-sm-7 col-md-7 col-lg-7">
307 <img class="img" t-att-src="product.img('image')" style="max-height: 500px"/>
308 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
309 <h1 t-field="product.name">Product Name</h1>
311 <form t-action="./add_cart/">
312 <input type="hidden" t-if="len(product.product_variant_ids) <= 1" name="product_id" t-att-value="product.id"/>
313 <t t-if="len(product.product_variant_ids) > 1">
314 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="product">
315 <input type="radio" name="product_id" t-att-value="product.id" t-att-checked="product == product.product_variant_ids[0] or None"/>
316 <t t-esc="product.variants or ''">Standard</t>
317 <span class="badge" t-if="product.price_extra">
318 <t t-esc="product.price_extra > 0 and '+' or ''"/><t t-esc="product.price_extra"/> €
324 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
325 <h5 class="text-danger" style="text-decoration: line-through;" title="Price without reduction"><span t-field="product.product_variant_ids[0].lst_price" /> €</h5>
326 <h4><t t-esc="product.product_variant_ids[0].price" /> €</h4>
328 <h4 t-if="product.product_variant_ids[0].lst_price == product.product_variant_ids[0].price">
329 <b><span t-field="product.product_variant_ids[0].lst_price" /> €</b>
332 <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
333 <hr t-if="product.description_sale"/>
334 <p t-field="product.description_sale" class="text-muted"/>
336 <p class="text-muted">
337 30-day money-back guarantee<br/>
338 Free Shipping in U.S.<br/>
339 Buy now, get in 2 days
345 <div t-field="product.website_description" class="oe_structure" id="product_full_description"/>
350 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
351 <xpath expr="//div[@id='product_full_description']" position="after">
352 <div class="container mt32" t-if="product.recommended_products()">
353 <h3>Customers who have bought this product also bought:</h3>
354 <div class='row mt16' style="margin-left: 15px !important;">
355 <t t-foreach="product.recommended_products()" t-as="product">
356 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
357 <div class='mt16 text-center'>
358 <img t-att-src="product.img('image_small')"/>
360 <a t-href="/shop/product/#{ product.id }/"
361 style="display: block">
362 <span t-field='product.name'
363 style="display: block"/>
374 <!-- Page Shop my cart -->
376 <template id="mycart" name="My cart" page="True">
377 <t t-call="website.layout">
379 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
380 <t t-raw="head or ''"/>
382 <t t-set="title">Your Cart</t>
384 <div class="container oe_website_sale">
385 <div class="col-md-12 oe_mycart">
386 <h1>My Shopping Cart</h1>
387 <table class='table' id="mycart_products">
396 <th colspan="2">Product</th>
401 <tbody t-if="not website_sale_order or not website_sale_order.order_line">
402 <tr><td colspan="4"><h3>Your cart is empty</h3></td></tr>
404 <tbody t-if="website_sale_order and website_sale_order.order_line">
405 <t t-foreach="website_sale_order.order_line" t-as="line">
407 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
408 <td t-if="line.product_id.product_tmpl_id">
409 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/"><img class="img-rounded" t-att-src="line.product_id.img('image_small')"/></a>
411 <td t-if="line.product_id.product_tmpl_id">
412 <a t-href="/shop/product/#{ line.product_id.product_tmpl_id.id }/"><span t-field="line.name"/></a><br/>
413 <small t-field="line.product_id.description_sale"/>
416 <t t-if="line.product_id.product_tmpl_id and line.product_id.lst_price != line.price_unit">
417 <small class="text-error" style="text-decoration: line-through;"><t t-esc="line.product_id.lst_price" /> €</small>
419 <span t-field="line.price_unit"></span> €
422 <div class="pull-right">
423 <input type="text" class="js_quantity input-sm col-md-5" t-att-data-id="line.id" t-att-value="line.product_uom_qty"/>
424 <a t-href="./remove_cart/?order_line_id=#{ line.id }" t-att-data-id="line.id" class="btn btn-default mb8 btn-sm btn-inverse">-</a>
425 <a t-href="./add_cart/?order_line_id=#{ line.id }" t-att-data-id="line.id" class="btn btn-default mb8 btn-sm btn-success">+</a>
432 <table class='table table-hover table-condensed' id="mycart_total">
440 <tr> <th colspan="3">Subtotal </th> <th><t t-esc="website_sale_order and website_sale_order.amount_untaxed or 0"/> €</th></tr>
441 <tr> <th colspan="3">Taxes </th> <th><t t-esc="website_sale_order and website_sale_order.amount_tax or 0"/> €</th></tr>
442 <tr> <th colspan="3"><h4>Total</h4></th> <th><h4><t t-esc="website_sale_order and website_sale_order.amount_total or 0"/> €</h4></th></tr>
445 <a t-if="website_sale_order and website_sale_order.order_line" t-href="/shop/checkout/" class="btn btn-success">Proceed To Payment</a>
448 <div class="oe_structure"/>
455 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
456 <xpath expr="//div[@id='products_grid']" position="before">
457 <div class="col-md-3">
458 <ul class="nav nav-pills nav-stacked mt16">
459 <li t-att-class=" '' if category_id else 'active' "><a t-href="/shop/">All Products</a></li>
460 <t t-set="categ" t-value="get_categories()"/>
461 <t t-foreach="categ[0]" t-as="category">
462 <t t-call="website_sale.categories_recursive"/>
467 <xpath expr="//div[@id='products_grid']" position="attributes">
468 <attribute name="class">col-md-9</attribute>
473 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in list view">
474 <xpath expr="//table[@id='mycart_products']" position="after">
475 <table t-if="suggested_products" class='table table-hover table-condensed'>
483 <th>Suggested products</th>
487 <t t-foreach="suggested_products" t-as="product">
490 <a t-href="/shop/product/#{ product.id }/"><span t-field="product.name"/></a><br/>
491 <small t-field="product.description_sale"/>
494 <span t-field="product.list_price"></span>€
497 <div class="pull-right">
498 <a t-href="./add_cart/?product_id=#{ product.id }" class="btn btn-sm btn-success">+</a>
507 <template id="suggested_products_cell" inherit_option_id="website_sale.mycart" name="Suggested Products in card view">
508 <xpath expr="//table[@id='mycart_products']" position="after">
509 <div class="mt16 mb32" t-if="suggested_products">
510 <h4>Suggested products</h4>
511 <div class='row mt16'>
512 <t t-foreach="suggested_products" t-as="product">
513 <div class='col-md-2 thumbnail'>
514 <div class='mt16 text-center'>
515 <a t-href="/shop/product/#{ product.id }/">
516 <img t-att-src="product.img('image_small')"/>
519 <a t-href="/shop/product/#{ product.id }/" style="display: block;">
520 <span t-field="product.name"/>
530 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
531 <xpath expr="//table[@id='mycart_total']" position="after">
532 <form t-if="website_sale_order and website_sale_order.order_line" class="well" t-action="/shop/mycart/" method="post">
533 <input name="promo" class='input' type="text" placeholder="Reduction Code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
534 <button class="btn">Apply Code</button>
540 <!-- Page confirm my cart -->
542 <template id="checkout">
543 <t t-call="website.layout">
545 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
546 <t t-raw="head or ''"/>
548 <t t-set="title">Shop - Checkout</t>
550 <div class="container oe_website_sale">
552 <div class="col-md-4">
553 <table class="table table-condensed">
561 <tbody t-if="website_sale_order.order_line">
562 <t t-foreach="website_sale_order.order_line" t-as="line">
564 <td><t t-esc="line.name"/></td>
565 <td><t t-esc="line.product_uom_qty"/></td>
566 <td><t t-esc="line.price_unit"/> €</td>
571 <tr><th>Untaxed Amount</th><td></td><td><t t-esc="website_sale_order.amount_untaxed"/> €</td></tr>
572 <tr><th>Taxes</th><td></td><td><t t-esc="website_sale_order.amount_tax"/> €</td></tr>
573 <tr><th>Total</th><td></td><td><t t-esc="website_sale_order.amount_total"/> €</td></tr>
577 <form class="col-md-8 form-horizontal" t-action="/shop/confirm_order/" method="post">
579 <a t-if="not partner" t-attf-href="/admin#action=redirect&url=#{ request.httprequest.host_url }/shop/checkout/" class="btn btn-primary">Log me, I have an account</a>
580 <h3 class="col-md-10">Billing Information</h3>
581 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''}">
582 <label class="col-lg-3 control-label" for="contact_name">Name and firstname</label>
583 <div class="col-lg-4">
584 <input type="text" name="name" class="form-control" t-att-value="checkout['name']"/>
587 <div t-attf-class="form-group #{ error.get('phone') and 'has-error' or ''}">
588 <label class="col-lg-3 control-label" for="contact_name">Telephone</label>
589 <div class="col-lg-4">
590 <input type="tel" name="phone" class="form-control" t-att-value="checkout['phone']"/>
593 <div t-attf-class="form-group #{error.get('fax') and 'has-error' or ''}">
594 <label class="col-lg-3 control-label" for="contact_name">Fax</label>
595 <div class="col-lg-4">
596 <input type="tel" name="fax" class="form-control" t-att-value="checkout['fax']"/>
599 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''}">
600 <label class="col-lg-3 control-label" for="contact_name">Company</label>
601 <div class="col-lg-4">
602 <input type="text" name="company" class="form-control" t-att-value="checkout['company']"/>
605 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''}">
606 <label class="col-lg-3 control-label" for="contact_name">Email address</label>
607 <div class="col-lg-4">
608 <input type="email" name="email" class="form-control" t-att-value="checkout['email']"/>
611 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''}">
612 <label class="col-lg-3 control-label" for="contact_name">Street</label>
613 <div class="col-lg-4">
614 <input type="text" name="street" class="form-control" t-att-value="checkout['street']"/>
617 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''}">
618 <label class="col-lg-3 control-label" for="contact_name">City</label>
619 <div class="col-lg-4">
620 <input type="text" name="city" class="form-control" t-att-value="checkout['city']"/>
623 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''}">
624 <label class="col-lg-3 control-label" for="contact_name">State / Province</label>
625 <div class="col-lg-4">
626 <select name="state_id" class="form-control">
627 <option value="">State / Province...</option>
628 <t t-foreach="states or []" t-as="state">
629 <option t-att-value="state.id" t-att-selected="state.id == checkout['state_id']"><t t-esc="state.name"/></option>
634 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''}">
635 <label class="col-lg-3 control-label" for="contact_name">Zip / Postal Code</label>
636 <div class="col-lg-4">
637 <input type="text" name="zip" class="form-control" t-att-value="checkout['zip']"/>
640 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''}">
641 <label class="col-lg-3 control-label" for="contact_name">Country</label>
642 <div class="col-lg-4">
643 <select name="country_id" class="form-control">
644 <option value="">Country...</option>
645 <t t-foreach="countries or []" t-as="country">
646 <option t-att-value="country.id" t-att-selected="country.id == checkout['country_id']"><t t-esc="country.name"/></option>
651 <div class="form-group checkbox">
652 <div class="col-lg-7 col-md-offset-3">
654 <input t-if="not shipping" type="checkbox" name="shipping_different"/>
655 <input t-if="shipping" type="checkbox" name="shipping_different" checked="1"/>
656 Ship to different address
661 <div class="js_shipping row" t-att-style="not shipping and 'display:none' or ''">
662 <h3 class="col-md-12 oe_shipping">Shipping Information</h3>
663 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''}">
664 <label class="col-lg-3 control-label" for="contact_name">Name and firstname</label>
665 <div class="col-lg-4">
666 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
669 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''}">
670 <label class="col-lg-3 control-label" for="contact_name">Telephone</label>
671 <div class="col-lg-4">
672 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
675 <div t-attf-class="form-group #{error.get('shipping_fax') and 'has-error' or ''}">
676 <label class="col-lg-3 control-label" for="contact_name">Fax</label>
677 <div class="col-lg-4">
678 <input type="tel" name="shipping_fax" class="form-control" t-att-value="checkout.get('shipping_fax', '')"/>
681 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''}">
682 <label class="col-lg-3 control-label" for="contact_name">Street</label>
683 <div class="col-lg-4">
684 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
687 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''}">
688 <label class="col-lg-3 control-label" for="contact_name">City</label>
689 <div class="col-lg-4">
690 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
693 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''}">
694 <label class="col-lg-3 control-label" for="contact_name">State / Province</label>
695 <div class="col-lg-4">
696 <select name="shipping_state_id" class="form-control">
697 <option value="">State / Province...</option>
698 <t t-foreach="states or []" t-as="state">
699 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
704 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''}">
705 <label class="col-lg-3 control-label" for="contact_name">Zip / Postal Code</label>
706 <div class="col-lg-4">
707 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
710 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''}">
711 <label class="col-lg-3 control-label" for="contact_name">Country</label>
712 <div class="col-lg-4">
713 <select name="shipping_country_id" class="form-control">
714 <option value="">Country...</option>
715 <t t-foreach="countries or []" t-as="country">
716 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
722 <button type="submit" class="btn btn-default">Confirm</button>
730 <template id="payment">
731 <t t-call="website.layout">
733 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
734 <t t-raw="head or ''"/>
736 <t t-set="title">Shop - Payment</t>
738 <div class="container oe_website_sale">
740 <div class="col-md-4">
741 <table class="table table-condensed" t-if="order">
749 <tbody t-if="website_sale_order.order_line">
750 <t t-foreach="website_sale_order.order_line" t-as="line">
752 <td><t t-esc="line.name"/></td>
753 <td><t t-esc="line.product_uom_qty"/></td>
754 <td><t t-esc="line.price_unit"/> €</td>
759 <tr><th>Untaxed Amount</th><td></td><td><t t-esc="website_sale_order.amount_untaxed"/> €</td></tr>
760 <tr><th>Taxes</th><td></td><td><t t-esc="website_sale_order.amount_tax"/> €</td></tr>
761 <tr><th>Total</th><td></td><td><t t-esc="website_sale_order.amount_total"/> €</td></tr>
765 <div class="col-md-8">
766 <div class="js_payment row">
767 <h3 class="col-md-12">Click on your payment method</h3>
768 <div class="col-md-2">
769 <t t-foreach="payments or []" t-as="payment">
771 <input t-att-value="payment.id" type="radio" name="payment_type"/> <t t-esc="payment.name"/>
775 <t t-foreach="payments or []" t-as="payment">
776 <div t-att-data-id="payment.id" t-raw="payment._content" class="hidden col-md-6"/>
778 <a t-href="/shop/payment_validate/" class="hidden btn btn-default">I validate my payment</a>