I am using Magento 2 CE 2.1.3.
SKU not changing dynamically in configurable product view page.
How can I fix it?
Hello,
I tried this solution and it work finally !!
https://codecanyon.net/item/magento-2-dynamic-configurable-product/22813380?s_rank=5
Regards,
Hello @SultanRana ,
ts default behavior of the Magento. but We can achieve it by coding.
I hope that you have basic knowledge of Magento.
$config['skus'] = []; foreach ($subject->getAllowProducts() as $simpleProduct) {$config['skus'][$simpleProduct->getId()] = $simpleProduct->getSku(); }
--
If my answer is useful, please Accept as Solution & give Kudos
The Js you edit is for adminhtml. But what if i want to change sku in front-end when a different variant is clicked? I tried changing the same file in the frontend file but no result sadly.