I have two requirements
- Add template below addtocart button.
- Replace core template of quantity and addtocart button with my own template. How to achieve this
My layout file is below:-
catalog_product_view.xml
<referenceContainer name="product.info.main">
<block class="Vendor\Modulename\Block\Product\View\Stock"
name="product.view.stock"
template="Vendor_Modulename::product/view/stock.phtml"
after="product.info.addtocart" ifconfig="form_stock/form_group_general/status">
</block>
</referenceContainer>
By using this template. I am getting my template at product detail page below product name. but my requirement has different which is i have shown above. If anybody know then please guide me.