1

I've enabled template hints and block hints. I get this template path /vendor/magento/module-customer/view/frontend/templates/account/dashboard/info.phtml which has this block class Magento\Customer\Block\Account\Dashboard\Info.

Where can I find the code for the block class?

2 Answers 2

2

You can find the Info.php on the below path.

/vendor/magento/module-customer/Block/Account/Dashboard/Info.php

You can override the block file in your custom module with the help of preference. Please visit this link for more information regarding the block overriding.

And info.phtml under below path:

 /vendor/magento/module-customer/view/frontend/templates/account/dashboard/info.phtml

You can override this template in your custom theme under the below path:

/app/design/frontend/Vendor/Theme/Magento_Customer/account/dashboard/info.phtml

Hope it helps!!!

1

You can check this file's Block here

vendor/magento/module-customer/Block/Account/Dashboard/Info.php

You can override this in your Custom module here

app/code/Vendor/Module/Block/Account/Dashboard/Info.php

Hope this will help you!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.