0

I've looked through different posts and options but nothing that fits my question.

How can I get the Attribute set ID of the current product on the product detail page?

1
  • Have you used $product->getAttributeSetId(); Feb 10, 2020 at 13:07

1 Answer 1

3

You can use this block \Magento\Catalog\Block\Product\View

$product = $this->getProduct();
$product->getAttributeSetId();

follow this magento 2 - How to get attribute set name in product listing and product detail page

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.