2

I created a simple hierarchy of attribute sets, basing each one on its parent attribute set, adding attributes in each level.

Now I discovered that one ancestor attribute set needed another attribute.

I went to the children of this ancestor after adding the attribute, and for my surprise the attribute isn't added to the children.

Is this intentional ? What am I missing ?

Thanks.

5
  • can you please update your code?
    – Keyul Shah
    Commented Feb 21, 2014 at 17:26
  • No code here, just using the backend.
    – Niloct
    Commented Feb 21, 2014 at 17:30
  • then one option reindex
    – Keyul Shah
    Commented Feb 21, 2014 at 17:31
  • I don't use this attribute for layered navigation, so indexing won't add this new attribute to children sets
    – Niloct
    Commented Feb 21, 2014 at 17:34
  • Then I don't know some one other guide you
    – Keyul Shah
    Commented Feb 21, 2014 at 17:36

1 Answer 1

2

Attribute sets in Magento only use the Based On field for determining what attributes are a part of that set initially.

Unfortunately, once the attribute set creation has finished, there is no inheritance. You can see this fact if you look in the database in eav_attribute_set, and you will see there is no parent or based_on column.

You will need to manually add that attribute to any attribute set that is necessary.

4
  • Thanks for the precision. What about extensions that add this feature of inheritance ?
    – Niloct
    Commented Feb 21, 2014 at 17:48
  • I have looked, but haven't seen anything like this. Maybe this would be a good one to write... Please remember to mark this as an answer if it answers your original question. Commented Feb 21, 2014 at 17:50
  • Yes. It seems simple to add, but not immediate how to make the system recognize the inheritance tree.
    – Niloct
    Commented Feb 21, 2014 at 17:53
  • If you find this question interesting, up vote it too =)
    – Niloct
    Commented Feb 21, 2014 at 17:54

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.