Skip to content

Commit 17f6230

Browse files
Merge remote-tracking branch '36244/patch-21' into octcommpr
2 parents 843dbdb + 23a99e9 commit 17f6230

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,19 @@ public function initProductLayout(ResultPage $resultPage, $product, $params = nu
178178
if ($params && $params->getBeforeHandles()) {
179179
foreach ($params->getBeforeHandles() as $handle) {
180180
$resultPage->addPageLayoutHandles(['type' => $product->getTypeId()], $handle, false);
181+
$resultPage->addPageLayoutHandles(['attribute_set' => $product->getAttributeSetId()], $handle, false);
181182
$resultPage->addPageLayoutHandles(['id' => $product->getId(), 'sku' => $urlSafeSku], $handle);
182183
}
183184
}
184185

185186
$resultPage->addPageLayoutHandles(['type' => $product->getTypeId()], null, false);
187+
$resultPage->addPageLayoutHandles(['attribute_set' => $product->getAttributeSetId()], null, false);
186188
$resultPage->addPageLayoutHandles(['id' => $product->getId(), 'sku' => $urlSafeSku]);
187189

188190
if ($params && $params->getAfterHandles()) {
189191
foreach ($params->getAfterHandles() as $handle) {
190192
$resultPage->addPageLayoutHandles(['type' => $product->getTypeId()], $handle, false);
193+
$resultPage->addPageLayoutHandles(['attribute_set' => $product->getAttributeSetId()], $handle, false);
191194
$resultPage->addPageLayoutHandles(['id' => $product->getId(), 'sku' => $urlSafeSku], $handle);
192195
}
193196
}

0 commit comments

Comments
 (0)