Magento 2.2:如何修改产品默认属性集及查找默认定义位置
Hey there! Let's break this down for you—both how to switch your default attribute set to Set2, and where to find where Set1 was set as the default in the first place. I’m assuming we’re working with Magento here (since attribute sets are a core part of its product management), but I’ll note if steps might differ for other platforms.
Follow these steps to update the system-wide default attribute set:
- Log into your admin dashboard.
- Head to Stores > Settings > Configuration (in older Magento versions, this is under System > Configuration).
- On the left sidebar, expand the Catalog menu and select Catalog.
- Scroll down to the Product section, then look for the Default Attribute Set dropdown menu.
- Select Set2 from the list of available attribute sets.
- Click Save Config at the top right corner. Don’t forget to clear your store’s cache afterward to make sure the change takes effect right away.
If you need to set Set2 as the default for a specific product type (like Simple or Configurable products) instead of the global default:
- Go to Stores > Attributes > Attribute Set.
- Find Set2 in the list, click to edit it.
- At the top of the edit page, use the Product Type dropdown to select the product type you want to assign it to.
- Save your changes, and again, clear cache if needed.
To see where Set1 was configured as the default:
- Global Default Check: First, go to the same configuration path as above: Stores > Settings > Configuration > Catalog > Catalog > Product > Default Attribute Set. This is where the system-wide default attribute set is defined—you’ll likely see Set1 selected here if it’s the global default.
- Product Type-Specific Check: If Set1 is only the default for a specific product type:
- Navigate to Stores > Attributes > Attribute Set.
- Find Set1 in the list and click to edit it.
- Look at the Product Type field at the top of the edit page—this will tell you which product type(s) Set1 is assigned as the default for.
Note: If you’re using a different e-commerce platform (like Shopify, WooCommerce, etc.), the exact menu paths will vary, but the core idea stays the same: look for a catalog or product settings section where you can manage default attribute sets for your products.
内容的提问来源于stack exchange,提问作者Rathna

