Some time we forgot to add weight to the product and its become an automatically of type virtual product.
I am trying to generate a product of a type "simple" in case we forgot to add weight ...
I would like to by-pass a condition where product type is set as "virtual".
I have done following workaround for this:
in the file : vendor/magento/module-catalog/Model/Product/TypeTransitionManager.php
processProduct() i have tried by commenting following line:
But it is not working.. How can we handle this programmatically?