Magento2 – Table Name for Product Visibility

catalogmagento2product

In which db table magento is saving the product's visibility such as catalog/search , catalog, search, Not visible.

Best Answer

SELECT * 
FROM `eav_attribute` 
WHERE `attribute_code` = 'visibility'; # Example : attribute_id = 96

SELECT * 
FROM `catalog_product_entity_int` 
WHERE `attribute_id` = 96 
    AND entity_id = '1'; # entity_id = Your Product Id

Visiblity

1 => Not Visible Individually
2 => Catalog
3 => Search
4 => Catalog, Search
Related Topic