Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8592021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:39:18+00:00 2026-06-11T23:39:18+00:00

In magento you can create new attributes (which are then added to attribute sets

  • 0

In magento you can create new attributes (which are then added to attribute sets which products inherit) with certain types.

The default options (textfield/area, data, boolean) are fairly limited and I would like to add my own, complete with backend field renderer and its own validation. This to create a youtube field which accepts a range of urls which are transformed into only the youtube id.

But I’d really like a good explanation on how to add your own “Catalog Input Type for Store Owner”. I’ve seen other plugins do it, but digging through code is tedious and this is definitely something which interests other people as well (question gets asked a lot over the web).

I have been searching for a while, but to no avail, I will continue to hunt down the answer until I find it however.

tl;dr

So my question is: How to add a “Catalog Input Type for Store Owner”, maybe with a reference how to add a custom validation to this field type. This in the proper MVC style, so no editing of core files if possible.

Bonus points for being elaborate, generic explanations & code examples, I will award a bounty based on the quality of answer, if it is worth it (since this will be applicable to a larger audience).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:39:19+00:00Added an answer on June 11, 2026 at 11:39 pm

    Sorry, I don’t have time for writing long answer. Next 4 observers from Wee module will give you needed directions:

    <config>
        <global>
            <events>
                <catalog_entity_attribute_save_before>
                    <observers>
                        <weee>
                            <type>model</type>
                            <class>weee/observer</class>
                            <method>assignBackendModelToAttribute</method>
                        </weee>
                    </observers>
                </catalog_entity_attribute_save_before>
            </events>
        </global>
    ...
    
        <adminhtml>
            <events>
                <adminhtml_catalog_product_edit_prepare_form>
                    <observers>
                        <weee>
                            <class>weee/observer</class>
                            <method>setWeeeRendererInForm</method>
                        </weee>
                    </observers>
                </adminhtml_catalog_product_edit_prepare_form>
                <adminhtml_product_attribute_types>
                    <observers>
                        <weee>
                            <type>model</type>
                            <class>weee/observer</class>
                            <method>addWeeeTaxAttributeType</method>
                        </weee>
                    </observers>
                </adminhtml_product_attribute_types>
                <adminhtml_catalog_product_edit_element_types>
                    <observers>
                        <weee>
                            <class>weee/observer</class>
                            <method>updateElementTypes</method>
                        </weee>
                    </observers>
                </adminhtml_catalog_product_edit_element_types>
            </events>
        </adminhtml>
    </config>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can Magento API create products with new attribute? I mean some attributes of the
I'm trying to add new columns in Magento's Products Ordered report. I have added
In my Magento store I have created a new attribute with an attribute code
I've created a new Yes/No attribute for products. I've extended the Product model to
I am looking to create some new functionality to Magento. I am going to
I am working on Magento CE 1.6.2 and would like to display 'New' Products
I am new to Magento CMS, i have configured products using admin panel, at
Can one host multiple store on Magento Community Edition? And how to automatically create
I'm trying to create configurable products programmatically in Magento 1.5.1. I understand I need
I am new too magento. I have one problem to create an activation key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.