How to override order/recent.phtml template in Magento 2?

You can override recent.phtml file using layout XML by creating a module or directly add template file to the theme level under Magento_Sales module under the theme.

recent.phtml file used to show recently placed orders, on My Account Dashboard for registred customer with Section Name, Recent Orders at bottom of the page.

recent.phtml file is declared under the customer_account_index.xml file in Sales Module. Continue reading “How to override order/recent.phtml template in Magento 2?”

How to check given folder contains Files in Magento 2?

Magento 2, You can check the given folder path contains the file or not using the isFile() method.

For example, You have an image inside the pub/media folder with path,
$imagePath = ‘/catalog/product/placeholder/default/coming-soon.jpg’;

You can see a placeholder image at the above location in the media folder. Continue reading “How to check given folder contains Files in Magento 2?”

How to remove all MSI modules in Magento 2?

Multi-source Inventory is a new concept launched by Magento from Magento 2.3.* Version.

Earlier version (Before Magento 2.3) of Magento doesn’t support MSI feature.

MSI is used for multi-source concept used for inventory management at a single or multiple source location. Continue reading “How to remove all MSI modules in Magento 2?”