문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top