get category custom attribute value using sql

This query will get robot_index attribute value with list of categories.you can join multiple attribute as per your requirement.
SELECT `c1`.* from catalog_category_entity_varchar AS c1 JOIN catalog_category_entity AS c2 ON c1.row_id = c2.entity_id JOIN eav_attribute AS e ON c1.attribute_id = e.attribute_id WHERE `attribute_code` = 'robot_index' AND `entity_type_id` = '3' AND c2.path LIKE '%1/1830/2355/%'

Comments

Popular posts from this blog

Magento 2 upgrade steps

Magento 2 test data clean using my sql query

Magento 2 invalid Form key