Skip to content

product-attribute

Auto Added by WPeMatico

how to change product attribute’s frontend input to dropdown programmatically

i have tried following but it’s not working. <?php namespace VendorExtensionSetupPatchData; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkSetupPatchPatchRevertableInterface; class UpdateProductAttribute implements DataPatchInterface, PatchRevertableInterface { /** * @var ModuleDataSetupInterface */ private $moduleDataSetup; /** * @var EavSetupFactory */ private… Read More »how to change product attribute’s frontend input to dropdown programmatically

Magento 2 REST API – Updating a single category also updates other attributes to not use the default value

Hopefully somebody can shed some light on this issue. I have a REST handler that will bulk-update products per store view. Like text translations etc. Since the provided attributes could be anything, ranging from core attributes and custom attributes I… Read More »Magento 2 REST API – Updating a single category also updates other attributes to not use the default value

Attribute Option label not updating in Magento2

I created a setup Patch file to update the label of attribute options. Tried below code CustomVendorSetupPatchDataUpdateColorAttributeOptions.php <?php namespace CustomVendorSetupPatchData; use MagentoEavApiAttributeRepositoryInterface; use MagentoEavApiDataAttributeOptionLabelInterfaceFactory; use MagentoEavApiDataAttributeOptionInterface; use MagentoEavModelConfig; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkAppResourceConnection; class UpdateColorAttributeOptions implements DataPatchInterface { private… Read More »Attribute Option label not updating in Magento2