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.
93 lines
5.2 KiB
93 lines
5.2 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- This XML template inherits from the existing "website_sale.payment" template -->
|
|
<template id="coffee_shop_payment" inherit_id="website_sale.payment"
|
|
name="Coffee Payment">
|
|
<xpath expr="." position="replace">
|
|
<t t-call="website.layout">
|
|
<t t-set="additional_title">Shop - Select Payment Provider</t>
|
|
<t t-set="no_footer" t-value="1"/>
|
|
<div id="wrap">
|
|
<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="40"/>
|
|
</t>
|
|
</div>
|
|
<div class="col-12" t-if="errors">
|
|
<t t-foreach="errors" t-as="error">
|
|
<div class="alert alert-danger"
|
|
t-if="error" role="alert">
|
|
<h4>
|
|
<t t-esc="error[0]"/>
|
|
</h4>
|
|
<t t-esc="error[1]"/>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
<div class="col-12 col-xl-auto order-xl-2">
|
|
<t t-call="website_sale.cart_summary"/>
|
|
</div>
|
|
<div class="col-12 col-xl order-xl-1 oe_cart">
|
|
<div id='address_on_payment'>
|
|
<t t-call="website_sale.address_on_payment"/>
|
|
</div>
|
|
<div class="oe_structure clearfix mt-3"
|
|
id="oe_structure_website_sale_payment_1"/>
|
|
<t t-if="website_sale_order.amount_total">
|
|
<div t-if="providers or tokens"
|
|
id="payment_method" class="mt-3">
|
|
<h3 class="mb24">Pay with</h3>
|
|
<t t-call="payment.checkout">
|
|
<t t-set="footer_template_id"
|
|
t-value="'website_sale.payment_footer'"/>
|
|
<t t-set="submit_button_label"
|
|
class="btn-color">Pay Now
|
|
</t>
|
|
</t>
|
|
</div>
|
|
<div t-else="" class="alert alert-warning">
|
|
<strong>No suitable payment option
|
|
could be found.
|
|
</strong>
|
|
<br/>
|
|
If you believe that it is an error,
|
|
please contact the website
|
|
administrator.
|
|
</div>
|
|
</t>
|
|
<div t-if="not providers" class="mt-2">
|
|
<a role="button" groups="base.group_system"
|
|
t-attf-href="/web#action=#{payment_action_id}">
|
|
<i class="fa fa-arrow-right"/>
|
|
Add payment providers
|
|
</a>
|
|
</div>
|
|
<div class="js_payment mt-3"
|
|
t-if="not website_sale_order.amount_total"
|
|
id="payment_method"
|
|
name="o_website_sale_free_cart">
|
|
<form target="_self"
|
|
action="/shop/payment/validate"
|
|
method="post">
|
|
<input type="hidden" name="csrf_token"
|
|
t-att-value="request.csrf_token()"/>
|
|
<t t-call="website_sale.payment_footer"
|
|
class="btn-color">
|
|
<t t-set="submit_button_label"
|
|
class="btn-color">Confirm Order
|
|
</t>
|
|
</t>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="oe_structure"
|
|
id="oe_structure_website_sale_payment_2"/>
|
|
</div>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|