📜  “客户”属性未从管理员 magento 2 中保存 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:30.700000             🧑  作者: Mango

代码示例1
$customAttribute->addData([
            'attribute_set_id' => $attributeSetId,
            'attribute_group_id' => $attributeGroupId,
            'used_in_forms' => ['adminhtml_customer', 'customer_account_edit']
        ]);