Skip to content

Commit 76ec8c1

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-36958: Display transaction details in order's payment information
- Set additional info label recursive
1 parent a329b62 commit 76ec8c1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/Payment/view/adminhtml/templates/info/additional.phtml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@
1717
<?php foreach ($additional_info as $label => $value):?>
1818
<tr>
1919
<th><?php echo $block->escapeHtml($label)?>:&nbsp;</th>
20-
<td><?php echo nl2br(implode("\n", $block->getValueAsArray($value, true)))?></td>
20+
<td>
21+
<?php if (is_array($value)):?>
22+
<?php foreach ($value as $label => $val):?>
23+
<?php echo $block->escapeHtml($label . ': ' . $val)?><br/>
24+
<?php endforeach;?>
25+
<?php else:?>
26+
<?php echo $block->escapeHtml($value)?><br/>
27+
<?php endif;?>
28+
</td>
2129
</tr>
2230
<?php endforeach; ?>
2331
</table>

0 commit comments

Comments
 (0)