Magento 2 update custom category attribute value
UPDATE 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 SET c1.value = 'NOINDEX,NOFOLLOW' --Here put your value WHERE
`attribute_code` = 'robot_index' AND `entity_type_id` = '3' AND c2.path LIKE
'%1/1830/2355/%' -- put atribute code and it's entity type id and category which
you want to update in condition mention or you can modify it's condtion based on
requirement.
Comments
Post a Comment