1 exception(s): Exception #0 (MagentoFrameworkConfigDomValidationException): Element ‘move’: This element is not expected. Line: 1427 Exception #0 (MagentoFrameworkConfigDomValidationException): Element ‘move’: This element is not expected. Line: 1427
Magento
I hava created an observer with this event file. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="sales_order_save_after"> <observer name="purchase_sales_order_place_after" instance="MaxselPurchaseOrderObserverSalesOrderSaveAfter" /> </event> </config> and this is the observer file * @var LoggerInterface */ protected $logger; /** * @param ResourceConnection $resourceConnection * @param LoggerInterface $logger */ public function __construct(ResourceConnection $resourceConnection, LoggerInterface $logger) { $this->logger […]
I have a custom controller with this code: use MagentoFrameworkAppActionHttpGetActionInterface; use MagentoFrameworkAppResponseHttpFactory; use MagentoFrameworkAppResponseInterface; use MagentoFrameworkControllerResultInterface; use MagentoFrameworkExceptionNotFoundException; use MagentoFrameworkViewElementTemplate; use MagentoFrameworkViewResultPageFactory; class Entries implements HttpGetActionInterface { public function __construct( private Navigation $navigation, private readonly PageFactory $resultPageFactory, private readonly HttpFactory $httpResponseFactory ) { } /** * Execute action based on […]
Is it possible to add a new tab in the admin product edit page, but just for simple products? I was able to add a tab using ui_component, but I can’t figure out how to add this just for simple products view/adminhtml/ui_component/product_form.xml <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="new_tab"> <argument name="data" xsi:type="array"> […]
I added ‘custom_field’ to ‘customer_entity’ table by using ‘db_schema.xml’ file and need to save ‘some value’ in it then I wanted to filter the collection by ‘custom_field’ value. How can I achieve this ? When I use the below code. $customer = $this->_customerFactory->create(); $customerData = $customer->getCollection()->addAttributeToFilter('custom_field',array('neq'=>'cleared'))->setOrder('entity_id','ASC')->load(); I am getting this […]
I am trying to create new product attribute of type datetime. Attribute is created successfully and also there is no error while reindexing. Note – I am able to save the attribute value from admin panel. But while sorting I am getting below error – No mapping found for [added_on_value.sort_added_on] […]
I am doing an MFTF for the product page on a test environment with htpasswd (apache file protection), I enter the htpasswd credentials in the url in order to bypass the test. ex: https://test:test@dev.website.com but doing this throws a JS errors in the browser console “require is not a function” […]
After upgrading to magento 2.4.6-p3 in system.log and cron.log it is generating same error daily i.e – main.ERROR: There are no commands defined in the "setup:cron" namespace. Did you mean one of these? setup setup:config setup:db setup:db-data setup:db-declaration setup:db-schema setup:di setup:performance setup:static-content setup:store-config Can anyone suggest any solution or the […]
Created the following plugin of RequisitionList list: <type name="MagentoRequisitionListModelRequisitionListManagement"> After add item to Requisition-list, require to remove one item from quote, based on condition, but with the remove item process facing issue during the merge quote, after removed particular item programmatically, minicart QTY count & total not updated. Tried following […]