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 8917163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:25:20+00:00 2026-06-15T05:25:20+00:00

In Magento, when creating a new product, you can manually type in a SKU

  • 0

In Magento, when creating a new product, you can manually type in a SKU number. Later, you could decide to change this SKU number to a different number. Is there a way to disallow this in Magento? Once a SKU number is assigned, I want that to always be the SKU — I don’t want to allow my users to assign a different SKU instead.

  • 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-15T05:25:22+00:00Added an answer on June 15, 2026 at 5:25 am

    I can think of two approaches: event observer and a custom attribute backend model for the SKU attribute, the latter being the more thorough solution.

    For the event observer it is possible to observe compare the value for the SKU property, see if it is changed, and set it to the original with a warning message. This should suffice unless the SKU attribute is saved using saveAttribute(), etc.

    It is also possible to do the same logic in an EAV attribute backend model, which can easily be assigned to the attribute via a setup script. However, in the case of the SKU attribute, it already has a backend model, Mage_Catalog_Model_Product_Attribute_Backend_Sku [link]. It would be quite easy to rewrite the validate() method using standard Magento class rewrites, add the desired value protection logic, and then call the parent method – making the solution quite portable.

    And, whereas the backend model is used regardless of save via save() or saveAttribute(), this will ensure that all saves via the admin backend will be processed according to your logic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a new Magento 1.7.0.2 module for the front end, but I can't
I am new to magento and i am Creating Custom module for File upload
When creating a Magento multistore, can the 2nd store not just use a directory
i'm creating a magento shop. I've downloaded a new Template. The template has an
i'm starting with magento, and i'm creating a new module that uses widgets. i
I'm creating an ecommerce website using magento. Currently if a new user registers the
In Magento, when I'm creating a product from Catalog -> Manage Products -> Add
In Magento, while I'm creating or editing a product, I need to know if
I am creating a new cart addAction() in magento's checkout/controllers/cartController.php. My need is, Whenever
I'm following this tutorial http://codemagento.com/2011/03/creating-custom-magento-reports/ creating the simple report module. I have all the

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.