Question

I have a demo site using the default luma theme and I want to add a simple information message to the checkout above the delivery options.

Where about in the template can I edit this, I'm not bothered about best practise I just want to hack it in.

Was it helpful?

Solution

You can add text before shipping method from this file:

vendor/magento/module-checkout/view/frontend/web/template/shipping.html

Override this core file to your custom theme at

app/design/frontend/Vendor/theme/Magento_Checkout/web/template/shipping.html

Add your text before <li id="opc-shipping_method"> or where you want to show.

After chnages run following commands to deploy static files

php bin/magento static:content:deploy

php bin/magento cache:flush

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top