Skip to content

magento man

using event sales_order_save_after add data in the table

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… Read More »using event sales_order_save_after add data in the table

Element ‘move’: This element is not expected

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

Forcing browser caching on custom controller

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… Read More »Forcing browser caching on custom controller