---
title: "How to Add Tooltip in Checkout Shipping Field in Magento 2?"
url: "https://magecomp.com/blog/add-tooltip-in-checkout-shipping-field-magento-2/"
date: "2024-11-15T16:45:12+00:00"
modified: "2025-02-12T11:44:29+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 314
reading_time: "2 min read"
summary: "Hello Magento Friends,"
description: "Learn how to add a tooltip to the checkout shipping field in Magento 2 to enhance user experience."
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "10 Best Magento 2 WhatsApp Contact Extension Providers You Can Trust"
    url: "https://magecomp.com/blog/best-magento-2-whatsapp-contact-extension-providers/"
  - title: "How to disable Ajax Add to Cart on Product page in Magento 2"
    url: "https://magecomp.com/blog/disable-ajax-add-cart-product-page-magento-2/"
  - title: "Difference Between: Magento 2 WhatsApp Order Notification vs. Magento 2 SMS Notification"
    url: "https://magecomp.com/blog/difference-between-magento-2-whatsapp-order-notification-vs-magento-2-sms-notification/"
---

# How to Add Tooltip in Checkout Shipping Field in Magento 2?

_Published: November 15, 2024_  
_Author: Dhiren Vasoya_  

![How to Add Tooltip in Checkout Shipping Field in Magento 2](https://magecomp.com/blog/wp-content/uploads/2024/11/How-to-Add-Tooltip-in-Checkout-Shipping-Field-in-Magento-2-1024x512.webp)

**Hello Magento Friends,**

In today’s blog, I will explain How to Add Tooltip in Checkout Shipping Field in Magento 2.
Tooltips are used to provide additional information especially about clarifying the input requirement or explaining specific options. Adding tooltips to checkout fields in Magento 2 helps in a smooth checkout process and improves user experience with the right guidance. Checkout errors are reduced as the user gets the required information.
[![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

Let’s find out how you can add a tooltip in the checkout shipping field in Magento 2.
## Steps to Add Tooltip in Checkout Shipping Field in Magento 2:
**Step 1:** Create a **di.xml** file in the given below path.
**{{magento_root}}\app\code\Vendor\Extension\etc\di.xml**

Now add the code as follows
```
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoCheckoutBlockCheckoutLayoutProcessor">
        <plugin name="Custom_Checkout" type="VendorExtensionPluginLayoutProcessor" sortOrder="100"/>
    </type>
</config>
```

**Step 2:** Create a **LayoutProcessor.php** in path given below.
**{magento_root}}\app\code\Vendor\Extension\Plugin\LayoutProcessor.php**

Now add the following code
```
<?php

namespace VendorExtensionPlugin;

class LayoutProcessor
{
    public function afterProcess(
        MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
        array $jsLayout
    ) {
        $jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
    ['shippingAddress']['children']['shipping-address-fieldset']['children']['lastname']['tooltip']['description'] = "Enter your last name here.";
        return $jsLayout;
    }
}
```

[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-2.webp)](https://magecomp.com/services/hyva-theme-development/)

**Output:**

After implementing the above steps, navigate to the checkout page and hover the tooltip icon (?) and you can see the tooltip message.
![checkout field tooltip](https://magecomp.com/blog/wp-content/uploads/2024/11/checkout-field-tooltip-png.avif)

## Conclusion:
This way you can add tooltips to checkout fields in Magento 2. You can further customize these steps to add them to other fields. If you face any difficulty, share it with me through the comment section. Further, share the tutorial with your Magento friends to help them customize the checkout in Magento 2.
[![Magento 2 Speed & Performance Optimization Services](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Speed-Performance-Optimization-Services-CTA-2.webp)](https://magecomp.com/magento-performance-optimization.html)

**Happy Coding!**


---

_View the original post at: [https://magecomp.com/blog/add-tooltip-in-checkout-shipping-field-magento-2/](https://magecomp.com/blog/add-tooltip-in-checkout-shipping-field-magento-2/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-10-29 10:03:20 UTC_  
