summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2017-10-04 15:53:13 +0200
committerJeremy Kersten <jke@odoo.com>2017-10-04 15:53:29 +0200
commitea51b6b06f33fa97ace9c55bb86fceaeb60bb18a (patch)
tree24fc69ebec6a2c6ab8b09f070032eb480cda63b5 /addons
parent823a1aa22d574e92369f9ec1332c6103dbb7f8f3 (diff)
[FIX] website_sale: move promo code input after total
Right column has been removed to have a clean checkout
Diffstat (limited to 'addons')
-rw-r--r--addons/website_sale/views/templates.xml26
1 files changed, 14 insertions, 12 deletions
diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml
index f86341dac14..a27e1a339c4 100644
--- a/addons/website_sale/views/templates.xml
+++ b/addons/website_sale/views/templates.xml
@@ -1008,18 +1008,6 @@
</form>
</template>
- <template id="reduction_code" inherit_id="website_sale.cart" active="False" customize_show="True" name="Promo Code">
- <xpath expr="//div[@id='right_column']" position="inside">
- <h4>Promo Code</h4>
- <p>
- Have a promo code? Fill in this field and apply.
- </p>
- <t t-call='website_sale.coupon_form'>
- <t t-set='redirect'>/shop/cart</t>
- </t>
- </xpath>
- </template>
-
<template id="checkout">
<t t-call="website.layout">
<t t-set="additional_title">Shop - Checkout</t>
@@ -1540,6 +1528,20 @@
</div>
</template>
+ <template id="reduction_code" inherit_id="website_sale.total" active="False" customize_show="True" name="Promo Code">
+ <xpath expr="//div[@id='cart_total']" position="after">
+ <div class='col-md-offset-6 col-md-6'>
+ <h4>Promo Code</h4>
+ <p>
+ Have a promo code? Fill in this field and apply.
+ </p>
+ <t t-call='website_sale.coupon_form'>
+ <t t-set='redirect'>/shop/cart</t>
+ </t>
+ </div>
+ </xpath>
+ </template>
+
<template id="payment_confirmation_status">
<div class="oe_website_sale_tx_status" t-att-data-order-id="order.id">
<div t-att-class="'panel %s' % (