I am creating a custom module to set a custom template for
vendor/magento/module-catalog/view/frontend/templates/product/view/options/type/default.phtml
but I am not able to override it. I have tried using XML like below
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.options">
<block class="Magento\Catalog\Block\Product\View\Options\Type\DefaultType" as="default" template="Hemag_StockStatus::product/view/options/type/default.phtml"/>
</referenceBlock>
</body>
Please let me know how to do this.