Skip to content

custom-attributes

Auto Added by WPeMatico

How to store the data of a “used_in_forms” attribute in the Checkout?

I’ve added an attribute to the Customer Addresses: <?php namespace DcCustomerSetup; use MagentoCustomerApiAddressMetadataInterface; use MagentoCustomerSetupCustomerSetupFactory; use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupUpgradeDataInterface; use MagentoFrameworkSetupModuleContextInterface; class UpgradeData implements UpgradeDataInterface { protected $customerSetupFactory; protected $attributeSetFactory; public function __construct(CustomerSetupFactory $customerSetupFactory, AttributeSetFactory $attributeSetFactory)… Read More »How to store the data of a “used_in_forms” attribute in the Checkout?

Magento 2 Attribute Property – How ‘user_defined’ and ‘system’ attribute propety are different?

‘system’ attribute property tells if attribute is system defined or not. ‘user_defined’ attribute property tells if attribute is custom (define by developer) or not. It means, if ‘system’=0, the attribute is ‘user_defined’ and vice versa. So why Magento 2 uses… Read More »Magento 2 Attribute Property – How ‘user_defined’ and ‘system’ attribute propety are different?