I have a Custom attribute name ( product string ) on Product in which i have save a string i want to get that custom attribute value for ordered product.
I have getting the ordered product by this code
$orderId = 32;
$order = $block->getOrderData($orderId);
foreach ($order->getAllVisibleItems() as $_item) {
echo $_item->getId();
echo $_item->getSku();
echo $_item->getName();
echo $_item->getProductType();
echo $_item->getQtyOrdered();
echo "<pre>";print_r($_item->debug());
}