Magento
I migrated from a cpanel hosting to plesk hosting, going thru error by error and resolving them. Right now facing a bottleneck when trying to login to admin backend it results in error as below. Fatal error: Interface 'Zend_Session_SaveHandler_Interface' not found in /var/www/vhosts/site/app/code/core/Mage/Core/Model/Resource/Session.php on line 35 Any ideas? Ps, I […]
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' => 444, 'source' => '', 'global' => ScopedAttributeInterface::SCOPE_WEBSITE, 'visible' => […]
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 = soi.product_id; I have trouble implementing an equivalent in Grid ResourceModel. […]
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
This is my Product attribute <?php namespace VendorModuleSetupPatchData; use MagentoCatalogModelProduct; use MagentoEavModelEntityAttributeScopedAttributeInterface; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; class CustomAttribute implements DataPatchInterface { /** * ModuleDataSetupInterface * * @var ModuleDataSetupInterface */ private ModuleDataSetupInterface $moduleDataSetup; /** * EavSetupFactory * * @var EavSetupFactory */ private EavSetupFactory […]
I have prepared an admin form containing a file upload field. This form is configured in an .xml form file. <field name="files" formElement="fileUploader" sortOrder="40"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="dataType" xsi:type="string">string</item> <item name="label" xsi:type="string" translate="true">Files</item> <item name="notice" xsi:type="string">Maximum file size: 50MB. Allowed file types: PDF.</item> <item name="formElement" xsi:type="string">fileUploader</item> […]
After install Live search in cloud magento its giving below errors. Cannot instantiate interface MagentoServicesIdModelServicesConfigInterface#0 /vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create() #1 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get() #2 /vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument()
I have a couple custom modules, one for adding eav attributes to customers, and I had a module that filtered those customers based on the attribute values, which ‘was’ working. When I say “filter” I mean the same type of conditions block as is used in cart price rules. Another […]