$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_product = $objectManager->get('Magento\Catalog\Model\Product')->load($_item->getProduct()->getId());
<?php
$attr = $_product->getResource()->getAttribute('brand');
if ($attr->usesSource()) {
$optionText = $attr->getSource()->getOptionText($_product->getBrand()); ?>
<div class="brand">
<span><?php echo $optionText; ?></span>
</div>
<?php } ?>
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_product = $objectManager->get('Magento\Catalog\Model\Product')->load($_item->getProduct()->getId());
<?php
$attr = $_product->getResource()->getAttribute('brand');
if ($attr->usesSource()) {
$optionText = $attr->getSource()->getOptionText($_product->getBrand()); ?>
<div class="brand">
<span><?php echo $optionText; ?></span>
</div>
<?php } ?>
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = $objectManager->get('Magento\Catalog\Model\Product')->load($_item->getProduct()->getId()); <?php $attr = $_product->getResource()->getAttribute('brand'); if ($attr->usesSource()) { $optionText = $attr->getSource()->getOptionText($_product->getBrand()); ?> <div class="brand"> <span><?php echo $optionText; ?></span> </div> <?php } ?>