Get Simple Product Details Passing Configurable productId and option like color
Using Product Collection I want to fetch this.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityUsed Following code to fetch the details
$superAttribute = [$color_id => $sel_propduct_color];
$childProduct = $product->getTypeInstance()->getProductByAttributes($superAttribute, $product);
$child_product_id = $childProduct->getID();