Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Monday, June 13, 2022

How To Get Current Category Name in Magento 2

Magento 2 is a robust eCommerce platform that can be customized as per the business requirements of the merchants. The platform supports creating additional functionalities and features through modules.


If you are a developer working on new module or creating new functionality, sometimes you may require to get current category name in Magento 2. Such a requirement may arise when you are developing a category-wise functionality in your Magento 2 store.

The solution to this problem is to create a custom function in Magento 2 by tweaking the Category Brand. php file at the Vendor/Module/Block directory, and tweaking the codes in the module_index_index.xml and template_file.phtml files.


You can learn more about the same here: https://meetanshi.com/blog/get-current-category-name-in-magento-2/


No comments:
Write comments


Get more of our update !