Timeline for Programmatically create new attribute set while inheriting from another
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Feb 25, 2016 at 12:47 | history | edited | 7ochem | CC BY-SA 3.0 |
added 4 characters in body
|
Feb 25, 2016 at 12:38 | review | Suggested edits | |||
S Feb 25, 2016 at 12:47 | |||||
Oct 1, 2015 at 16:14 | history | edited | Fabian Blechschmidt | CC BY-SA 3.0 |
copied the wrong answer, the right is add the end of the page, so correct this one.
|
Jun 19, 2013 at 8:26 | comment | added | Deep Frozen | It is a valid ID (I just use 4, which is an existing, default set), but I can't find anything to fix it :S | |
Jun 19, 2013 at 7:42 | comment | added | Marius♦ |
This means I might have missed something. Because in the initFromSkeleton method there is this line $newGroup->setAttributes($newAttributes); . This should set some attributes. Make sure you clone a valid set, also you can debug the Mage_Adminhtml_Catalog_Product_SetController::saveAction() and try to simulate it in your code. that one seams to work.
|
|
Jun 19, 2013 at 7:36 | comment | added | Deep Frozen | Hmm, it seems that this code somehow only copies the groups, and not the attributes in those groups.. | |
Jun 19, 2013 at 7:26 | history | answered | Marius♦ | CC BY-SA 3.0 |