1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- Layout add nav and footer -->
7 <template id="editor_head" inherit_id="website.editor_head" name="Shop Editor" groups="base.group_sale_manager">
8 <xpath expr="//script[@id='website_tour_js']" position="after">
9 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.editor.js"></script>
10 <script type="text/javascript" src="/website_sale/static/src/js/website.tour.shop.js"></script>
14 <template id="header" inherit_id="website.layout" name="Header Shop My Cart Link">
15 <xpath expr="//header//ul[@id='top_menu']/li" position="before">
16 <li t-att-class="(not website_sale_order or not website_sale_order.get_number_of_products()) and 'hidden' or ''">
17 <a href="/shop/mycart/">
18 <i class="fa fa-shopping-cart"></i>
19 My cart <sup t-attf-class="my_cart_quantity label label-primary"
20 t-esc="website_sale_order and website_sale_order.get_number_of_products() or ''"/>
26 <!-- List of categories -->
28 <template id="categories_recursive" name="Category list">
29 <li t-att-class="category.id == search.get('category') and 'active' or ''">
30 <a t-href="/shop/category/#{ slug(category) }/" t-field="category.name"></a>
31 <ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
32 <t t-foreach="category.child_id" t-as="category">
33 <t t-call="website_sale.categories_recursive"/>
41 <template id="search" name="Search hidden fields">
42 <input type="hidden" name="category" t-att-value="search.get('category') or ''"/>
43 <input type="hidden" name="filters" t-att-value="search.get('filters') or ''"/>
44 <div class="input-group">
45 <input type="text" name="search" class="search-query form-control" placeholder="Search..." t-att-value="search.get('search') or ''"/>
46 <span class="input-group-btn">
47 <button class="btn btn-default" type="submit"><i class="fa fa-search"/></button>
52 <template id="products_cart" name="Shopping cart">
53 <div class="ribbon-wrapper">
54 <div class="ribbon btn btn-danger">Sale</div>
56 <div class="oe_product_image">
57 <a t-href="/shop/product/#{ slug(product) }/" t-keep-query="category,search,filters">
58 <span t-field="product.image" t-field-options='{"widget": "image"}'/>
62 <h5><strong><a t-href="/shop/product/#{ slug(product) }/" t-keep-query="category,search,filters" t-field="product.name"/></strong></h5>
63 <div class="product_price" t-if="product.product_variant_ids">
65 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
66 <del class="text-danger"
67 t-field="product.product_variant_ids[0].lst_price" t-field-options='{
69 "display_currency": "website.pricelist_id.currency_id"
72 <span t-field="product.product_variant_ids[0].price" t-field-options='{
74 "display_currency": "website.pricelist_id.currency_id"
81 <template id="products" name="Products">
82 <t t-call="website.layout">
84 <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
85 <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
86 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
87 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
88 <t t-raw="head or ''"/>
90 <t t-set="additional_title">Shop</t>
91 <div id="wrap" class="js_sale">
92 <div class="oe_structure"/>
93 <div class="container oe_website_sale">
94 <div class="products_pager">
96 <form action="/shop/" method="get" class="pagination form-inline col-md-3">
97 <t t-call="website_sale.search" />
99 <t t-call="website.pager"/>
103 <div class="hidden" id="products_grid_before"></div>
104 <div class="col-md-12" id="products_grid">
108 <td t-foreach="range(0,rows)" t-as="row" t-attf-width="#{100/rows}%"></td>
110 <tr t-foreach="bins" t-as="tr_product">
111 <t t-foreach="tr_product" t-as="td_product">
112 <t t-if="td_product">
113 <t t-set="product" t-value="td_product['product']"/>
114 <td t-att-colspan="td_product['x'] != 1 and td_product['x']"
115 t-att-rowspan="td_product['y'] != 1 and td_product['y']"
116 t-attf-class="oe_product oe_grid oe-height-#{td_product['y']*2} #{ td_product['class'] }">
118 <div class="oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
120 <div class="css_options" t-ignore="true" groups="base.group_website_publisher">
121 <div t-attf-class="dropdown js_options" t-att-data-id="product.id">
122 <a class="btn btn-default" t-att-id="'dopprod-%s' % product.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
123 <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % product.id">
124 <li class='dropdown-submenu'>
125 <a tabindex="-1" href="#">Size</a>
126 <ul class="dropdown-menu" name="size">
130 <td class="selected"></td>
131 <td t-att-class="product.website_size_x > 1 and 'selected'"></td>
132 <td t-att-class="product.website_size_x > 2 and 'selected'"></td>
133 <td t-att-class="product.website_size_x > 3 and 'selected'"></td>
136 <td t-att-class="product.website_size_y > 1 and 'selected'"></td>
137 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 1 and 'selected'"></td>
138 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 2 and 'selected'"></td>
139 <td t-att-class="product.website_size_y > 1 and product.website_size_x > 3 and 'selected'"></td>
142 <td t-att-class="product.website_size_y > 2 and 'selected'"></td>
143 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 1 and 'selected'"></td>
144 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 2 and 'selected'"></td>
145 <td t-att-class="product.website_size_y > 2 and product.website_size_x > 3 and 'selected'"></td>
148 <td t-att-class="product.website_size_y > 3 and 'selected'"></td>
149 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 1 and 'selected'"></td>
150 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 2 and 'selected'"></td>
151 <td t-att-class="product.website_size_y > 3 and product.website_size_x > 3 and 'selected'"></td>
157 <li class='dropdown-submenu'>
158 <a tabindex="-1" href="#">Styles</a>
159 <ul class="dropdown-menu" name="style">
160 <t t-foreach="styles" t-as="style">
161 <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>
165 <li class='dropdown-submenu'>
166 <a tabindex="-1" href="#">Promote</a>
167 <ul class="dropdown-menu" name="sequence">
168 <li><a href="#" class="js_go_to_top">Push to top</a></li>
169 <li><a href="#" class="js_go_up">Push up</a>
171 <li><a href="#" class="js_go_down">Push down</a></li>
172 <li><a href="#" class="js_go_to_bottom">Push to bottom</a></li>
179 <t t-call="website_sale.products_cart"/>
184 <td t-if="td_product == None"/>
190 <div class="text-center text-muted">
191 <h3 class="css_editable_display">No product found</h3>
192 <h3 class="css_non_editable_mode_hidden">There isn't available products right now, click <a t-href="/page/website.contactus">here</a> to contact us</h3>
193 <t groups="base.group_website_publisher">
194 <t groups="base.group_sale_manager">
195 <p>Click on "Content" to define a new product or "Help" for more informations.</p>
196 <img src="/website/static/src/img/content_here.png"/>
197 <p>In the backend's product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc.</p>
204 <div class="products_pager">
205 <t t-call="website.pager"/>
208 <div class="oe_structure mb32"/>
213 <!-- Product Description-->
215 <template id="product_description" inherit_option_id="website_sale.products_cart" name="Product Description">
216 <xpath expr="//div[@class='product_price']" position="before">
217 <div class="text-info oe_subdescription oe_shadow" t-field="product.description_sale"/>
218 <div class="text-info oe_subdescription" t-field="product.description_sale"/>
222 <!-- Add to cart button-->
224 <template id="add_to_basket" inherit_option_id="website_sale.products_cart" name="Add to Cart">
225 <xpath expr="//div[@class='product_price']" position="inside">
226 <form action="/shop/add_cart/" method="post" style="display: inline-block;">
227 <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
228 <button type="submit" class="fa fa-shopping-cart"/>
233 <!-- List view of products -->
235 <template id="list_view" inherit_option_id="website_sale.products" name="List View">
236 <xpath expr="//div[@id='products_grid']//table" position="replace">
237 <t t-foreach="products" t-as="product">
238 <div class="oe_product oe_list oe_product_cart" t-att-data-publish="product.website_published and 'on' or 'off'">
239 <t t-call="website_sale.products_cart"/>
248 <t t-call="website.layout">
250 <div class="oe_structure oe_empty">
251 <div class="container">
252 <h1 class="mt32">Product not found!</h1>
253 <p>Sorry, this product is not available anymore.</p>
254 <p><a t-href="/shop/">Return to the product list.</a></p>
261 <template id="product" name="Product">
262 <t t-call="website.layout">
264 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
265 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
266 <link rel='stylesheet' href='/website_sale/static/src/css/website_mail.css'/>
268 <t t-set="additional_title" t-value="product.name"/>
269 <div id="wrap" class="js_sale">
271 <section class="container mt8">
273 <div class="col-sm-4">
274 <ol class="breadcrumb">
275 <li><a href="/shop">Products</a></li>
276 <li t-if="search.get('category')"><a t-href="/shop/" t-keep-query="category,search,filters"><span t-field="category.name"/></a></li>
277 <li class="active"><span t-field="product.name"/></li>
280 <div class="col-sm-3">
281 <form action="/shop/" method="get" class="pull-right">
282 <t t-call="website_sale.search" />
285 <div class="col-sm-4" groups="base.group_sale_manager">
286 <t t-call="website.publish_management">
287 <t t-set="object" t-value="product"/>
288 <t t-set="publish_edit" t-value="True"/>
294 <section class="container oe_website_sale" id="product_detail">
296 <div class="col-sm-7 col-md-7 col-lg-7">
297 <span t-field="product.image" t-field-options='{"widget": "image", "class": "product_detail_img"}'/>
298 </div><div class="col-sm-5 col-md-5 col-lg-4 col-lg-offset-1">
299 <h1 t-field="product.name">Product Name</h1>
301 <form action="/shop/add_cart/" class="js_add_cart_json" method="POST">
302 <input type="hidden" t-if="len(product.product_variant_ids) == 1" name="product_id" t-att-value="product.product_variant_ids[0].id"/>
303 <t t-if="len(product.product_variant_ids) > 1">
304 <label label-default="label-default" class="radio" t-foreach="product.product_variant_ids" t-as="variant_id">
305 <input type="radio" name="product_id" t-att-value="variant_id.id" t-att-checked="variant_id == product.product_variant_ids[0] or None"/>
306 <t t-esc="variant_id.variants or ''">Standard</t>
307 <span class="badge" t-if="variant_id.price_extra">
308 <t t-esc="variant_id.price_extra > 0 and '+' or ''"/><span t-field="variant_id.price_extra" t-field-options='{
309 "widget": "monetary",
310 "display_currency": "website.pricelist_id.currency_id"
316 <div class="product_price mt16" t-if="product.product_variant_ids">
318 <t t-if="product.product_variant_ids[0].lst_price != product.product_variant_ids[0].price">
319 <span class="text-danger" style="text-decoration: line-through;"
320 t-field="product.product_variant_ids[0].lst_price"
322 "widget": "monetary",
323 "display_currency": "website.pricelist_id.currency_id"
327 t-field="product.product_variant_ids[0].price"
329 "widget": "monetary",
330 "display_currency": "website.pricelist_id.currency_id"
334 <button class="btn btn-primary btn-lg mt8">Add to Cart</button>
335 <hr t-if="product.description_sale"/>
336 <p t-field="product.description_sale" class="text-muted"/>
338 <p class="text-muted">
339 30-day money-back guarantee<br/>
340 Free Shipping in U.S.<br/>
341 Buy now, get in 2 days
347 <div t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
352 <!-- Product option: related / recommended products -->
353 <template id="recommended_products" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Recommended Products">
354 <xpath expr="//div[@id='product_full_description']" position="after">
355 <div class="container mt32" t-if="product.recommended_products()">
356 <h3>Customers who have bought this product also bought:</h3>
357 <div class='row mt16' style="margin-left: 15px !important;">
358 <t t-foreach="product.recommended_products()" t-as="product">
359 <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
360 <div class='mt16 text-center'>
361 <span t-field="product.image_small"/>
363 <a t-href="/shop/product/#{ slug(product) }/"
364 style="display: block">
365 <span t-field='product.name'
366 style="display: block"/>
377 <!-- Product option: characteristics -->
378 <template id="product_characteristics" inherit_id="website_sale.product" inherit_option_id="website_sale.product" name="Product Characteristics" groups="product.group_product_characteristics">
379 <xpath expr="//p[@t-field='product.description_sale']" position="after">
380 <hr t-if="product.website_characteristic_ids"/>
381 <p class="text-muted">
382 <t t-set="attr" t-value="None"/>
383 <t t-foreach="product.website_characteristic_ids" t-as="characteristic"><br t-if="attr and characteristic.characteristic_id.id != attr"/><t t-if="characteristic.characteristic_id.id != attr"><span t-field="characteristic.characteristic_id"/>: </t><t t-if="characteristic.characteristic_id.id == attr">, </t><t t-if="characteristic.characteristic_id.type == 'distinct'"><span t-field="characteristic.value_id"/></t><t t-if="characteristic.characteristic_id.type == 'float'"><span t-field="characteristic.value"/></t><t t-set="attr" t-value="characteristic.characteristic_id.id"/></t>
388 <!-- Product options: OpenChatter -->
389 <template id="product_option_openchatter" inherit_option_id="website_sale.product" name="Discussion">
390 <xpath expr="//div[@t-field='product.website_description']" position="after">
392 <section class="container">
393 <div class="row col-md-10 col-md-offset-1">
394 <div class="text-muted">
395 <h3 class="fa fa-comment-o">
397 <t t-if="len(product.website_message_ids) <= 1" ><t t-esc="len(product.website_message_ids)"/> comment</t>
398 <t t-if="len(product.website_message_ids) > 1"><t t-esc="len(product.website_message_ids)"/> comments</t>
402 <ul class="media-list" id="comments-list" t-if="product.website_message_ids">
403 <li t-foreach="product.website_message_ids" t-as="message" class="media">
404 <div class="media-body oe_msg">
405 <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;"/>
406 <div class="media-body oe_msg_content">
407 <t t-call="website.publish_short">
408 <t t-set="object" t-value="message"/>
410 <h5 class="media-heading">
411 <span t-field="message.author_id"/> <small>on <span t-field="message.date"/></small>
413 <div t-field="message.body"/>
415 <div class="oe_msg_attachment" t-foreach='message.attachment_ids' t-as='attachment'>
416 <a t-att-href="'/mail/download_attachment?model=mail.message&id='+str(message.id)+'&method=download_attachment&attachment_id='+str(attachment.id)" target="_blank">
417 <t t-if="attachment.file_type == 'webimage'">
418 <img t-att-src="'/web/binary/image?model=ir.attachment&field=datas&id=' + str(attachment.id) + '&resize=100,80'"
419 class='oe_attachment_embedded'></img>
421 <t t-if="attachment.file_type != 'webimage'">
422 <img t-att-src="'/mail/static/src/img/mimetypes/' + attachment.file_type + '.png'"
423 class='oe_attachment_webimage'></img>
425 <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
433 <div class="css_editable_mode_hidden">
434 <form id="comment" t-attf-action="/shop/product/#{product.id}/comment"
436 <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;"/>
437 <div class="pull-left mb32" style="width: 75%%">
438 <textarea rows="3" name="comment" class="form-control" placeholder="Write a comment..."></textarea>
439 <button type="submit" class="btn btn-primary mt8">Post</button>
448 <!-- Page Shop my cart -->
450 <template id="mycart" name="Your Cart">
451 <t t-call="website.layout">
453 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
454 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
455 <t t-raw="head or ''"/>
458 <div class="container oe_website_sale">
460 <ul class="wizard pull-right">
461 <li class="text-primary">Review Order<span class="chevron"></span></li>
462 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
463 <li class="text-muted">Payment<span class="chevron"></span></li>
464 <li class="text-muted">Confirmation<span class="chevron"></span></li>
466 <h1 class="mb32">Shopping Cart</h1>
468 <div class="col-md-8 col-sm-9 oe_mycart">
469 <div t-if="not website_sale_order or not website_sale_order.website_order_line" class="well well-lg">
472 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.website_order_line">
481 <th colspan="2">Product</th>
487 <tr t-foreach="website_sale_order.website_order_line" t-as="line">
488 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
489 <td align="center" t-if="line.product_id.product_tmpl_id">
490 <span t-field="line.product_id.image_small"
491 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
493 <td t-if="line.product_id.product_tmpl_id">
495 <a t-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }/">
496 <strong t-field="line.product_id.name"/>
497 <t t-if="line.product_id.variants">(<t t-esc="line.product_id.variants"/>)</t>
500 <div class="text-muted" t-field="line.product_id.description_sale"/>
502 <td class="text-center">
503 <del class="text-danger" t-if="line.product_id.lst_price > line.price_unit">
504 <span t-field="line.product_id.lst_price" t-field-options='{
505 "widget": "monetary",
506 "display_currency": "website.pricelist_id.currency_id"
509 <span t-field="line.price_unit" t-field-options='{
510 "widget": "monetary",
511 "display_currency": "website.pricelist_id.currency_id"
515 <div class="input-group">
516 <span class="input-group-addon">
517 <a t-href="../change_cart/#{ line.id }/?remove=True" class="mb8 js_add_cart_json">
518 <i class="fa fa-minus-square"></i>
521 <input type="text" class="js_quantity form-control"
522 t-att-data-id="line.id" t-att-value="int(line.product_uom_qty)"/>
523 <span class="input-group-addon">
524 <a t-href="../change_cart/#{ line.id }/" class="mb8 float_left js_add_cart_json">
525 <i class="fa fa-plus-square"></i>
534 <t t-call="website_sale.total"/>
535 <div class="clearfix"/>
536 <a href="/shop" class="btn btn-default mb32"><span class="fa fa-long-arrow-left"/> Continue Shopping</a>
537 <a t-if="website_sale_order and website_sale_order.website_order_line" href="/shop/checkout/" class="btn btn-primary pull-right mb32">Process Checkout <span class="fa fa-long-arrow-right"/></a>
538 <div class="oe_structure"/>
540 <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
542 <ul class="list-unstyled mb32">
543 <li>☑ 30-days money-back guarantee</li>
544 <li>☑ Invoice sent by e-Mail</li>
546 <h4>Secure Payment</h4>
547 <ul class="list-unstyled mb32">
548 <li>☑ 256 bit encryption</li>
549 <li>☑ Processed by Ogone</li>
555 <div class="oe_structure"/>
562 <template id="products_categories" inherit_option_id="website_sale.products" name="Product Categories">
563 <xpath expr="//div[@id='products_grid_before']" position="inside">
564 <ul class="nav nav-pills nav-stacked mt16">
565 <li t-att-class=" '' if search.get('category') else 'active' "><a href="/shop/">All Products</a></li>
566 <t t-foreach="categories" t-as="category">
567 <t t-call="website_sale.categories_recursive"/>
571 <xpath expr="//div[@id='products_grid_before']" position="attributes">
572 <attribute name="class">col-md-3 hidden-xs</attribute>
574 <xpath expr="//div[@id='products_grid']" position="attributes">
575 <attribute name="class">col-md-9</attribute>
579 <template id="products_characteristics" inherit_id="website_sale.products" inherit_option_id="website_sale.products" name="Product Characteristic's Filters" groups="product.group_product_characteristics">
580 <xpath expr="//div[@id='products_grid_before']" position="inside">
581 <form t-action="/shop/filters/" method="post" t-keep-query="category,search">
582 <ul class="nav nav-pills nav-stacked mt16">
583 <t t-set="characteristic_ids" t-value="Ecommerce.get_characteristic_ids()"/>
584 <t t-foreach="characteristic_ids" t-as="characteristic_id">
585 <t t-if="characteristic_id.visible">
586 <li t-if="characteristic_id.value_ids and characteristic_id.type == 'distinct'">
587 <div t-field="characteristic_id.name"/>
588 <ul class="nav nav-pills nav-stacked">
589 <t t-foreach="characteristic_id.value_ids" t-as="value_id">
590 <li t-att-class="Ecommerce.has_search_filter(characteristic_id.id, value_id.id) and 'active' or ''">
591 <label style="margin: 0 20px;">
592 <input type="checkbox" t-att-name="'att-%s-%s' % (characteristic_id.id, value_id.id)"
593 t-att-checked="Ecommerce.has_search_filter(characteristic_id.id, value_id.id) and 'checked' or ''"/>
594 <span style="font-weight: normal" t-field="value_id.name"/>
600 <li t-if="characteristic_id.type == 'float' and characteristic_id.float_min != characteristic_id.float_max">
601 <div t-field="characteristic_id.name"/>
602 <t t-set="characteristic" t-value="Ecommerce.has_search_filter(characteristic_id.id)"/>
603 <div style="margin: 0 20px;" class="js_slider"
604 t-att-data-id="characteristic_id.id"
605 t-att-data-value-min="characteristic and characteristic[1][0] or characteristic_id.float_min"
606 t-att-data-value-max="characteristic and characteristic[1][1] or characteristic_id.float_max"
607 t-att-data-min="characteristic_id.float_min"
608 t-att-data-max="characteristic_id.float_max"></div>
613 <button class="btn btn-xs btn-primary mt16">Apply filter</button>
614 <a t-href="/shop/" t-keep-query="category,search" class="btn btn-xs btn-default mt16">Cancel filter</a>
617 <xpath expr="//div[@id='products_grid_before']" position="attributes">
618 <attribute name="class">col-md-3 hidden-xs</attribute>
620 <xpath expr="//div[@id='products_grid']" position="attributes">
621 <attribute name="class">col-md-9</attribute>
625 <template id="suggested_products_list" inherit_id="website_sale.mycart" inherit_option_id="website_sale.mycart" name="Suggested Products in my cart">
626 <xpath expr="//table[@id='mycart_products']" position="after">
627 <table t-if="suggested_products" class='table table-striped table-condensed'>
636 <th colspan="2">Suggested products</th>
640 <tr t-foreach="suggested_products" t-as="product">
643 <a t-href="/shop/product/#{ slug(product.product_tmpl_id) }/">
644 <span t-field="product.image_small"
645 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
650 <a t-href="/shop/product/#{ slug(product.product_tmpl_id) }/">
651 <strong t-field="product.name"/>
654 <div class="text-muted" t-field="product.description_sale"/>
657 <span t-field="product.lst_price" t-field-options='{
658 "widget": "monetary",
659 "display_currency": "website.pricelist_id.currency_id"
662 <td class="text-center">
663 <form action="/shop/add_cart/" method="post">
664 <input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
665 <button type="submit" class="btn btn-link"><strong>Add to Cart</strong></button>
674 <template id="reduction_code" inherit_option_id="website_sale.mycart" name="Reduction Code">
675 <xpath expr="//div[@id='right_column']" position="inside">
678 Have a coupon code? Fill in this field and apply.
680 <form t-if="website_sale_order and website_sale_order.website_order_line" action="/shop/mycart/" method="post" class="mb32">
681 <div class="input-group">
682 <input name="promo" class='form-control' type="text" placeholder="code..." t-att-value="website_sale_order.pricelist_id.code or ''"/>
683 <div class="input-group-btn">
684 <button class="btn btn-default">Apply</button>
692 <!-- Page confirm my cart -->
694 <template id="checkout">
695 <t t-call="website.layout">
697 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
698 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
699 <t t-raw="head or ''"/>
701 <t t-set="additional_title">Shop - Checkout</t>
703 <div class="container oe_website_sale">
704 <ul class="wizard pull-right">
705 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
706 <li class="text-primary">Shipping & Billing<span class="chevron"></span></li>
707 <li class="text-muted">Payment<span class="chevron"></span></li>
708 <li class="text-muted">Confirmation<span class="chevron"></span></li>
710 <h1>Your Address</h1>
711 <form action="/shop/confirm_order/" method="post">
714 <div class="col-md-8 oe_mycart">
715 <h3 class="page-header mt16">Billing Information
716 <small groups="base.group_public"> or
717 <a t-if="not partner" t-attf-href="/web#action=redirect&url=#{ request.httprequest.url }">sign in</a>
721 <div t-attf-class="form-group #{error.get('name') and 'has-error' or ''} col-lg-6">
722 <label class="control-label" for="contact_name">Your Name</label>
723 <input type="text" name="name" class="form-control" t-att-value="checkout.get('name')"/>
725 <div t-attf-class="form-group #{error.get('company') and 'has-error' or ''} col-lg-6">
726 <label class="control-label" for="company" style="font-weight: normal">Your Company</label>
727 <input type="text" name="company" class="form-control" t-att-value="checkout.get('company')"/>
729 <div t-attf-class="form-group #{error.get('email') and 'has-error' or ''} col-lg-6">
730 <label class="control-label" for="contact_name">Email</label>
731 <input type="email" name="email" class="form-control" t-att-value="checkout.get('email')"/>
733 <div t-attf-class="form-group #{error.get('phone') and 'has-error' or ''} col-lg-6">
734 <label class="control-label" for="phone">Phone</label>
735 <input type="tel" name="phone" class="form-control" t-att-value="checkout.get('phone')"/>
738 <div t-attf-class="form-group #{error.get('street') and 'has-error' or ''} col-lg-6">
739 <label class="control-label" for="street">Street</label>
740 <input type="text" name="street" class="form-control" t-att-value="checkout.get('street')"/>
742 <div class="clearfix"/>
744 <div t-attf-class="form-group #{error.get('city') and 'has-error' or ''} col-lg-6">
745 <label class="control-label" for="city">City</label>
746 <input type="text" name="city" class="form-control" t-att-value="checkout.get('city')"/>
748 <div t-attf-class="form-group #{error.get('zip') and 'has-error' or ''} col-lg-6">
749 <label class="control-label" for="zip">Zip / Postal Code</label>
750 <input type="text" name="zip" class="form-control" t-att-value="checkout.get('zip')"/>
752 <div t-attf-class="form-group #{error.get('state_id') and 'has-error' or ''} col-lg-6">
753 <label class="control-label" for="state_id" style="font-weight: normal">State / Province</label>
754 <select name="state_id" class="form-control">
755 <option value="">select...</option>
756 <t t-foreach="states or []" t-as="state">
757 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('state_id')"><t t-esc="state.name"/></option>
761 <div t-attf-class="form-group #{error.get('country_id') and 'has-error' or ''} col-lg-6">
762 <label class="control-label" for="contact_name">Country</label>
763 <select name="country_id" class="form-control">
764 <option value="">Country...</option>
765 <t t-foreach="countries or []" t-as="country">
766 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('country_id')"><t t-esc="country.name"/></option>
771 <div class="clearfix"/>
773 <div class="form-group col-lg-6" groups="sale.group_delivery_invoice_address">
775 <input type="checkbox" name="shipping_different" t-att-checked="shipping"/>
776 Ship to a different address
780 <div class="js_shipping row mb16" t-att-style="not shipping and 'display:none' or ''" groups="sale.group_delivery_invoice_address">
781 <h3 class="oe_shipping col-lg-12 mt16">Shipping Information</h3>
783 <div t-attf-class="form-group #{error.get('shipping_name') and 'has-error' or ''} col-lg-6">
784 <label class="control-label" for="contact_name">Name (Shipping)</label>
785 <input type="text" name="shipping_name" class="form-control" t-att-value="checkout.get('shipping_name', '')"/>
787 <div t-attf-class="form-group #{error.get('shipping_phone') and 'has-error' or ''} col-lg-6">
788 <label class="control-label" for="contact_name">Phone</label>
789 <input type="tel" name="shipping_phone" class="form-control" t-att-value="checkout.get('shipping_phone', '')"/>
791 <div t-attf-class="form-group #{error.get('shipping_street') and 'has-error' or ''} col-lg-6">
792 <label class="control-label" for="contact_name">Street</label>
793 <input type="text" name="shipping_street" class="form-control" t-att-value="checkout.get('shipping_street', '')"/>
795 <div class="clearfix"/>
796 <div t-attf-class="form-group #{error.get('shipping_city') and 'has-error' or ''} col-lg-6">
797 <label class="control-label" for="contact_name">City</label>
798 <input type="text" name="shipping_city" class="form-control" t-att-value="checkout.get('shipping_city', '')"/>
800 <div t-attf-class="form-group #{error.get('shipping_zip') and 'has-error' or ''} col-lg-6">
801 <label class="control-label" for="contact_name">Zip / Postal Code</label>
802 <input type="text" name="shipping_zip" class="form-control" t-att-value="checkout.get('shipping_zip', '')"/>
804 <div t-attf-class="form-group #{error.get('shipping_state_id') and 'has-error' or ''} col-lg-6">
805 <label class="control-label" for="contact_name" style="font-weight: normal">State / Province</label>
806 <select name="shipping_state_id" class="form-control">
807 <option value="">State / Province...</option>
808 <t t-foreach="states or []" t-as="state">
809 <option t-att-value="state.id" t-att-selected="state.id == checkout.get('shipping_state_id')"><t t-esc="state.name"/></option>
813 <div t-attf-class="form-group #{error.get('shipping_country_id') and 'has-error' or ''} col-lg-6">
814 <label class="control-label" for="contact_name">Country</label>
815 <select name="shipping_country_id" class="form-control">
816 <option value="">Country...</option>
817 <t t-foreach="countries or []" t-as="country">
818 <option t-att-value="country.id" t-att-selected="country.id == checkout.get('shipping_country_id')"><t t-esc="country.name"/></option>
823 <button type="submit" class="btn btn-default btn-primary pull-right mb32">Confirm <span class="fa fa-long-arrow-right"/></button>
825 <div class="col-lg-offset-1 col-lg-3 text-muted">
826 <h3 class="page-header mt16">Your Order <small><a href="/shop/mycart"><span class="fa fa-arrow-right"/> change</a></small></h3>
828 <div class="col-sm-6 text-right">Subtotal:</div>
829 <div class="col-sm-6"><span t-esc="website_sale_order.amount_untaxed" t-field-options='{
830 "widget": "monetary",
831 "display_currency": "website.pricelist_id.currency_id"
833 <div class="col-sm-6 text-right">Taxes:</div>
834 <div class="col-sm-6"><span t-field="website_sale_order.amount_tax" t-field-options='{
835 "widget": "monetary",
836 "display_currency": "website.pricelist_id.currency_id"
838 <div class="col-sm-6 text-right"><h4>Total To Pay:</h4></div>
839 <div class="col-sm-6"><h4><span t-field="website_sale_order.amount_total" t-field-options='{
840 "widget": "monetary",
841 "display_currency": "website.pricelist_id.currency_id"
852 <template id="payment">
853 <t t-call="website.layout">
855 <script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
856 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_payment.js"></script>
857 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
858 <t t-raw="head or ''"/>
860 <t t-set="additional_title">Shop - Select Payment Mode</t>
862 <div class="container oe_website_sale">
864 <ul class="wizard pull-right">
865 <li><a href="/shop/mycart" class="text-success">Review Order<span class="chevron"></span></a></li>
866 <li><a href="/shop/checkout" class="text-success">Shipping & Billing<span class="chevron"></span></a></li>
867 <li class="text-primary">Payment<span class="chevron"></span></li>
868 <li class="text-muted">Confirmation<span class="chevron"></span></li>
870 <h1 class="mb32">Validate Order</h1>
872 <div class="col-lg-8 col-sm-9 oe_mycart">
873 <table class='table table-striped table-condensed' id="mycart_products" t-if="website_sale_order and website_sale_order.website_order_line">
882 <th colspan="2">Product</th>
888 <tr t-foreach="website_sale_order.website_order_line" t-as="line">
889 <td colspan="2" t-if="not line.product_id.product_tmpl_id"></td>
890 <td t-if="line.product_id.product_tmpl_id">
891 <a t-href="/shop/product/#{ slug(line.product_id.product_tmpl_id) }/">
892 <span t-field="line.product_id.image_small"
893 t-field-options='{"widget": "image", "class": "img-rounded"}'/>
896 <td t-if="line.product_id.product_tmpl_id">
897 <strong t-field="line.product_id.name"/>
899 <td class="text-center">
900 <span t-field="line.price_unit" t-field-options='{
901 "widget": "monetary",
902 "display_currency": "website.pricelist_id.currency_id"
906 <div t-esc="line.product_uom_qty"/>
911 <t t-call="website_sale.total"/>
912 <div class="clearfix"/>
913 <div class="oe_structure"/>
915 <div class="col-lg-3 col-lg-offset-1 col-sm-3 text-muted" id="right_column">
917 <div t-field="order.partner_invoice_id" t-field-options='{
919 "fields": ["address", "name", "phone", "email"]
922 <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
924 <t groups="sale.group_delivery_invoice_address">
925 <h4 class="mt32">Ship To:</h4>
926 <t t-if="website_sale_order.partner_shipping_id and website_sale_order.partner_shipping_id.id != website_sale_order.partner_invoice_id.id">
927 <div t-field="order.partner_shipping_id" t-field-options='{
929 "fields": ["address", "name", "phone"]
932 <address t-if="website_sale_order.partner_shipping_id.id == website_sale_order.partner_invoice_id.id">Ship to the same address</address>
934 <a href="/shop/checkout"><span class="fa fa-arrow-right"/> Change Address</a>
940 <div class="js_payment mb64" t-if="acquirers" id="payment_method">
941 <div class="col-lg-5 col-sm-6">
942 <h4>Payment Method:</h4>
943 <t t-foreach="acquirers or []" t-as="acquirer">
944 <label t-if="acquirer.button" class="oe_sale_acquirer_logo" style="display: block;">
945 <input t-att-value="acquirer.id" type="radio" name="acquirer" t-att-checked="acquirers[0] == acquirer"/>
946 <img class="media-object" style="width: 60px; display: inline-block;"
947 t-att-title="acquirer.name"
948 t-att-src="'/payment_acquirer_%s/static/src/img/%s_icon.png' % (acquirer.name, acquirer.name)"/>
952 <div class="col-lg-3 col-sm-3">
953 <t t-foreach="acquirers or []" t-as="acquirer">
954 <div t-att-data-id="acquirer.id" t-raw="acquirer.button" class="oe_sale_acquirer_button hidden pull-right"/>
960 <div class="oe_structure"/>
966 <template id="confirmation">
967 <t t-call="website.layout">
969 <link rel='stylesheet' href='/website_sale/static/src/css/website_sale.css'/>
970 <script type="text/javascript" src="/website_sale/static/src/js/website_sale_validate.js"></script>
971 <t t-raw="head or ''"/>
973 <t t-set="additional_title">Shop - Confirmed</t>
975 <div class="container oe_website_sale">
977 <ul class="wizard pull-right">
978 <li class="text-muted">Review Order<span class="chevron"></span></li>
979 <li class="text-muted">Shipping & Billing<span class="chevron"></span></li>
980 <li class="text-muted">Payment<span class="chevron"></span></li>
981 <li class="text-primary">Confirmation<span class="chevron"></span></li>
983 <h1 class="mb32">Order Confirmed</h1>
985 <div class="col-md-8 oe_mycart">
986 <h2>Thank you for your order.</h2>
987 <div class="oe_website_sale_tx_status" t-att-data-order-id="order.id">
989 <div class="clearfix"/>
990 <div class="oe_structure"/>
992 <div class="col-md-3 col-md-offset-1 text-muted" id="right_column">
994 <div t-field="order.partner_invoice_id" t-field-options='{
996 "fields": ["address", "name", "phone", "email"]
998 <t groups="sale.group_delivery_invoice_address">
999 <h4 class="mt32">Ship To:</h4>
1000 <t t-if="order.partner_shipping_id and order.partner_shipping_id.id != order.partner_invoice_id.id">
1001 <div t-field="order.partner_shipping_id" t-field-options='{
1002 "widget": "contact",
1003 "fields": ["address", "name", "phone"]
1006 <address t-if="order.partner_shipping_id.id == order.partner_invoice_id.id">Ship to the same address</address>
1012 <div class="oe_structure"/>
1018 <!-- Page Shop my cart and payment total -->
1020 <template id="total">
1021 <table class='pull-right mb16' id="mycart_total" t-if="website_sale_order">
1027 <tr style="border-top: 1px solid #000" id="order_total">
1028 <th><h3>Total:</h3></th>
1029 <th class="text-right">
1030 <h3><span t-field="website_sale_order.amount_total" t-field-options='{
1031 "widget": "monetary",
1032 "display_currency": "website.pricelist_id.currency_id"
1036 <tr class="text-muted" id="order_total_taxes">
1037 <td><abbr title="Taxes may be updated after providing shipping address">Taxes:</abbr></td>
1038 <td class="text-right">
1039 <span t-field="website_sale_order.amount_tax" t-field-options='{
1040 "widget": "monetary",
1041 "display_currency": "website.pricelist_id.currency_id"