Tag

magento 2.4.4

Browsing

For some unique customization, we need to create category attributes to fulfil client requirements. Magento introduce data patch to create attributes after version Magento 2.3. So, We need to create category attribute using data patch in magento2. This Blog for Magento version >= 2.4.4 && PHP >= 8.1Here I created simple category attribute with datatype textCreate file: app/code/MageDad/Module/Setup/Patch/Data/AddCodeCategoryAttribute.php We need to run magento setup upgrade command to run this data patch.php bin/magento setup:upgradeCreate file – app/code/MageDad/Module/view/adminhtml/ui_component/category_form.xml…