How to add custom block for shipping methods in onepage checkout in Magento 2

- Fire development, Magento 2

Magento 2 Development

To add custom block for shipping methods in onepage checkout in Magento 2, you should do the following actions:

'

Add the following code to module.xml:

And this one to app/code/NameSpace/ModuleName/view/frontend/layout/checkout_index_index.xml

app/code/NameSpace/ModuleName/view/frontend/web/js/view/checkout/shipping/additional-block.js also requires new code to be added:

Now, you can create an html file for the following location

Clear cache and run upgrade command. Note that the required var folder permission is 777.

You can download the full module here.

Source (Stackexchange Question)(Sohel Rana)

More tips from the Cookbook

'