Skip to content

sales-order

Auto Added by WPeMatico

when i am trying to use GetSalableQuantityDataBySku it will give me an error

i am new in magento when i am trying to use GetSalableQuantityDataBySku” does not exist magento throw me an error below error i am use event which i use : use MagentoInventorySalesAdminUiModelGetSalableQuantityDataBySku; protected $getSalableQuantityDataBySku; GetSalableQuantityDataBySku $getSalableQuantityDataBySku, $this->getSalableQuantityDataBySku = $getSalableQuantityDataBySku;

Magento 2 : Reorder Throw Exception

After successful purchase in the order details page when i click reorder option it throw below exception TypeError: MagentoFrameworkDataObject::__construct(): Argument #1 ($data) must be of type array, null given, called in /var/www/html/magento2/vendor/magento/module-sales/Model/Reorder/OrderInfoBuyRequestGetter.php on line 65 and defined in /var/www/html/magento2/vendor/magento/framework/DataObject.php:40

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