I wanted to override the content of addtocart.phtml
which is located in
vendor/magento/module-catalog/view/frontend/templates/product/view/addtocart.phtml
Now I want to modify the content of this and add this to my custom module located in
app/code/CustomVendor/CustomModule/view/frontend/templates/product/view/addtocart.phtml
But my changes does not appear. Is my path wrong? What or where should I place the custom addtocart.phtml
file?