Skip to content

Commit b3b669a

Browse files
committed
ACP2E-2522: Block Content not rendering in PDP meta description
1 parent 346f3fc commit b3b669a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

setup/src/Magento/Setup/Fixtures/SimpleProductsFixture.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ public function execute()
257257
'category_ids' => function ($index, $entityNumber) {
258258
return $this->websiteCategoryProvider->getCategoryId($index);
259259
},
260+
'meta_keyword' => function ($productId) {
261+
return sprintf($this->getSkuPattern(), $productId);
262+
},
263+
'meta_title' => function ($productId) {
264+
return sprintf($this->getSkuPattern(), $productId);
265+
},
260266
'attribute_set_id' => $attributeSet,
261267
'additional_attributes' => $additionalAttributes,
262268
'status' => function () {

setup/src/Magento/Setup/Model/FixtureGenerator/SimpleProductTemplateGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ private function getProductTemplate($attributeSet, $additionalAttributes = [])
7070
'name' => 'template name' . $productRandomizerNumber,
7171
'url_key' => 'template-url' . $productRandomizerNumber,
7272
'sku' => 'template_sku_simple' . $productRandomizerNumber,
73+
'meta_description' => 'Simple Product',
74+
'meta_keyword' => $productRandomizerNumber,
75+
'meta_title' => $productRandomizerNumber,
7376
'price' => 10,
7477
'visibility' => Visibility::VISIBILITY_BOTH,
7578
'status' => Status::STATUS_ENABLED,

0 commit comments

Comments
 (0)