New answers tagged

0

Yes it is possible, but you need to do it programmatically Create a helper in any of your module app/code/Vendor/Module/Helper/Data.php And use following code: <?php namespace Vendor\Module\Helper; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper; use Magento\Sales\Model\Order; use Magento\CatalogInventory\Model\...


1

The event sales_order_save_before is been dispatched when an entity of Sales Order is been saved. The class which is reponsible for dispatching sales_order_save_before event is the model of order Magento\Sales\Model\Order. In order to get to the dispatch statement, you need to look for the beforeSave method into inheritance heirarchy of this model. If you ...


1

I have found that this event are dispatched in Magento\Framework\Model\AbstractModel.php /** * Processing object before save data * * @return $this */ public function beforeSave() { if (!$this->getId()) { $this->isObjectNew(true); } $this->_eventManager->dispatch('...


Top 50 recent answers are included