We have a configurable product on the front-end with two drop-downs (size and color)
How can I get the final simple product id once the user has made their selections
We have done this in Magento 1 but don't know how to do this in Magento 2.
Any suggestion will be appreciated.
Best Answer
Got solution. I am writing answer of my question. Hope it will help others.
For Magento 2.4.0 version, change the below code from
to