Adding existing attribute to all attribute sets

前端 未结 6 1788
孤街浪徒
孤街浪徒 2021-02-06 05:53

I have an existing attribute for an embed code. I need to associate this attribute with 120+ existing attribute sets.

If I know the attribute set id, ho

6条回答
  •  猫巷女王i
    2021-02-06 06:44

    If you are using a external script (not the magento setups script) this work form me

    startSetup();
    $setup->addAttribute('catalog_product', $attributeCode, array(
        'group'      => $group,
        'sort_order' => $sortOrder
    ));
    

    (as answer to @Eric)

提交回复
热议问题