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.
113 lines
5.4 KiB
113 lines
5.4 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Cart template customization-->
|
|
<template id="boec_cart" name="Boec Cart" inherit_id="website_sale.cart">
|
|
<xpath expr="//div[hasclass('col')]" position="before">
|
|
<Section class="banner_sub">
|
|
<div class="wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="sub_page">
|
|
<div class="name">
|
|
Cart
|
|
</div>
|
|
<nav aria-label="breadcrumb " class="brd">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a href="/">Home</a>
|
|
</li>
|
|
<i class="material-icons">
|
|
</i>
|
|
<li class="breadcrumb-item">
|
|
<a href="/shop">Shop</a>
|
|
</li>
|
|
<i class="material-icons">
|
|
</i>
|
|
<li class="breadcrumb-item active"
|
|
aria-current="page">Cart
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Section>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('col')]" position="replace">
|
|
<div class="col-12 col-xl-12 oe_cart">
|
|
<div class="row">
|
|
<div class="container">
|
|
<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"/>
|
|
<div class="oe_structure"
|
|
id="oe_structure_website_sale_cart_1"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('oe_cart')]" position="after">
|
|
<div class="oe_cart col-12 col-lg-12"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="boec_cart_coupon" name="Boec Cart Coupon" inherit_id="website_sale.coupon_form">
|
|
<xpath expr="//div[hasclass('input-group')]" position="replace">
|
|
<div class="input-group md-form form-sm form-2">
|
|
<input name="promo" class="form-control red-border"
|
|
type="text" placeholder="Coupon code"
|
|
t-att-value="website_sale_order.pricelist_id.code or None"/>
|
|
<div class="input-group-append">
|
|
<a href="#" role="button"
|
|
class="input-group-text a-submit">APPLY
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
<!-- Button style for payment-->
|
|
<template id="theme_boec.submit_button" inherit_id="payment.submit_button" name="Submit Button">
|
|
<xpath expr="//button[@name='o_payment_submit_button']" position="replace">
|
|
<button name="o_payment_submit_button"
|
|
type="submit"
|
|
t-out="submit_button_label"
|
|
class="btn btn-primary w-md-auto ms-auto px-5"
|
|
disabled="true"
|
|
/>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|