How To

Magento 2: How to Show Order Summary in Shipping Step of Checkout

Hello Magento Friends,

In this blog, you will learn How to Display Order Summary in the Shipping Step of Checkout in Magento 2.

Default Magento does not provide the functionality to show an order summary on the shipping step of the checkout process. Order summary, including order subtotal, shipping charges, order total, etc., can be displayed on the shipping step of checkout.

Go ahead to find out the solution for showing the order summary in the shipping step of Magento 2 checkout.

Steps to Show Order Summary in Shipping Step of Checkout in Magento 2:

Step 1: First, create a requires-config.js file inside the view folder at the given below path

app\code\Vendor\Extension\view\frontend

Now add the code as follows

var config = {
    config: {
        mixins: {
            'Magento_Checkout/js/view/summary/abstract-total': {
                'Vendor_Extension/js/view/summary/abstract-total-mixins': true
            }
        }
    }
};

Step 2: In the second step, create an abstract-total-mixins.js file inside web folder at the following path

app\code\Vendor\Extension\view\frontend\web\js\view\summary  

And embed the below code snippet

define([], function () {
    'use strict';
     var mixin = {

        isFullMode: function () {
            if (!this.getTotals()) {
                return false;
            }
            return true;
        }
    };

    return function (target) {
        return target.extend(mixin);
    };
});

Step 3: Clear the Magento cache, and after that, you can see the Order Summary Sidebar on the right side of the checkout shipping page. Check the below image.

Conclusion:

Hence, using the above method, you can display Order Summary in Shipping Step of Checkout in Magento 2. You can also Customize Checkout Order Summary by Adding Custom Content in Magento 2. Share the article with your friends and stay updated with us for more.

Happy Coding!

Click to rate this post!
[Total: 2 Average: 5]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate 🎖️ Certified Magento Developer👨‍💻. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.🏏

Recent Posts

How to Integrate ChatGPT with Laravel Application?

In this guide, we'll explore how to integrate ChatGPT, an AI-powered chatbot, with a Laravel…

1 day ago

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

4 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

4 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

5 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

5 days ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

1 week ago