From ea51b6b06f33fa97ace9c55bb86fceaeb60bb18a Mon Sep 17 00:00:00 2001
From: Jeremy Kersten <jke@odoo.com>
Date: Wed, 4 Oct 2017 15:53:13 +0200
Subject: [PATCH] [FIX] website_sale: move promo code input after total

Right column has been removed to have a clean checkout
---
 addons/website_sale/views/templates.xml | 26 +++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml
index f86341dac14f..a27e1a339c46 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' % (
-- 
GitLab