How to Get Simple Product from Magento 2 Configurable Product Before Add to Cart
As a Magento 2 designer, you go over an assortment of business requests that should be satisfied to improve the benefit or client support.

As a Magento 2 designer myself, I as of late went a the configurable over a client items having an alternate mix of the basic items offering different installment strategies. A mix can be purchased with repeating installment strategy and one more can be purchased as a one time buy. Presently, as the repetitive item can't be joined with the other installment choices, it was expected to get simple product in Magento 2 configurable product Before add to cart and set up the limitation.
The underneath code assists you with getting the straightforward items from the setup item being added to truck to deal with the different approvals and limitations in light of it.
For more info,visit:
https://meetanshi.com/blog/get-simple-product-from-magento-2-configurable-product-before-add-to-cart/