Easy way to find block class name in phtml

find block class in magento
The most easy way to find out which class the phtml file belongs to by running the below small piece of code -:

echo get_class($this)

This small piece of code is very effective especially when you are new to Magento’s development world.

Hope this article helped you in some way. Please leave us your comment and let us know what do you think? Thanks.

Discover more from WHO WILL CARE eCommerce

Subscribe now to keep reading and get access to the full archive.

Continue reading