Skip to content

Pager not work in my custom collection?

I have a custom collection for ordered products for a customer. $connection = $this->resourceConnection->getConnection(MagentoFrameworkAppResourceConnection::DEFAULT_CONNECTION); $customerSession = $this->customerSession->create(); if ($customerSession->isLoggedIn()) { $customerId = $customerSession->getId(); $result1 = $connection->fetchAll(‘SELECT distinct(product_id) FROM `sales_order_item` as soi INNER join sales_order as so on so.entity_id=soi.order_id WHERE so.customer_id… Read More »Pager not work in my custom collection?

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;