Hello Magento Friends,

In today’s blog, we will learn How to Show SKU in Order Summary in Magento 2.

Order summary in Magento 2 usually contains product details like product icon, product name, quantity, and product price. But you can customize the order summary in Magento 2 depending on your requirements.

At the time of purchase, the customer might want to check the SKU (Stock Keeping Unit) of the product. This identifier helps them confirm they’ve ordered the right products, especially if you sell items that are similar in name but differ by SKU.

Hence, to add SKU in the order summary, follow the below steps.

Steps to Show SKU in Order Summary in Magento 2:

Step 1: First, we need to create a “requirejs-config.js” file inside our extension at the following path.

app/code/Vendor/Extension/view/frontend/requirejs-config.js

Now, add the code as follows

Step 2: First, we need to create a “details.html” file inside our extension at the following path.

app/code/Vendor/Extension/view/frontend/web/template/summary/item/details.html

Then include the following code

Output:

Now try placing an order from your Magento 2 store and check the order summary. It will also show the SKU as below image.

SKU in order summary

Conclusion:

Adding SKU to the order summary in Magento 2 provides more information to customers, enhancing the order experience and ensuring greater accuracy. With the simple steps above, you can improve transparency on your order pages, making it easier for customers to manage their purchases.

Happy Coding!

Click to rate this post!
[Total: 1 Average: 5]