Skip to content

Commit f048d0a

Browse files
authored
Update View.php
1 parent e8f1b89 commit f048d0a

File tree

1 file changed

+2
-0
lines changed
  • app/code/Magento/Catalog/Helper/Product

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Helper/Product/View.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,13 @@ public function initProductLayout(ResultPage $resultPage, $product, $params = nu
190190

191191
$resultPage->addPageLayoutHandles(['type' => $product->getTypeId()], null, false);
192192
$resultPage->addPageLayoutHandles(['id' => $product->getId(), 'sku' => $urlSafeSku]);
193+
$resultPage->addPageLayoutHandles(['attribute_set' => $product->getAttributeSetId()], null, false);
193194

194195
if ($params && $params->getAfterHandles()) {
195196
foreach ($params->getAfterHandles() as $handle) {
196197
$resultPage->addPageLayoutHandles(['type' => $product->getTypeId()], $handle, false);
197198
$resultPage->addPageLayoutHandles(['id' => $product->getId(), 'sku' => $urlSafeSku], $handle);
199+
$resultPage->addPageLayoutHandles(['attribute_set' => $product->getAttributeSetId()], $handle, false);
198200
}
199201
}
200202

0 commit comments

Comments
 (0)