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
adminhtml
templates
order
view
history.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
9
?>
10
<div
id
=
"order_history_block"
class
=
"edit-order-comments"
>
11
<?php
if
(
$block
->canAddComment()):?>
12
<div
class
=
"order-history-block"
id
=
"history_form"
>
13
14
<div
class
=
"admin__field"
>
15
<label
for
=
"history_status"
class
=
"admin__field-label"
><?=
/* @noEscape */
__
(
'Status'
) ?></label>
16
<div
class
=
"admin__field-control"
>
17
<select
name
=
"history[status]"
id
=
"history_status"
class
=
"admin__control-select"
>
18
<?php
foreach
(
$block
->getStatuses() as
$_code
=> $_label): ?>
19
<option
value
=
"<?= $block->escapeHtml($_code) ?>"
<?php
if
(
$_code
==
$block
->getOrder()->getStatus()): ?> selected=
"selected"
<?php
endif
; ?>><?=
$block
->escapeHtml($_label) ?></option>
20
<?php
endforeach
; ?>
21
</select>
22
</div>
23
</div>
24
25
<div
class
=
"admin__field"
>
26
<label
for
=
"history_comment"
class
=
"admin__field-label"
>
27
<?=
/* @noEscape */
__
(
'Comment'
) ?>
28
</label>
29
<div
class
=
"admin__field-control"
>
30
<textarea
name
=
"history[comment]"
31
rows=
"3"
32
cols=
"5"
33
id
=
"history_comment"
34
class
=
"admin__control-textarea"
></textarea>
35
</div>
36
</div>
37
38
<div
class
=
"admin__field"
>
39
<div
class
=
"order-history-comments-options"
>
40
<div
class
=
"admin__field admin__field-option"
>
41
<?php
if
(
$block
->canSendCommentEmail()): ?>
42
<input
name
=
"history[is_customer_notified]"
43
type=
"checkbox"
44
id
=
"history_notify"
45
class
=
"admin__control-checkbox"
46
value
=
"1"
/>
47
<label
class
=
"admin__field-label"
for
=
"history_notify"
>
48
<?=
/* @noEscape */
__
(
'Notify Customer by Email'
) ?>
49
</label>
50
<?php
endif
; ?>
51
</div>
52
53
<div
class
=
"admin__field admin__field-option"
>
54
<input
name
=
"history[is_visible_on_front]"
55
type=
"checkbox"
56
id
=
"history_visible"
57
class
=
"admin__control-checkbox"
58
value
=
"1"
/>
59
<label
class
=
"admin__field-label"
for
=
"history_visible"
>
60
<?=
/* @noEscape */
__
(
'Visible on Storefront'
) ?>
61
</label>
62
</div>
63
</div>
64
65
<div
class
=
"order-history-comments-actions"
>
66
<?=
$block
->getChildHtml(
'submit_button'
) ?>
67
</div>
68
</div>
69
</div>
70
<?php
endif
;?>
71
72
<ul
class
=
"note-list"
>
73
<?php
foreach
(
$block
->getOrder()->getStatusHistoryCollection(
true
) as
$_item
): ?>
74
<li
class
=
"note-list-item"
>
75
<span
class
=
"note-list-date"
><?=
/* @noEscape */
$block
->formatDate(
$_item
->getCreatedAt(), \IntlDateFormatter::MEDIUM) ?></span>
76
<span
class
=
"note-list-time"
><?=
/* @noEscape */
$block
->formatTime(
$_item
->getCreatedAt(), \IntlDateFormatter::MEDIUM) ?></span>
77
<span
class
=
"note-list-status"
><?=
$block
->escapeHtml(
$_item
->getStatusLabel()) ?></span>
78
<span
class
=
"note-list-customer"
>
79
<?=
/* @noEscape */
__
(
'Customer'
) ?>
80
<?php
if
(
$block
->isCustomerNotificationNotApplicable(
$_item
)): ?>
81
<span
class
=
"note-list-customer-notapplicable"
><?=
/* @noEscape */
__
(
'Notification Not Applicable'
) ?></span>
82
<?php
elseif
(
$_item
->getIsCustomerNotified()): ?>
83
<span
class
=
"note-list-customer-notified"
><?=
/* @noEscape */
__
(
'Notified'
) ?></span>
84
<?php
else
: ?>
85
<span
class
=
"note-list-customer-not-notified"
><?=
/* @noEscape */
__
(
'Not Notified'
) ?></span>
86
<?php
endif
; ?>
87
</span>
88
<?php
if
(
$_item
->getComment()): ?>
89
<div
class
=
"note-list-comment"
><?=
$block
->escapeHtml(
$_item
->getComment(), [
'b'
,
'br'
,
'strong'
,
'i'
,
'u'
,
'a'
]) ?></div>
90
<?php
endif
; ?>
91
</li>
92
<?php
endforeach
; ?>
93
</ul>
94
<script>
95
require([
'prototype'
],
function
(){
96
97
if
($(
'order_status'
))$(
'order_status'
).update(
'<?= $block->escapeJs($block->escapeHtml($block->getOrder()->getStatusLabel())) ?>'
);
98
99
});
100
</script>
101
</div>
endif
endif
Definition:
history.phtml:66
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
__
__()
Definition:
__.php:13
$_code
$_code
Definition:
attribute.phtml:19
$block
$block
Definition:
block.php:8
name
$_item
$_item
Definition:
default.phtml:11
endforeach
if( $block->canAddComment())( 'Status') ?></label >< div class if($_code==$block->getOrder() ->getStatus()) endforeach
Definition:
history.phtml:19