Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-sales
view
frontend
templates
email
items
order
default.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
12
$_item
=
$block
->getItem();
13
$_order
=
$_item
->getOrder();
14
?>
15
<tr>
16
<td
class
=
"item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>"
>
17
<p
class
=
"product-name"
><?=
$block
->escapeHtml(
$_item
->getName()) ?></p>
18
<p
class
=
"sku"
><?=
/* @escapeNotVerified */
__
(
'SKU'
) ?>: <?=
$block
->escapeHtml(
$block
->getSku(
$_item
)) ?></p>
19
<?php
if
(
$block
->getItemOptions()): ?>
20
<dl
class
=
"item-options"
>
21
<?php
foreach
(
$block
->getItemOptions() as
$option
): ?>
22
<dt><strong><em><?=
/* @escapeNotVerified */
$option
[
'label'
] ?></em></strong></dt>
23
<dd>
24
<?=
/* @escapeNotVerified */
nl2br(
$option
[
'value'
]) ?>
25
</dd>
26
<?php
endforeach
; ?>
27
</dl>
28
<?php
endif
; ?>
29
<?php
$addInfoBlock
=
$block
->getProductAdditionalInformationBlock(); ?>
30
<?php
if
(
$addInfoBlock
) :?>
31
<?=
$addInfoBlock
->setItem(
$_item
)->toHtml() ?>
32
<?php
endif
; ?>
33
<?=
$block
->escapeHtml(
$_item
->getDescription()) ?>
34
</td>
35
<td
class
=
"item-qty"
><?=
/* @escapeNotVerified */
$_item
->getQtyOrdered() * 1 ?></td>
36
<td
class
=
"item-price"
>
37
<?=
/* @escapeNotVerified */
$block
->getItemPrice(
$_item
) ?>
38
</td>
39
</tr>
40
<?php
if
(
$_item
->getGiftMessageId() &&
$_giftMessage
= $this->helper(
'Magento\GiftMessage\Helper\Message'
)->getGiftMessage(
$_item
->getGiftMessageId())): ?>
41
<tr>
42
<td colspan=
"3"
class
=
"item-extra"
>
43
<table
class
=
"message-gift"
>
44
<tr>
45
<td>
46
<h3><?=
/* @escapeNotVerified */
__
(
'Gift Message'
) ?></h3>
47
<strong><?=
/* @escapeNotVerified */
__
(
'From:'
) ?></strong> <?=
$block
->escapeHtml(
$_giftMessage
->getSender()) ?>
48
<br /><strong><?=
/* @escapeNotVerified */
__
(
'To:'
) ?></strong> <?=
$block
->escapeHtml(
$_giftMessage
->getRecipient()) ?>
49
<br /><strong><?=
/* @escapeNotVerified */
__
(
'Message:'
) ?></strong>
50
<br /><?=
$block
->escapeHtml(
$_giftMessage
->getMessage()) ?>
51
</td>
52
</tr>
53
</table>
54
</td>
55
</tr>
56
<?php
endif
; ?>
$option
$option
Definition:
default.phtml:8
$_order
$parentItem $_order
Definition:
default.phtml:12
__
__()
Definition:
__.php:13
$block
$block
Definition:
block.php:8
endforeach
endforeach
Definition:
default.phtml:72
$_item
$_item
Definition:
default.phtml:11
endif
if( $_item->getOrderItem() ->getParentItem())( $_item) ?><?php if( $_prevOptionId ! $_prevOptionId endif
Definition:
default.phtml:41
$_giftMessage
$_giftMessage
Definition:
inline.phtml:10
$addInfoBlock
$addInfoBlock
Definition:
default.phtml:63