The configurable product based on variation product images are changing, but not SKU, is there any way to change SKU also?
Magento – Magento 2: How to change sku dynamically in configurable product view page
configurable-productmagento2productproduct-view
Best Answer
You have to override
function getAllSizeImages()
fromMagento\Swatches\Helper\Data.php
file.After change variant of product you have got response with sku of variant and you can change sku based on response using js.