how to display custom attribute on product view page in magento 1.9?

how to display custom attribute on product view page in magento 1.9?

September 5, 2026 · Illustrated author avatarBy Stefan Bogdanescu
how to display custom attribute on product view page in magento 1.9?

Displaying Custom Attributes on Magento Product View Page

In Magento 1.9, adding custom attributes is straightforward, but displaying them exactly where you want can be challenging. If you’ve created an attribute like “gmdn” and it’s appearing in the wrong place, this guide will show you how to move it.

Understanding Magento’s Default Behavior

By default, when you add a new attribute to a product, Magento places it in the Additional Information tab on the view page. This is because the catalog_product_view.xml layout file includes:

<block type="core/text_list" name="product.info.additional">
    <action method="addAttribute"><attribute_code>gmdn</attribute_code></action>
</block>

Moving Attributes to a Custom Location

To move an attribute, you need to create a new layout update and specify the new location. Here’s how:

  1. Create a Layout Update XML File

Navigate to your theme directory or create one if it doesn’t exist: app/design/frontend/[Your_Theme]/layout/.

  1. Add a New XML File

Name the file catalog_product_view_extend.xml. The “extend” part is important because this will extend the existing layout instead of replacing it.

  1. Update Your Attribute Location

Open the new file and add the following code:

<layout version="1.0">
    <catalog_product_view>
        <reference name="product.info.tabs">
            <action method="removeTab"><name>additional</name></action>
            <block type="core/text_list" name="product.info.additional">
                <action method="addAttribute"><attribute_code>gmdn</attribute_code><after>name</after></action>
            </block>
        </reference>
    </catalog_product_view>
</layout>

This code does two things:

  • It removes the “additional” tab.
  • It adds a new block for your custom attribute and specifies that it should appear after the product name (<after>name</after>).
  1. Clear Cache

After making changes to layout files, always clear your cache in Magento Admin under System > Cache Management.

Conclusion

Moving attributes around in Magento requires understanding of XML layout updates and the core logic used by the platform. By creating a new layout update file, you can override the default behavior and place your custom attributes exactly where you need them.

Remember that while this solution works for a single attribute, if you have many attributes to move, consider using a more advanced solution like a third-party extension or custom development. For complex customizations, I recommend checking out Laravel Company’s Magento Consulting Services for expert assistance.

With this change, when you view your product page, the “gmdn” attribute should now appear below the product name instead of in the Additional Information tab.

Magento 1 Catalog Themes Import/Export

Our network