11 <?php $_invoice =
$block->getInvoice() ?>
12 <?php
if ($_invoice): ?>
13 <?php $_invoices = [$_invoice]; ?>
15 <?php $_invoices =
$_order->getInvoiceCollection() ?>
17 <?php
foreach ($_invoices as $_invoice): ?>
18 <div
class=
"order-details-items invoice">
19 <div
class=
"order-title">
20 <strong><?=
__(
'Invoice #') ?><?= $_invoice->getIncrementId() ?></strong>
22 <div
class=
"table-wrapper table-order-items invoice">
23 <table
class=
"data table table-order-items invoice" id=
"my-invoice-table-<?= /* @escapeNotVerified */ $_invoice->getId() ?>">
24 <caption
class=
"table-caption"><?=
__(
'Items Invoiced') ?></caption>
27 <th
class=
"col name"><?=
__(
'Product Name') ?></th>
28 <th
class=
"col sku"><?=
__(
'SKU') ?></th>
29 <th
class=
"col price"><?=
__(
'Price') ?></th>
30 <th
class=
"col qty"><?=
__(
'Qty Invoiced') ?></th>
31 <th
class=
"col subtotal"><?=
__(
'Subtotal') ?></th>
34 <?php
$_items = $_invoice->getItemsCollection(); ?>
36 <?php
if (!
$_item->getOrderItem()->getParentItem()): ?>
43 <?=
$block->getInvoiceTotalsHtml($_invoice) ?>
47 <div
class=
"block block-order-details-view">
48 <div
class=
"block-title">
49 <strong><?=
__(
'Order Information') ?></strong>
51 <div
class=
"block-content">
52 <?php
if (!
$_order->getIsVirtual()): ?>
53 <div
class=
"box box-order-shipping-address">
54 <div
class=
"box-title">
55 <strong><?=
__(
'Shipping Address') ?></strong>
57 <div
class=
"box-content">
58 <?php $_shipping = $_invoice->getShippingAddress() ?>
59 <address><?=
$block->formatAddress($_shipping,
'html') ?></address>
63 <div
class=
"box box-order-shipping-method">
64 <div
class=
"box-title">
65 <strong><?=
__(
'Shipping Method') ?></strong>
67 <div
class=
"box-content">
68 <?php
if (
$_order->getShippingDescription()): ?>
71 <?=
__(
'No shipping information available') ?>
76 <div
class=
"box box-order-billing-address">
77 <div
class=
"box-title">
78 <strong><?=
__(
'Billing Address') ?></strong>
80 <div
class=
"box-content">
81 <?php $_billing = $_invoice->getbillingAddress() ?>
82 <address><?=
$block->formatAddress(
$_order->getBillingAddress(),
'html') ?></address>
86 <div
class=
"box box-order-billing-method">
87 <div
class=
"box-title">
88 <strong><?=
__(
'Payment Method') ?></strong>
90 <div
class=
"box-content">
91 <?=
$block->getPaymentInfoHtml() ?>
foreach( $_invoices as $_invoice)( 'Invoice #') ?><? $_items