Skip to content

Commit 53b25c7

Browse files
committed
magento/magento2-page-builder#543: Content Product Attributes Default Sorting Order
- Reordering Description/Short Description Product Attributes
1 parent 39012d4 commit 53b25c7

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

app/code/Magento/Catalog/Setup/CategorySetup.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ public function getDefaultEntities()
421421
'comparable' => true,
422422
'visible_in_advanced_search' => true,
423423
],
424-
'description' => [
424+
'short_description' => [
425425
'type' => 'text',
426-
'label' => 'Description',
426+
'label' => 'Short Description',
427427
'input' => 'textarea',
428428
'sort_order' => 3,
429429
'global' => ScopedAttributeInterface::SCOPE_STORE,
@@ -432,10 +432,14 @@ public function getDefaultEntities()
432432
'wysiwyg_enabled' => true,
433433
'is_html_allowed_on_front' => true,
434434
'visible_in_advanced_search' => true,
435+
'used_in_product_listing' => true,
436+
'is_used_in_grid' => true,
437+
'is_visible_in_grid' => false,
438+
'is_filterable_in_grid' => false,
435439
],
436-
'short_description' => [
440+
'description' => [
437441
'type' => 'text',
438-
'label' => 'Short Description',
442+
'label' => 'Description',
439443
'input' => 'textarea',
440444
'sort_order' => 4,
441445
'global' => ScopedAttributeInterface::SCOPE_STORE,
@@ -444,10 +448,6 @@ public function getDefaultEntities()
444448
'wysiwyg_enabled' => true,
445449
'is_html_allowed_on_front' => true,
446450
'visible_in_advanced_search' => true,
447-
'used_in_product_listing' => true,
448-
'is_used_in_grid' => true,
449-
'is_visible_in_grid' => false,
450-
'is_filterable_in_grid' => false,
451451
],
452452
'price' => [
453453
'type' => 'decimal',

app/code/Magento/Catalog/Setup/Patch/Data/UpdateProductAttributes.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,15 @@ public function apply()
113113
\Magento\Catalog\Model\Product::ENTITY,
114114
$attributeSetId,
115115
'Content',
116-
'description'
116+
'short_description',
117+
100
117118
);
118119
$categorySetup->addAttributeToGroup(
119120
\Magento\Catalog\Model\Product::ENTITY,
120121
$attributeSetId,
121122
'Content',
122-
'short_description',
123-
100
123+
'description',
124+
110
124125
);
125126

126127
//Images tab

0 commit comments

Comments
 (0)