Add a custom block in Magento 2 on the product page after add to cart button
Product page plays a very important role in Magento 2 and showing the right information at the right spot could decide whether you get a sale or not.
Recently, I came across a situation where I was requested to add a custom block right after the add to cart button on the product page. Although this is not a difficult task for a Magento 2 developer, I thought it would be best to write this article so that anyone struggling to find a solution would find it helpful....
The easiest solution would be to either use an existing widget or create a custom widget to add the custom block to one of the many pre-defined spots on the product page. However, what I am going to show here is not a widget. I will be showing you how to add a custom block using the layout.xml....