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

instead of use $_item->getProduct()->getId()

You should use sku $_item->getSku();

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->create('\Magento\Catalog\Model\ProductFactory'->create());
$product = $this->productFactory->create();
$product->load($product->getIdBySku($_item->getSku()));
$thitem = $product->getThumbnail();

$fullImageUrl =$block->getUrl('pub/media/catalog').'product'.$product->getThumbnail()

Suggestion:

Use of direct product object is not good idea

Also suggest to inject \Magento\Catalog\Model\ProductFactory to your block class

Amit Bera
  • 77.7k
  • 20
  • 124
  • 239