I want to create an custom SKU pattern that is somthing like this:

{attribute set id}{auto number} 

and I want it to be at least 5 numbers long.

For example: 05004 where the 05 is for the attribute set and the 004 for the product. Is this possible with Magento (I don't think so)? Is there a good module for this kind of problem.

1 Answer 1


I think, Module is not available for your requirements but you can do this by overwriting product save controller.


Overwrite this controller and change SKU as per your requirement before save.

you can also do it via observer with this event catalog_product_save_commit_after

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.