문제

In Magento 2, is it possible to get the associated simple products of a configurable product, via Service Contracts?

The only reference to the product type that I can find is ProductInterface::getTypeId(), but nothing that gives access to the underlying product type instance.

도움이 되었습니까?

해결책

Yes you can do it by using the getChildren method from Magento/ConfigurableProduct/Api/LinkManagementInterface class.

You will have to use the sku as a parameter

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