I am able to get all the available sizes of configurable product calling
getJsonConfig()
of below class
Magento\ConfigurableProduct\Block\Product\View\Type\Configurable;
But I need stock of each options.
configurable-productmagento2stock
I am able to get all the available sizes of configurable product calling
getJsonConfig()
of below class
Magento\ConfigurableProduct\Block\Product\View\Type\Configurable;
But I need stock of each options.
Best Answer
Try following way:
app/code/SR/Stackexchange/etc/frontend/di.xml
app/code/SR/Stackexchange/Plugin/Block/ConfigurableProduct/Product/View/Type/Configurable.php