File tree Expand file tree Collapse file tree 1 file changed +9
-22
lines changed
app/code/Magento/Catalog/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -47,34 +47,21 @@ public function apply()
47
47
{
48
48
/** @var CategorySetup $categorySetup */
49
49
$ categorySetup = $ this ->categorySetupFactory ->create (['setup ' => $ this ->moduleDataSetup ]);
50
- $ attributeSetId = $ categorySetup ->getDefaultAttributeSetId (\Magento \Catalog \Model \Product::ENTITY );
50
+ $ entityTypeId = $ categorySetup ->getEntityTypeId (\Magento \Catalog \Model \Product::ENTITY );
51
51
52
52
// Content
53
- $ categorySetup ->addAttributeGroup (
54
- \Magento \Catalog \Model \Product::ENTITY ,
55
- $ attributeSetId ,
56
- 'Content ' ,
57
- 15
58
- );
59
- $ categorySetup ->updateAttributeGroup (
60
- \Magento \Catalog \Model \Product::ENTITY ,
61
- $ attributeSetId ,
62
- 'Content ' ,
63
- 'tab_group_code ' ,
64
- 'basic '
65
- );
66
- $ categorySetup ->addAttributeToGroup (
67
- \Magento \Catalog \Model \Product::ENTITY ,
68
- $ attributeSetId ,
69
- 'Content ' ,
53
+ $ categorySetup ->updateAttribute (
54
+ $ entityTypeId ,
70
55
'short_description ' ,
56
+ 'frontend_label ' ,
57
+ 'Short Description ' ,
71
58
100
72
59
);
73
- $ categorySetup ->addAttributeToGroup (
74
- \Magento \Catalog \Model \Product::ENTITY ,
75
- $ attributeSetId ,
76
- 'Content ' ,
60
+ $ categorySetup ->updateAttribute (
61
+ $ entityTypeId ,
77
62
'description ' ,
63
+ 'frontend_label ' ,
64
+ 'Description ' ,
78
65
110
79
66
);
80
67
}
You can’t perform that action at this time.
0 commit comments