Skip to content

Place DIV or SPAN class inside stock available

How can I place a div or span class inside stock available with custom xml. Would like custom block next to INSTOCK.

<body>
        <referenceBlock name="product.info.stock.sku">
            <block class="StockQtyBlockLeftQty" name="catalog.product.view.stock"
                   before="product.info.stock.sku" template="Dolphin_MyModule::leftqty.phtml" cacheable="false"/>
        </referenceBlock>
    </body>

Product view