Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- // @codingStandardsIgnoreFile
- ?>
- <?php /** @var MagentoSalesBlockAdminhtmlOrderViewItemsRendererDefaultRenderer $block */ ?>
- <?php $_item = $block->getItem() ?>
- <?php $block->setPriceDataObject($_item) ?>
- <tr>
- <?php $i = 0;
- $columns = $block->getColumns();
- $lastItemNumber = count($columns) ?>
- <?php foreach ($columns as $columnName => $columnClass):?>
- <?php $i++; ?>
- <td class="<?= /* @noEscape */ $columnClass ?><?= /* @noEscape */ ($i === $lastItemNumber ? ' last' : '') ?>"><?= /* @escapeNotVerified */ $block->getColumnHtml($_item, $columnName) ?>
- <?php if($columnClass == "col-product"){ ?>
- <span><?php echo __("Custom Attribute:") ?></span>
- <?php echo $_item->getName(); ?>
- <?php } ?>
- </td>
- <?php endforeach; ?>
- </tr>
Add Comment
Please, Sign In to add comment