1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- Layout and common templates -->
7 <template id="debugger" inherit_id="website.debugger" name="Event Debugger">
8 <xpath expr='//t[@t-set="debugger_hook"]' position="after">
9 <script type="text/javascript" src="/website_sale/static/src/js/website.tour.sale.js"></script>
13 <template id="assets_editor" inherit_id="website.assets_editor" name="Shop Editor" groups="base.group_sale_manager">
14 <xpath expr="." position="inside">
15 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.editor.js"></script>
16 <script type="text/javascript" src="/website_sale/static/src/js/website.tour.shop.js"></script>
20 <template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
21 <xpath expr="//header//ul[@id='top_menu']/li" position="before">
22 <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
23 <li t-att-class="'' if website_sale_order and website_sale_order.cart_quantity else 'hidden'">
25 <i class="fa fa-shopping-cart"></i>
26 My cart <sup t-attf-class="my_cart_quantity label label-primary" t-esc="website_sale_order and website_sale_order.cart_quantity or ''"/>
31 <template id="search" name="Search hidden fields">
32 <t t-if="attrib_values">
33 <t t-foreach="attrib_values" t-as="a">
34 <input type="hidden" name="attrib" t-att-value="'%s,%s' % (a[0], a[1])"/>
37 <input t-if="category" type="hidden" name="category" t-att-value="int(category or 0)"/>
38 <div class="input-group">
39 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search"/>
40 <span class="input-group-btn">
41 <a class="btn btn-default a-submit"><i class="fa fa-search"/></a>
47 <t t-call="website.layout">
49 <div class="oe_structure oe_empty">
50 <div class="container">
51 <h1 class="mt32">Product not found!</h1>
52 <p>Sorry, this product is not available anymore.</p>
53 <p><a t-attf-href="/shop">Return to the product list.</a></p>
60 <!-- Product item used by /shop and /shop/cart -->
62 <template id="products_item" name="Product item">
63 <div itemscope="itemscope" itemtype="http://schema.org/Product">
64 <div class="ribbon-wrapper">
65 <div class="ribbon btn btn-danger">Sale</div>
67 <div class="oe_product_image">
68 <a itemprop="url" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))">
69 <img itemprop="image" class="img img-responsive" t-attf-src="/website/image/product.template/#{product.id}/image#{'' if product_image_big else '?max_width=300&max_height=300'}"/>
73 <h5><strong><a itemprop="name" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']>1 else None))" t-field="product.name"/></strong></h5>
74 <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price" t-if="product.product_variant_ids">
76 <t t-if="abs(product.lst_price - product.price) > 0.2">
77 <del class="text-danger" t-field="product.lst_price" t-field-options='{ "widget": "monetary", "display_currency": "pricelist.currency_id" }'/>&nbsp;
79 <span t-field="product.price" t-field-options='{
81 "display_currency": "website.pricelist_id.currency_id"
84 <span itemprop="price" style="display:none;" t-esc="product.price"/>
85 <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
92 <template id="products_description" inherit_id="website_sale.products_item" optional="disabled" name="Product Description">
93 <xpath expr="//div[@class='product_price']" position="before">
94 <div class="text-info oe_subdescription" contenteditable="false">
95 <div itemprop="description" t-field="product.description_sale"></div>
100 <template id="products_add_to_cart" inherit_id="website_sale.products_item" optional="disabled" name="Add to Cart">
101 <xpath expr="//div[@class='product_price']" position="inside">
102 <form action="/shop/cart/update" method="post" style="display: inline-block;">
103 <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
104 <a class="btn btn-default btn-xs fa fa-shopping-cart a-submit"/>
109 <!-- /shop product listing -->
111 <template id="products" name="Products">
112 <t t-call="website.layout">
114 <t t-call="web.jqueryui_conflict">
115 <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
117 <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
118 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
119 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
120 <t t-raw="head or ''"/>
122 <t t-set="additional_title">Shop</t>
123 <div id="wrap" class="js_sale">
124 <div class="oe_structure"/>
125 <div class="container oe_website_sale">
126 <div class="products_pager">
128 <form t-att-action="keep('/shop',search='')" method="get" class="pagination form-inline col-md-3">
129 <t t-call="website_sale.search"/>
131 <t t-call="website.pager"/>
135 <div class="hidden" id="products_grid_before"></div>
136 <div class="col-md-12" id="products_grid">
140 <td t-foreach="range(0,rows)" t-as="row" t-attf-width="#{100/rows}%"></td>
142 <tr t-foreach="bins" t-as="tr_product">
143 <t t-foreach="tr_product" t-as="td_product">
144 <t t-if="td_product">
145 <t t-set="product" t-value="td_product['product']"/>
146 <td t-att-colspan="td_product['x'] != 1 and td_product['x']"
147 t-att-rowspan="td_product['y'] != 1 and td_product['y']"
148 t-attf-class="oe_product oe_grid oe-height-#{td_product['y']*2} #{ td_product['class'] }">
150 <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
152 <div class="css_options" t-ignore="true" groups="base.group_website_publisher">
153 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
154 <button class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></button>
155 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
156 <li class='dropdown-submenu'>
157 <a tabindex="-1" href="#">Size</a>
158 <ul class="dropdown-menu" name="size">
162 <td class="selected"></td>
163 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
164 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
165 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
168 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
169 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
170 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
171 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
174 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
175 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
176 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
177 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
180 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
181 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
182 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
183 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
189 <li class='dropdown-submenu'>
190 <a tabindex="-1" href="#">Styles</a>
191 <ul class="dropdown-menu" name="style">
192 <t t-foreach="styles" t-as="style">
193 <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>
197 <li class='dropdown-submenu'>
198 <a tabindex="-1" href="#">Promote</a>
199 <ul class="dropdown-menu" name="sequence">
200 <li><a href="#" class="js_go_to_top">Push to top</a></li>
201 <li><a href="#" class="js_go_up">Push up</a>
203 <li><a href="#" class="js_go_down">Push down</a></li>
204 <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
210 <t t-set="product_image_big" t-value="td_product['x']+td_product['y'] > 2"/>
211 <t t-call="website_sale.products_item"/>
216 <td t-if="not td_product" class="oe-height-2"/>
222 <div class="text-center text-muted">
223 <h3 class="css_editable_display">No product defined.</h3>
224 <t groups="base.group_website_publisher">
225 <p groups="base.group_sale_manager">Use the <i>'Content'</i> top menu to create a new product.</p>
231 <div class="products_pager">
232 <t t-call="website.pager"/>
235 <div class="oe_structure mb32"/>
240 <!-- Add to cart button-->
242 <template id="categories_recursive" name="Category list">
243 <li t-att-class="'active' if c.id == category else ''">
244 <a t-att-href="keep('/shop/category/' + slug(c), category=0)" t-field="c.name"></a>
245 <ul t-if="c.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
246 <t t-foreach="c.child_id" t-as="c">
247 <t t-call="website_sale.categories_recursive"/>
253 <template id="products_categories" inherit_id="website_sale.products" optional="disabled" name="Product Categories">
254 <xpath expr="//div[@id='products_grid_before']" position="inside">
255 <ul class="nav nav-pills nav-stacked mt16">
256 <li t-att-class=" '' if category else 'active' "><a t-att-href="keep('/shop',category=0)">All Products</a></li>
257 <t t-foreach="categories" t-as="c">
258 <t t-call="website_sale.categories_recursive"/>
262 <xpath expr="//div[@id='products_grid_before']" position="attributes">
263 <attribute name="class">col-md-3 hidden-xs</attribute>
265 <xpath expr="//div[@id='products_grid']" position="attributes">
266 <attribute name="class">col-md-9</attribute>
270 <template id="products_attributes" inherit_id="website_sale.products" optional="disabled" name="Product Attribute's Filters">
271 <xpath expr="//div[@id='products_grid_before']" position="inside">
272 <form class="js_attributes" method="get">
273 <input type="hidden" name="search" t-att-value="search"/>
274 <ul class="nav nav-pills nav-stacked mt16">
275 <t t-foreach="attributes" t-as="a">
276 <li t-if="a.value_ids and len(a.value_ids) > 1">
277 <div><strong t-field="a.name"/></div>
278 <t t-if="a.type == 'select'">
279 <select class="form-control" name="attrib">
281 <t t-foreach="a.value_ids" t-as="v">
282 <option t-att-value="'%s,%s' % (a.id,v.id)" t-field="v.name" t-att-selected="'selected' if v.id in attrib_set else ''"/>
286 <t t-if="a.type == 'radio'">
287 <ul class="nav nav-pills nav-stacked">
288 <t t-foreach="a.value_ids" t-as="v">
289 <li t-att-class="'active' if v.id in attrib_set else ''">
290 <label style="margin: 0 20px;">
291 <input type="checkbox" name="attrib" t-att-value="'%s,%s' % (a.id,v.id)" t-att-checked="'checked' if v.id in attrib_set else ''"/>
292 <span style="font-weight: normal" t-field="v.name"/>
298 <t t-if="a.type == 'color'">
299 <t t-foreach="a.value_ids" t-as="v">
300 <label t-attf-style="background-color:#{v.color or v.name}"
301 t-attf-class="css_attribute_color #{'active' if v.id in attrib_set else ''}">
302 <input type="checkbox"
304 t-att-value="'%s,%s' % (a.id,v.id)"
305 t-att-checked="'checked' if v.id in attrib_set else ''"
306 t-att-title="v.name"/>
315 <xpath expr="//div[@id='products_grid_before']" position="attributes">
316 <attribute name="class">col-md-3 hidden-xs</attribute>
318 <xpath expr="//div[@id='products_grid']" position="attributes">
319 <attribute name="class">col-md-9</attribute>
323 <template id="products_list_view" inherit_id="website_sale.products" optional="disabled" name="List View">
324 <xpath expr="//div[@id='products_grid']//table" position="replace">
325 <t t-foreach="products" t-as="product">
326 <div class="oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
327 <t t-call="website_sale.products_item"/>
333 <!-- /shop/product product page -->
335 <template id="product" name="Product">
336 <t t-call="website.layout">
338 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
339 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
340 <link rel='stylesheet' href='/website_sale/static/src/css/website_mail.css'/>
342 <t t-set="additional_title" t-value="product.name"/>
343 <div itemscope="itemscope" itemtype="http://schema.org/Product" id="wrap" class="js_sale">
345 <section class="container mt8">
347 <div class="col-sm-4">
348 <ol class="breadcrumb">
349 <li><a t-att-href="keep(category=0)" onclick="history.go(-1); return false;">Products</a></li>
350 <li t-if="category"><a t-att-href="keep()" t-field="category.name"/></li>
351 <li class="active"><span t-field="product.name"/></li>
354 <div class="col-sm-3">
355 <form t-att-action="keep(search=0)" method="get" class="pull-right">
356 <t t-call="website_sale.search"/>
359 <div class="col-sm-4" groups="base.group_sale_manager">
360 <t t-call="website.publish_management">
361 <t t-set="object" t-value="product"/>
362 <t t-set="publish_edit" t-value="True"/>
363 <t t-set="action" t-value="'product.product_template_action'"/>
369 <section class="container oe_website_sale" id="product_detail">
371 <div class="col-sm-7 col-md-7 col-lg-7">
372 <span itemprop="image" t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img"}'/>
373 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
374 <h1 itemprop="name" t-field="product.name">Product Name</h1>
375 <span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
377 <form t-att-action="keep('/shop/cart/update')" class="js_add_cart_variants" method="POST">
379 <div class="js_product">
380 <t t-placeholder="select">
381 <input type="hidden" class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/>
382 <t t-call="website_sale.variants">
383 <t t-set="ul_class" t-value="'nav-stacked'"/>
387 <t t-call="website_sale.product_price"/>
388 <p t-if="len(product.product_variant_ids) > 1" class="css_not_available_msg bg-danger" style="padding: 15px;">Product not available</p>
390 <t t-placeholder="button">
391 <a t-if="not optional_product_ids" class="btn btn-primary btn-lg mt8 a-submit js_check_product">Add to Cart</a>
392 <a t-if="optional_product_ids" class="btn btn-primary btn-lg mt8 js_check_product" href="#" data-toggle="modal" data-target="#modal_optional_products">Add to Cart</a>
396 <div t-if="optional_product_ids" id="modal_optional_products" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
397 <div class="modal-dialog modal-lg">
398 <div class="modal-content">
399 <div class="modal-header">
400 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
401 <h4 class="modal-title" id="myModalLabel">Product to add in your shopping cart</h4>
403 <div class="modal-body">
405 <table class="table table-striped table-condensed">
408 <th colspan="2" width="100">Product</th>
409 <th width="100">Price</th>
410 <th width="120">Quantity</th>
414 <tr id="product_confirmation">
416 <span t-field="product.image_medium" t-field-options='{"widget": "image" }'/>
419 <strong t-field="product.name"/>
420 <div class="text-muted">
421 <div t-field="product.description_sale"/>
422 <div class="js_attributes"></div>
426 <t t-if="product.lst_price != product.price">
427 <span class="text-danger" style="text-decoration: line-through;"
428 t-field="product.lst_price"
430 "widget": "monetary",
431 "display_currency": "website.pricelist_id.currency_id"
434 <span class="oe_price"
435 t-field="product.price"
437 "widget": "monetary",
438 "display_currency": "website.pricelist_id.currency_id"
442 <div class="input-group">
443 <span class="input-group-addon">
444 <a t-attf-href="#" class="mb8 js_add_cart_json">
445 <i class="fa fa-minus"></i>
448 <input type="text" class="js_quantity form-control" data-min="1" name="add_qty" value="1"/>
449 <span class="input-group-addon">
450 <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
451 <i class="fa fa-plus"></i>
457 <tr t-if="optional_product_ids"><td colspan="4"><h4>Select Your Options:</h4></td></tr>
458 <t t-set="option_inc" t-value="0"/>
459 <tr class="js_product" t-foreach="optional_product_ids" t-as="product">
461 <input type="hidden" class="optional_product_id" t-attf-name="optional-product-#{option_inc}" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/>
462 <span t-field="product.image_small" t-field-options='{"widget": "image"}'/>
465 <div class="pull-left">
466 <strong class="media-heading" t-field="product.name"/>
467 <div class="text-muted" t-field="product.description_sale"/>
469 <div class="pull-right">
470 <t t-call="website_sale.variants"/>
474 <t t-if="product.lst_price != product.price">
475 <span class="text-danger" style="text-decoration: line-through;"
476 t-field="product.lst_price"
478 "widget": "monetary",
479 "display_currency": "website.pricelist_id.currency_id"
482 <span class="oe_price"
483 t-field="product.price"
485 "widget": "monetary",
486 "display_currency": "website.pricelist_id.currency_id"
488 <p class="css_not_available_msg bg-danger" style="position:absolute; padding: 15px;">Product not available</p>
491 <input type="hidden" class="js_optional_same_quantity" value="0"/>
492 <input type="hidden" class="js_quantity" t-attf-name="optional-quantity-#{option_inc}" value="0"/>
493 <a href="#" class="js_add"><strong>Add to Cart</strong></a>
494 <span class="js_remove hidden">
495 <span class="js_item">1 Item</span><span class="js_items hidden">5 Items</span><br/>
496 <a href="#" class="js_remove"><small>Remove from cart</small></a>
503 <div class="modal-footer">
504 <a class="btn btn-default a-submit js_goto_shop"><i class="fa fa-chevron-left"></i> Continue shopping</a>
505 <a class="btn btn-primary pull-right a-submit"><i class="fa fa-shopping-cart fa-fw"></i> Proceed to checkout</a>
513 <hr t-if="product.description_sale"/>
514 <div><p t-field="product.description_sale" class="text-muted"/></div>
516 <p class="text-muted">
517 30-day money-back guarantee<br/>
518 Free Shipping in U.S.<br/>
519 Buy now, get in 2 days
524 <div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
530 <template id="product_confirmation" inherit_id="website_sale.product" optional="disabled" name="Confirm: Add To Cart">
531 <xpath expr="//div[@id='modal_optional_products']" position="attributes">
532 <attribute name="t-if">True</attribute>
534 <xpath expr="//t[@t-placeholder='button']" position="replace">
535 <t t-placeholder="button">
536 <a class="btn btn-primary btn-lg mt8 js_check_product" href="#" data-toggle="modal" data-target="#modal_optional_products">Add to Cart</a>
541 <template id="product_quantity" inherit_id="website_sale.product" optional="enabled" name="Select Quantity">
542 <xpath expr="//t[@t-placeholder='button']" position="before">
543 <div class="input-group" style="width: 108px;">
544 <span class="input-group-addon">
545 <a t-attf-href="#" class="mb8 js_add_cart_json">
546 <i class="fa fa-minus"></i>
549 <input type="text" class="js_quantity form-control" data-min="1" name="add_qty" value="1"/>
550 <span class="input-group-addon">
551 <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
552 <i class="fa fa-plus"></i>
559 <template id="product_price">
560 <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price mt16">
561 <h4 class="oe_price_h4">
562 <t t-if="product.lst_price != product.price">
563 <span class="text-danger" style="text-decoration: line-through;"
564 t-field="product.lst_price"
566 "widget": "monetary",
567 "display_currency": "website.pricelist_id.currency_id"
571 t-field="product.price"
573 "widget": "monetary",
574 "display_currency": "website.pricelist_id.currency_id"
576 <span itemprop="price" style="display:none;" t-esc="product.price"/>
577 <span itemprop="priceCurrency" style="display:none;" t-esc="website.pricelist_id.currency_id.name"/>
582 <template id="product_variants" inherit_id="website_sale.product" optional="disabled" name="List View of Variants">
583 <xpath expr="//t[@t-placeholder='select']" position="replace">
584 <input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
585 <t t-if="len(product.product_variant_ids) > 1">
586 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="variant_id">
587 <input type="radio" name="product_id" t-att-value="variant_id.id"/>
588 <span t-esc="variant_id.name_get()[0][1]"/>
589 <span class="badge" t-if="variant_id.price_extra">
590 <t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" t-field-options='{ "widget": "monetary", "display_currency": "pricelist.currency_id" }'/>
597 <template id="variants">
598 <ul t-attf-class="list-unstyled js_add_cart_variants #{ul_class}" t-att-data-attribute_value_ids="[[p.id, map(int, p.attribute_value_ids), p.price] for p in product.product_variant_ids]">
599 <t t-foreach="product.attribute_line_ids" t-as="variant_id">
600 <li t-if="len(variant_id.value_ids) > 1">
602 <strong t-field="variant_id.attribute_id.name"/>
604 <t t-if="variant_id.attribute_id.type == 'select'">
605 <select class="form-control js_variant_change" t-att-name="'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)">
606 <t t-foreach="variant_id.value_ids" t-as="value_id">
607 <option t-att-value="value_id.id">
608 <span t-field="value_id.name"/>
609 <span t-if="value_id.price_extra">
610 <t t-esc="value_id.price_extra > 0 and '+' or ''"/><span t-field="value_id.price_extra" t-field-options='{
611 "widget": "monetary",
612 "display_currency": "website.pricelist_id.currency_id"
620 <t t-if="variant_id.attribute_id.type == 'radio'">
621 <ul class="list-unstyled">
622 <t t-set="inc" t-value="0"/>
623 <t t-foreach="variant_id.value_ids" t-as="value_id">
624 <li t-if="value_id.product_ids" class="form-group js_attribute_value" style="margin: 0;">
625 <label class="control-label" style="margin: 0 20px;">
626 <input type="radio" class="js_variant_change" t-att-checked="'checked' if not inc else ''" t-att-name="'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)" t-att-value="value_id.id" style="vertical-align: top; margin-right: 10px;"/>
627 <span t-field="value_id.name"/>
628 <span class="badge" t-if="value_id.price_extra">
629 <t t-esc="value_id.price_extra > 0 and '+' or ''"/><span t-field="value_id.price_extra" t-field-options='{
630 "widget": "monetary",
631 "display_currency": "website.pricelist_id.currency_id"
636 <t t-set="inc" t-value="inc+1"/>
641 <t t-if="variant_id.attribute_id.type == 'color'">
642 <ul class="list-inline">
643 <t t-set="inc" t-value="0"/>
644 <li t-foreach="variant_id.value_ids" t-as="value_id">
645 <label t-attf-style="background-color:#{value_id.color or value_id.name}"
646 t-attf-class="css_attribute_color #{'active' if not inc else ''}">
647 <input type="radio" class="js_variant_change"
648 t-att-checked="'checked' if not inc else ''"
649 t-att-name="'attribute-%s-%s' % (product.id, variant_id.attribute_id.id)"
650 t-att-value="value_id.id"
651 t-att-title="value_id.name"/>
653 <t t-set="inc" t-value="inc+1"/>
663 <template id="recommended_products" inherit_id="website_sale.product" optional="enabled" name="Alternative Products">
664 <xpath expr="//div[@id='product_full_description']" position="after">
665 <div class="container mt32" t-if="product.alternative_product_ids">
666 <h3>Suggested alternatives:</h3>
667 <div class='row mt16' style="margin-left: 15px !important;">
668 <t t-foreach="product.alternative_product_ids" t-as="product">
669 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
670 <div class='mt16 text-center'>
671 <span t-field="product.image_small" t-field-options='{"widget": "image", "class": "img-rounded shadow" }'/>
673 <a t-attf-href="/shop/product/#{ slug(product) }" style="display: block">
674 <span t-field='product.name' style="display: block"/>
685 <template id="product_attributes" inherit_id="website_sale.product" optional="enabled" name="Product attributes">
686 <xpath expr="//p[@t-field='product.description_sale']" position="after">
687 <hr t-if="sum([(1 if len(l.value_ids)==1 else 0) for l in product.attribute_line_ids])"/>
688 <p class="text-muted">
689 <t t-foreach="product.attribute_line_ids" t-as="variant_id">
690 <t t-if="len(variant_id.value_ids)==1">
691 <span t-field="variant_id.attribute_id"/>: <span t-field="variant_id.value_ids[0].name"/><br/>
698 <!-- Product options: OpenChatter -->
700 <template id="product_comment" inherit_id="website_sale.product" optional="disabled" name="Discussion">
701 <xpath expr="//div[@t-field='product.website_description']" position="after">
703 <section class="container">
704 <div class="row col-md-10 col-md-offset-1">
705 <div class="text-muted">
706 <h3 class="fa fa-comment-o">
708 <t t-if="len(product.website_message_ids) <= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
709 <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
713 <ul class="media-list" id="comments-list" t-if="product.website_message_ids">
714 <li t-foreach="product.website_message_ids" t-as="message" class="media">
715 <div class="media-body oe_msg">
716 <img class="media-object pull-left oe_msg_avatar" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(message.author_id.id)" style="width: 50px; margin-right: 10px;"/>
717 <div class="media-body oe_msg_content">
718 <t t-call="website.publish_short">
719 <t t-set="object" t-value="message"/>
721 <h5 class="media-heading">
722 <span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
724 <div t-field="message.body"/>
726 <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
727 <a t-att-href="'/mail/download_attachment?model=mail.message&id='+str(message.id)+'&method=download_attachment&attachment_id='+str(attachment.id)" target="_blank">
728 <t t-if="attachment.file_type_icon == 'webimage'">
729 <img t-att-src="'/web/binary/image?model=ir.attachment&field=datas&id=' + str(attachment.id) + '&resize=100,80'"
730 class='oe_attachment_embedded'></img>
732 <t t-if="attachment.file_type_icon != 'webimage'">
733 <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
734 class='oe_attachment_webimage'></img>
736 <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
744 <div class="css_editable_mode_hidden">
745 <form id="comment" t-attf-action="/shop/product/comment/#{product.id}" method="POST">
746 <img class="img pull-left img-rounded" t-att-src="'/website/image?model=res.partner&field=image_small&id='+str(user_id.partner_id.id)" style="width: 50px; margin-right: 10px;"/>
747 <div class="pull-left mb32" style="width: 75%%">
748 <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
749 <a class="btn btn-primary mt8 a-submit">Post</a>
760 <template id="cart" name="Shopping Cart">
761 <t t-call="website.layout">
763 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
764 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
765 <t t-raw="head or ''"/>
768 <div class="container oe_website_sale">
770 <ul class="wizard pull-right">
771 <li class="text-primary">Review Order<span class="chevron"></span></li>
772 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
773 <li class="text-muted">Payment<span class="chevron"></span></li>
774 <li class="text-muted">Confirmation<span class="chevron"></span></li>
776 <h1 class="mb32">Shopping Cart</h1>
778 <div class="col-md-8 col-sm-9 oe_cart">
779 <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
780 <div t-if="not website_sale_order or not website_sale_order.website_order_line" class="well well-lg">
783 <table class='table table-striped table-condensed' id="cart_products" t-if="website_sale_order and website_sale_order.website_order_line">
786 <th colspan="2" width="100">Product</th>
787 <th width="100">Price</th>
788 <th width="120">Quantity</th>
792 <tr t-foreach="website_sale_order.website_order_line" t-as="line">
793 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
794 <td align="center" t-if="line.product_id.product_tmpl_id">
795 <span t-field="line.product_id.image_small"
796 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
798 <td t-if="line.product_id.product_tmpl_id">
800 <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
801 <strong t-esc="line.product_id.name_get()[0][1]"/>
804 <div class="text-muted" t-field="line.product_id.description_sale"/>
806 <td class="text-center" name="price">
807 <t t-if="abs(line.product_id.lst_price - line.price_unit) > 0.2">
808 <del class="text-danger"
809 t-field="line.product_id.lst_price" t-field-options='{
810 "widget": "monetary",
811 "display_currency": "website.pricelist_id.currency_id"
814 <span t-field="line.price_unit" t-field-options='{
815 "widget": "monetary",
816 "display_currency": "website.pricelist_id.currency_id"
820 <div class="input-group">
821 <span class="input-group-addon">
822 <a t-attf-href="#" class="mb8 js_add_cart_json">
823 <i class="fa fa-minus"></i>
826 <input type="text" class="js_quantity form-control"
827 t-att-data-line-id="line.id"
828 t-att-data-product-id="line.product_id.id"
829 t-att-value="int(line.product_uom_qty)"/>
830 <span class="input-group-addon">
831 <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
832 <i class="fa fa-plus"></i>
841 <t t-call="website_sale.total"/>
842 <div class="clearfix"/>
844 <a t-if="not optional_products and website_sale_order and website_sale_order.website_order_line" class="btn btn-primary pull-right mb32" href="/shop/checkout">Process Checkout <span class="fa fa-long-arrow-right"/></a>
846 <div class="oe_structure"/>
848 <div class="col-lg-3 col-lg-offset-1 col-sm-3 col-md-3 text-muted" id="right_column">
850 <ul class="list-unstyled mb32">
851 <li>☑ 30-days money-back guarantee</li>
852 <li>☑ Invoice sent by e-Mail</li>
854 <h4>Secure Payment</h4>
855 <ul class="list-unstyled mb32">
856 <li>☑ 256 bit encryption</li>
857 <li>☑ Processed by Ogone</li>
863 <div class="oe_structure"/>
868 <template id="suggested_products_list" inherit_id="website_sale.cart" optional="enabled" name="Suggested Products in my cart">
869 <xpath expr="//table[@id='cart_products']" position="after">
870 <table t-if="suggested_products" class='table table-striped table-condensed'>
879 <th colspan="4">Suggested products:</th>
883 <tr t-foreach="suggested_products" t-as="product">
886 <a t-attf-href="/shop/product/#{ slug(product.product_tmpl_id) }">
887 <span t-field="product.image_small"
888 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
893 <a t-attf-href="/shop/product/#{ slug(product.product_tmpl_id) }">
894 <strong t-field="product.name"/>
897 <div class="text-muted" t-field="product.description_sale"/>
900 <t t-if="abs(product.lst_price - product.price) > 0.2">
901 <del class="text-danger"
902 t-field="product.lst_price" t-field-options='{
903 "widget": "monetary",
904 "display_currency": "website.pricelist_id.currency_id"
907 <span t-field="product.price" t-field-options='{
908 "widget": "monetary",
909 "display_currency": "website.pricelist_id.currency_id"
912 <td class="text-center">
913 <form action="/shop/cart/update" method="post">
914 <input name="product_id" t-att-value="product.id" type="hidden"/>
915 <a class="btn btn-link a-submit"><strong>Add to Cart</strong></a>
924 <template id="continue_shopping" inherit_id="website_sale.cart" optional="enabled" name="Continue Shopping Button">
925 <xpath expr="//a[@href='/shop/checkout']" position="before">
926 <a href="/shop" class="btn btn-default mb32"><span class="fa fa-long-arrow-left"/> Continue Shopping</a>
930 <template id="reduction_code" inherit_id="website_sale.cart" optional="disabled" name="Reduction Code">
931 <xpath expr="//div[@id='right_column']" position="inside">
934 Have a coupon code? Fill in this field and apply.
936 <form t-if="website_sale_order and website_sale_order.website_order_line" action="/shop/pricelist" method="post" class="mb32">
937 <div class="input-group">
938 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
939 <div class="input-group-btn">
940 <a class="btn btn-default a-submit">Apply</a>
947 <!-- /shop/checkout -->
949 <template id="checkout">
950 <t t-call="website.layout">
952 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
953 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
954 <t t-raw="head or ''"/>
956 <t t-set="additional_title">Shop - Checkout</t>
958 <div class="container oe_website_sale">
959 <ul class="wizard pull-right">
960 <li><a href="/shop/cart" class="text-success">Review Order<span class="chevron"></span></a></li>
961 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
962 <li class="text-muted">Payment<span class="chevron"></span></li>
963 <li class="text-muted">Confirmation<span class="chevron"></span></li>
965 <h1>Your Address</h1>
966 <form action="/shop/confirm_order" method="post">
969 <div class="col-md-8 oe_cart">
970 <h3 class="page-header mt16">Billing Information
971 <small groups="base.group_public"> or
972 <a class='btn btn-primary' t-if="not partner" t-attf-href="/web?redirect=#{ request.httprequest.url }">Sign in</a>
976 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
977 <label class="control-label" for="contact_name">Your Name</label>
978 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
980 <div t-attf-class="form-group #{error.get('street2') and 'has-error' or ''} col-lg-6">
981 <label class="control-label" for="street2" style="font-weight: normal">Company Name</label>
982 <input type="text" name="street2" class="form-control" t-att-value="checkout.get('street2')"/>
984 <div class="col-lg-6"> </div>
985 <div t-attf-class="form-group #{error.get('vat') and 'has-error' or ''} col-lg-6">
986 <label class="control-label" for="vat" style="font-weight: normal">VAT Number</label>
987 <input type="text" name="vat" class="form-control" t-att-value="checkout.get('vat')"/>
989 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
990 <label class="control-label" for="contact_name">Email</label>
991 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
993 <div t-attf-class="form-group #{error.get('phone') and 'has-error' or ''} col-lg-6">
994 <label class="control-label" for="phone">Phone</label>
995 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
998 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
999 <label class="control-label" for="street">Street</label>
1000 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
1002 <div class="clearfix"/>
1004 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
1005 <label class="control-label" for="city">City</label>
1006 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
1008 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
1009 <label class="control-label" for="zip">Zip / Postal Code</label>
1010 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
1012 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
1013 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
1014 <select name="state_id" class="form-control">
1015 <option value="">select...</option>
1016 <t t-foreach="states or []" t-as="state">
1017 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
1021 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
1022 <label class="control-label" for="contact_name">Country</label>
1023 <select name="country_id" class="form-control">
1024 <option value="">Country...</option>
1025 <t t-foreach="countries or []" t-as="country">
1026 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
1031 <div class="clearfix"/>
1033 <div class="form-group col-lg-6" groups="sale.group_delivery_invoice_address">
1035 <input type="checkbox" name="shipping_different" t-att-checked="checkout.get('shipping_different')"/>
1036 <span>Ship to a different address</span>
1040 <div class="js_shipping row mb16" t-att-style="not checkout.get('shipping_different') and 'display:none' or ''" groups="sale.group_delivery_invoice_address">
1041 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
1043 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
1044 <label class="control-label" for="contact_name">Name (Shipping)</label>
1045 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
1047 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
1048 <label class="control-label" for="contact_name">Phone</label>
1049 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
1051 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
1052 <label class="control-label" for="contact_name">Street</label>
1053 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
1055 <div class="clearfix"/>
1056 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
1057 <label class="control-label" for="contact_name">City</label>
1058 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
1060 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
1061 <label class="control-label" for="contact_name">Zip / Postal Code</label>
1062 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
1064 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
1065 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
1066 <select name="shipping_state_id" class="form-control">
1067 <option value="">State / Province...</option>
1068 <t t-foreach="states or []" t-as="state">
1069 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
1073 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
1074 <label class="control-label" for="contact_name">Country</label>
1075 <select name="shipping_country_id" class="form-control">
1076 <option value="">Country...</option>
1077 <t t-foreach="countries or []" t-as="country">
1078 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
1083 <a class="btn btn-default btn-primary pull-right mb32 a-submit">Confirm <span class="fa fa-long-arrow-right"/></a>
1085 <div class="col-lg-offset-1 col-lg-3 col-md-3 text-muted">
1086 <h3 class="page-header mt16">Your Order <small><a href="/shop/cart"><span class="fa fa-arrow-right"/> change</a></small></h3>
1087 <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
1089 <div class="col-sm-6 text-right">Subtotal: </div>
1090 <div class="col-sm-6"><span t-field="website_sale_order.amount_untaxed" t-field-options='{
1091 "widget": "monetary",
1092 "display_currency": "website.pricelist_id.currency_id"
1094 <div class="col-sm-6 text-right">Taxes: </div>
1095 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
1096 "widget": "monetary",
1097 "display_currency": "website.pricelist_id.currency_id"
1099 <div class="col-sm-6 text-right"><h4>Total To Pay: </h4></div>
1100 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
1101 "widget": "monetary",
1102 "display_currency": "website.pricelist_id.currency_id"
1113 <!-- /shop/payment -->
1115 <template id="payment">
1116 <t t-call="website.layout">
1118 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
1119 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_payment.js"></script>
1120 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
1121 <t t-raw="head or ''"/>
1123 <t t-set="additional_title">Shop - Select Payment Mode</t>
1125 <div class="container oe_website_sale">
1127 <ul class="wizard pull-right">
1128 <li><a href="/shop/cart" class="text-success">Review Order<span class="chevron"></span></a></li>
1129 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
1130 <li class="text-primary">Payment<span class="chevron"></span></li>
1131 <li class="text-muted">Confirmation<span class="chevron"></span></li>
1133 <h1 class="mb32">Validate Order</h1>
1135 <div class="col-lg-8 col-sm-9 oe_cart">
1136 <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
1137 <table class='table table-striped table-condensed' id="cart_products" t-if="website_sale_order and website_sale_order.website_order_line">
1140 <th colspan="2" width="80">Product</th>
1141 <th width="100">Price</th>
1142 <th width="120">Quantity</th>
1146 <tr t-foreach="website_sale_order.website_order_line" t-as="line">
1147 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
1148 <td t-if="line.product_id.product_tmpl_id">
1149 <a t-attf-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }">
1150 <span t-field="line.product_id.image_small"
1151 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
1154 <td t-if="line.product_id.product_tmpl_id">
1155 <strong t-field="line.product_id.name"/>
1157 <td class="text-center">
1158 <span t-field="line.price_unit" t-field-options='{
1159 "widget": "monetary",
1160 "display_currency": "website.pricelist_id.currency_id"
1164 <div t-esc="line.product_uom_qty"/>
1169 <t t-call="website_sale.total"/>
1170 <div class="clearfix"/>
1171 <div class="oe_structure"/>
1173 <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
1175 <div t-field="order.partner_invoice_id" t-field-options='{
1176 "widget": "contact",
1177 "fields": ["address", "name", "phone", "email"]
1180 <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
1182 <t groups="sale.group_delivery_invoice_address">
1183 <h4 class="mt32">Ship To:</h4>
1184 <t t-if="website_sale_order.partner_shipping_id and website_sale_order.partner_shipping_id.id != website_sale_order.partner_invoice_id.id">
1185 <div t-field="order.partner_shipping_id" t-field-options='{
1186 "widget": "contact",
1187 "fields": ["address", "name", "phone"]
1190 <address t-if="website_sale_order.partner_shipping_id.id == website_sale_order.partner_invoice_id.id">Ship to the same address</address>
1192 <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
1198 <div class="js_payment mb64 row" t-if="acquirers and website_sale_order.amount_total" id="payment_method">
1199 <div class="col-lg-5 col-sm-6">
1200 <h4>Payment Method:</h4>
1201 <ul class="list-unstyled">
1202 <li t-foreach="acquirers or []" t-as="acquirer">
1203 <label t-if="acquirer.button">
1204 <input t-att-value="acquirer.id" type="radio" name="acquirer" t-att-checked="acquirers[0] == acquirer"/>
1205 <img class="media-object" style="width: 60px; display: inline-block;"
1206 t-att-title="acquirer.name"
1207 t-att-src="'/payment_%s/static/src/img/%s_icon.png' % (acquirer.provider, acquirer.provider)"/>
1208 <span t-field="acquirer.name"/>
1213 <div class="col-lg-3 col-sm-3">
1214 <t t-foreach="acquirers or []" t-as="acquirer">
1215 <div t-att-data-id="acquirer.id" class="oe_sale_acquirer_button hidden pull-right">
1216 <div t-raw="acquirer.button"/>
1217 <div t-field="acquirer.pre_msg"/>
1222 <div class="js_payment mb64 row" t-if="not website_sale_order.amount_total" id="payment_method">
1223 <div class="col-lg-8 col-sm-8">
1224 <form target="_self" action="/shop/payment/validate" method="post" class="pull-right">
1225 <a style="width:100px;" class="btn btn-primary a-submit">
1226 <span>Pay Now <span class="fa fa-long-arrow-right"></span></span>
1233 <div class="oe_structure"/>
1239 <template id="confirmation">
1240 <t t-call="website.layout">
1242 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
1243 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_validate.js"></script>
1244 <t t-raw="head or ''"/>
1246 <t t-set="additional_title">Shop - Confirmed</t>
1248 <div class="container oe_website_sale">
1250 <ul class="wizard pull-right">
1251 <li class="text-muted">Review Order<span class="chevron"></span></li>
1252 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
1253 <li class="text-muted">Payment<span class="chevron"></span></li>
1254 <li class="text-primary">Confirmation<span class="chevron"></span></li>
1256 <h1 class="mb32">Order <em t-field="order.name"/> Confirmed</h1>
1258 <div class="col-md-8 oe_cart">
1259 <h2>Thank you for your order.</h2>
1260 <div class="oe_website_sale_tx_status" t-att-data-order-id="order.id">
1262 <div class="clearfix"/>
1263 <div class="oe_structure"/>
1265 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
1267 <div t-field="order.partner_invoice_id" t-field-options='{
1268 "widget": "contact",
1269 "fields": ["address", "name", "phone", "email"]
1271 <t groups="sale.group_delivery_invoice_address">
1272 <h4 class="mt32">Ship To:</h4>
1273 <t t-if="order.partner_shipping_id and order.partner_shipping_id.id != order.partner_invoice_id.id">
1274 <div t-field="order.partner_shipping_id" t-field-options='{
1275 "widget": "contact",
1276 "fields": ["address", "name", "phone"]
1279 <address t-if="order.partner_shipping_id.id == order.partner_invoice_id.id">Ship to the same address</address>
1285 <div class="oe_structure"/>
1291 <!-- Page Shop my cart and payment total -->
1293 <template id="total">
1294 <table class='pull-right mb16' id="cart_total" t-if="website_sale_order">
1296 <tr width="100" style="border-top: 1px solid #000" id="order_total">
1297 <th><h3>Total:& </h3></th>
1298 <th class="text-right">
1299 <h3><span t-field="website_sale_order.amount_total" t-field-options='{
1300 "widget": "monetary",
1301 "display_currency": "website.pricelist_id.currency_id"
1305 <tr width="120" class="text-muted" id="order_total_taxes">
1306 <td><abbr title="Taxes may be updated after providing shipping address">Taxes:</abbr></td>
1307 <td class="text-right">
1308 <span t-field="website_sale_order.amount_tax" t-field-options='{
1309 "widget": "monetary",
1310 "display_currency": "website.pricelist_id.currency_id"