Skip to main content
2 of 2
deleted 4 characters in body
Amit Bera
  • 77.7k
  • 20
  • 124
  • 239

You have to pass editMode mode on get() method. See the function signature:

Magento\Catalog\Api\ProductRepositoryInterface::get($sku, $editMode = false, $storeId = null, $forceReload = false)

$product = $this->productRepository->get($sku,true);
Amit Bera
  • 77.7k
  • 20
  • 124
  • 239