You can override the book.phtml file in Magento 2 using XML.
Book template used to display the address book of the customer with default billing and shipping address at the top of the Address book page.
Book Block class contains the native method for the template.
You can override using theme or module level, Continue reading “How to override address/book phtml in Magento 2?”
Magento 2 add body class with pages like cms, category, product and checkout page.
You can set cutom body class for the page in Magento 2 using plugin by Magento\Framework\View\Result\Page class. Continue reading “How to add body class before rendering the page in Magento 2?”
Verify Filename has extension .tar or not using PHP Magento 2.
If the file is a valid tar file, the result will be true otherwise result will be false. Some time you need to verify the current file is tar or not in that scenario, this article is used for your development. Continue reading “How to check File is .tar using Magento 2?”