0

how can i check if item is stock or out of stock from this code.

     $searchCriteria = $this->searchCriteriaBuilder
        ->addFilter(SourceItemInterface::SOURCE_CODE, $sourceCode)
        ->addFilter(SourceItemInterface::SKU, $sku)
        ->create();    
 $sourceItemsResult = $this->sourceItemRepository->getList($searchCriteria);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.