cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set Default Attribute Set At Scale

How to Set Default Attribute Set At Scale

Hello, 

Please how do I set products without attribute to inherit the default attribute.

Background story:

 

I have about 300 attributes created without logic on my site.

 

Now i am trying to clean it up by deleting this attribute sets but I am worried about having products without any attributes at all.

So I want a scenerio where if an attribute set is deleted, the product inherits the default attribute

 

 

1 REPLY 1

Re: How to Set Default Attribute Set At Scale

1. Find the id of "Attribute Set" in the database column

eav_attribute_set.attribute_set_id

2.

UPDATE eav_entity_type SET default_attribute_set_id = '%YOUR_Attribute_Set_ID%' WHERE eav_entity_type.entity_type_code = 'catalog_product';

3. Re-index and Clear cache

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool