free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

How to overriding cart default.phtml in custom module via plugin base in Magento 2?

Please find below steps to override default.phtml by using plugin

1. Create an di.xml in : /app/code/Vendor/ModuleName/etc

2. Create an AbstractCart.php in : app/code/Vendor/ModuleName/Plugin/Cart

You can change below file as per requirement your custom module base

3. Create an default.phtml in : /app/code/Vendor/ModuleName/view/frontend/templates/cart/item

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha