First create a Magento Extension
Here, I create a Magento module/extension, named ‘Jeff_Example’. You can search online to find the tutorial how to create a new module.
Create a di.xml file
We are going to create a ‘after plugin’ for the method ‘getItemRenderer’ in ‘Magento\Checkout\Block\Cart\AbstractCart’ class.
#app/code/Jeff/Example/etc/di.xml
Create the after plugin
#app/code/Jeff/Example/Block/Cart/AbstractCart.php setTemplate('Jeff_Example::cart/item/default.phtml'); return $result; } }
Create the Template file
Just copy the source file from 'vendor/magento/module-checkout/view/frontend/templates/cart/item/default.phtml' to your module. For me, it's app/code/Jeff/Example/view/frontend/templates/cart/item/default.phtml. And modify this file by adding:and copy another source file from 'vendor/magento/module-checkout/view/frontend/templates/cart/form.phtml' to your module. And modify this file by adding some heading text.Nj Warehouse location