Tuesday, June 14, 2022

How to Get Category Name by Category ID Using SQL in Magento 2

Categories play an essential role to classify products in the online store. For eCommerce businesses, categories helps to separate products and categories based on category names. 

The name of categories should appear on the top of the page. It may even happen that Magento developers only get category ID in the URL. 


Basically, almost all category name comprises of category ID. Whereas, finding the category name from the category ID is a bit time-consuming and lengthy process. 


Here, the solution to get category name by category ID using SQL in Magento 2.


 you can refer to the tutorial at: https://meetanshi.com/blog/get-category-name-by-category-id-using-sql-magento-2/



No comments:

Post a Comment