You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
6.8 KiB
121 lines
6.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<data>
|
|
<template id="cart_lego" inherit_id="website_sale.cart"
|
|
name="cart products">
|
|
<xpath expr="//div[hasclass('oe_website_sale')]" position="replace">
|
|
<div class="container oe_website_sale py-2">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<t t-call="website_sale.wizard_checkout">
|
|
<t t-set="step" t-value="10" />
|
|
</t>
|
|
</div>
|
|
<div class="col-12 col-xl-8 oe_cart">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div t-if="abandoned_proceed or access_token" class="mt8 mb8 alert alert-info" role="alert"> <!-- abandoned cart choices -->
|
|
<t t-if="abandoned_proceed">
|
|
<p>Your previous cart has already been completed.</p>
|
|
<p t-if="website_sale_order">Please proceed your current cart.</p>
|
|
</t>
|
|
<t t-if="access_token">
|
|
<p>This is your current cart.</p>
|
|
<p>
|
|
<strong><a t-attf-href="/shop/cart/?access_token=#{access_token}&revive=squash">Click here</a></strong> if you want to restore your previous cart. Your current cart will be replaced with your previous cart.</p>
|
|
<p>
|
|
<strong><a t-attf-href="/shop/cart/?access_token=#{access_token}&revive=merge">Click here</a></strong> if you want to merge your previous cart into current cart.
|
|
</p>
|
|
</t>
|
|
</div>
|
|
<t t-call="website_sale.cart_lines" />
|
|
<div class="clearfix" />
|
|
<a role="button" href="/shop" class="btn btn-cartd mb32 d-none d-xl-inline-block">
|
|
<span class="fa fa-chevron-left" />
|
|
<span class="">Continue Shopping</span>
|
|
</a>
|
|
<a role="button" t-if="website_sale_order and website_sale_order.website_order_line" class="btn btn-cartd float-right d-none d-xl-inline-block" href="/shop/checkout?express=1">
|
|
<span class="">Process Checkout</span>
|
|
<span class="fa fa-chevron-right" />
|
|
</a>
|
|
<div class="oe_structure" id="oe_structure_website_sale_cart_1"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-xl-4" id="o_cart_summary">
|
|
<t t-call="website_sale.short_cart_summary"/>
|
|
<div class="d-xl-none mt8">
|
|
<a role="button" href="/shop" class="btn btn-cartd mb32">
|
|
<span class="fa fa-chevron-left" />
|
|
Continue<span class="d-none d-md-inline"> Shopping</span>
|
|
</a>
|
|
<a role="button" t-if="website_sale_order and website_sale_order.website_order_line" class="btn btn-cartd float-right" href="/shop/checkout?express=1">
|
|
<span class="">Process Checkout</span>
|
|
<span class="fa fa-chevron-right" />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
|
|
<!--banner-->
|
|
<template id="cart_product_line_lego" inherit_id="website_sale.cart"
|
|
name="cart product line">
|
|
<xpath expr="//div[hasclass('oe_website_sale')]" position="before">
|
|
<section class="banner_product">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="banner_content">
|
|
<div class="product_heading">
|
|
<h1>Checkout</h1>
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a href="/">Home</a>
|
|
<i class="material-icons"
|
|
style="font-size:12px;color:#ffffff;">
|
|
arrow_forward
|
|
</i>
|
|
</li>
|
|
<li class="breadcrumb-item active"
|
|
aria-current="page">Cart
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="cart_summary_lego" inherit_id="website_sale.short_cart_summary"
|
|
name="cart product summary">
|
|
<xpath expr="//div[hasclass('card-body')]" position="replace">
|
|
<div class="card-body">
|
|
<h4 class="d-none d-xl-block">Order Total</h4>
|
|
<hr class="d-none d-xl-block"/>
|
|
<div>
|
|
<t t-call="website_sale.total">
|
|
<t t-set="no_rowspan" t-value="1"/>
|
|
</t>
|
|
<a role="button"
|
|
t-if="website_sale_order and website_sale_order.website_order_line"
|
|
class="btn btn-cartd float-right d-none d-xl-inline-block"
|
|
href="/shop/checkout?express=1">
|
|
<span>Process Checkout</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</data>
|
|
</odoo>
|
|
|
|
|