Skip to content

mrkhoa99/Boolfly_ProductRelation

Repository files navigation

Magento 2 - Custom Product Relation

Magento 2 - Adding custom product relations

Note: Testing on Magento 2.1.x version.

We can call the custom product relation:

   /** @var \Magento\Catalog\Model\Product $product */
    return $product->getCustomTypeProducts();