On Magento 1.9.2.4, when "Use Flat Catalog Category" is set to "Yes", a child category will sometimes inherit the settings from its parent category, even if the dropdown for "Use Parent Category Settings" under "Custom Design" says "No".
This only happens in some categories, even though all categories appear to have the same setting for "Use Parent Category Settings".
Further investigation reveals that these categories that were incorrectly inheriting their parents' design actually did NOT have a row for their custom_use_parent_settings
attribute in the catalog_category_entity_int
table. This causes the value in the catalog_category_flat_store_1
to be NULL
.
Even though this value is missing, when "Use Flat Catalog Category" is set to No, the categories behave on the front-end as the admin settings would indicate, and do not inherit the parents' design settings.
I tried setting the default_value
of the custom_use_parent_settings
attribute in the eav_attribute
table to 0
, and re-indexed, however, the catalog_category_flat_store_1
table still shows a NULL
for this field.
Note: These categories were imported with a script, and not created manually. Because the default_value
of this attribute is NULL
in the eav_attribute
table, it makes sense that there is no record for them in the catalog_category_entity_int
table. Had they been created through the admin panel, the value would be 0
, as this is the default for the select
element. Re-saving a category from admin fixes the issue because the default of the dropdown is "No" or 0
, but this isn't an option when you have 1000+ categories.