---
title: "How to Move Apply Coupon to Order Summary in Magento 2"
url: "https://magecomp.com/blog/move-apply-coupon-to-order-summary-magento-2/"
date: "2020-11-09T17:13:16+00:00"
modified: "2025-02-20T08:55:27+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 355
reading_time: "2 min read"
summary: "Hello Magento Friends ?,"
description: "Easily move apply coupon to order summary in order to grab customers’ attention for your Magento 2 store. Check out the simple steps. "
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "How to get a Special Price of the Product in Magento 2"
    url: "https://magecomp.com/blog/get-special-price-product-magento-2/"
  - title: "How to Create a Directory Programmatically in Magento 2?"
    url: "https://magecomp.com/blog/create-directory-programmatically-magento-2/"
  - title: "Magento 2:  How to Change Configurable Product Description Dynamically Based on Swatches"
    url: "https://magecomp.com/blog/magento-2-change-configurable-product-description-dynamically-based-on-swatches/"
---

# How to Move Apply Coupon to Order Summary in Magento 2

_Published: November 9, 2020_  
_Author: Dhiren Vasoya_  

![](https://magecomp.com/blog/wp-content/uploads/2020/11/How-to-Move-Apply-Coupon-to-Order-Summary-in-Magento-2-1024x512.webp)

**Hello Magento Friends ?,**

Hope you are going well with your Magento 2 stores. Today’s subject matter is How to Move Apply Coupon to Order Summary in Magento 2. Check our earlier published blog in case you missed out. [**Magento 2: How to add WYSIWYG Editor in Admin Configuration.**](https://magecomp.com/blog/magento-2-add-wysiwyg-editor-in-admin-configuration/)

[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

## Preface:
Magento 2 provides a default design for the cart page and checkout page. Many a time, requirements arise to move some fields to another field instead of the default design. The[ apply discount code](https://magecomp.com/magento-2-coupon-code-link.html) is displayed after the shopping cart items list in default Magento 2. Look at the below image:
![apply coupon magento 2](https://magecomp.com/blog/wp-content/uploads/2020/11/apply-coupon-magento-2.png)

The chances are customers may miss out to look at the apply coupon code section as it is displayed at the bottom. The order summary is the area where the customers definitely look up to before proceeding for checkout. Moving apply coupon code to order summary is an ideal solution to grab customers’ attention.
Let’s start ?
## How to Move Apply Coupon to Order Summary in Magento 2?
**Step 1:** Move to the below path:
**app\code\Vendor\Extension\view\frontend\layout\checkout_cart_index.xml**

Now, add the below code:
```
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="checkout.cart.coupon" remove="true"/>
        <block class="MagentoCheckoutBlockCartCoupon" name="checkout.cart.showcouponbefortotal" as="coupon" template="Magento_Checkout::cart/coupon.phtml"/>
        <move element="checkout.cart.showcouponbefortotal" destination="cart.summary" before="checkout.cart.totals.container"/>
    </body>
</page>
```

[![Magento Malware Removal](https://magecomp.com/blog/wp-content/uploads/2023/04/Magento-Malware-Removal-CTA-1.webp)](https://magecomp.com/magento-malware-removal.html)

**Step 2:** Now, clean the cache and check the output.
**Output:**

![apply coupon order summary magento 2](https://magecomp.com/blog/wp-content/uploads/2020/11/apply-coupon-order-summary-magento-2.png)

## Conclusion:
Simple as that. This way you can Move Apply Coupon to Order Summary in Magento 2. Display a dropdown list of multiple coupons and manage it easily with the help of [**Easy Coupon Manager Extension for Magento 2**](https://magecomp.com/magento-2-easy-coupon-manager.html). In case you find any issue while executing the code, mention in the comment part and I will be right back to you. Ensure you share the article with your friends and colleagues. Stay connected for more such Magento solutions.
[![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Speed-Performance-Optimization-Services-CTA-3.webp)](https://magecomp.com/magento-performance-optimization.html)

**Happy Coding ?**

</body>


---

_View the original post at: [https://magecomp.com/blog/move-apply-coupon-to-order-summary-magento-2/](https://magecomp.com/blog/move-apply-coupon-to-order-summary-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-05-05 12:21:50 UTC_  
