Magento 2 - How to Get Configurable Products from Simple Product

Fiko BorizqyFiko Borizqy
1 min read

In this case, I already call a simple product, but I want to check or call what configurable products are currently using this simple product as their options. How can I get those configurable products?

You can create a helper to retrieve the configurable products IDs :

As you can see there is a helper and how to call it, thanks.

0
Subscribe to my newsletter

Read articles from Fiko Borizqy directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Fiko Borizqy
Fiko Borizqy

I wrote these tutorials for myself in future when I forget for the next steps.