How to override address/book phtml in Magento 2?

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.

Magento\Customer\Block\Address\Book

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?”

How to check customer is authenticated in Magento 2?

Customer Authentication using Magento 2 to check customer types like its a guest user or login user.

There are many occasions when you need to check customer authentic status and based on the login customer only you need to show a specific page otherwise redirect it to the login page.

Verify the customer has valid authentication using \Magento\Customer\Model\Session Class. add the Customer Session class to the __construct() method of your Controller. Continue reading “How to check customer is authenticated in Magento 2?”

Uncaught Error: Cannot instantiate interface Temando PackagingRepositoryInterface Magento 2.

Temando Shipping error in the Magento backend Product details page display error like this,

Fatal error: Uncaught Error: Cannot instantiate interface Temando\Shipping\Model\ResourceModel\Repository\PackagingRepositoryInterface.

You can resolve this error by the Remove Temando product attribute from the eav_attribute database table. Continue reading “Uncaught Error: Cannot instantiate interface Temando PackagingRepositoryInterface Magento 2.”