Skip to content

How to enable wysiwyg editor for custom attribute in admin category page?

I have created a custom category attribute using below code. AyakilCustomCategoryAttributeSetupPatchDataAddMyDescriptionCategoryAttribute.php public function apply() { $this->moduleDataSetup->getConnection()->startSetup(); /** @var EavSetup $eavSetup */ $eavSetup = $this->eavSetupFactory->create([‘setup’ => $this->moduleDataSetup]); $eavSetup->addAttribute( MagentoCatalogModelCategory::ENTITY, ‘my_description’, [ ‘type’ => ‘text’, ‘label’ => ‘my_description’, ‘input’ => ‘textarea’, ‘sort_order’… Read More »How to enable wysiwyg editor for custom attribute in admin category page?

Issue with implementing unique_purchases column in main table using leftJoin in Grid ResourceModel

I have a SQL query that does what I need SELECT ipi.*, COALESCE(unique_purchases, 0) AS unique_purchases FROM mst_inventory_planner_inventory AS ipi LEFT JOIN ( SELECT product_id, COUNT(DISTINCT order_id) AS unique_purchases FROM sales_order_item GROUP BY product_id ) AS soi ON ipi.product_id =… Read More »Issue with implementing unique_purchases column in main table using leftJoin in Grid ResourceModel

Zend replacement for Magento 2.4.6

I have an old module that uses this in the constructor Zend_Filter_Interface $templateProcessor Can anyone tell me what I can replace this with as it throws error on setup:di:compile when upgrading to 2.4.6