Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
592f819a
Commit
592f819a
authored
Sep 27, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化订单历史界面
parent
09c68410
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
app/design/frontend/Joshine/breeze/Magento_Sales/templates/order/history.phtml
+66
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Sales/templates/order/history.phtml
0 → 100644
View file @
592f819a
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// phpcs:disable Magento2.Templates.ThisInTemplate
// @codingStandardsIgnoreFile
/** @var \Magento\Sales\Block\Order\History $block */
?>
<style
type=
"text/css"
>
table
.id
a
,
table
.actions
a
{
color
:
#666666
;}
</style>
<?php
$_orders
=
$block
->
getOrders
();
?>
<?=
$block
->
getChildHtml
(
'info'
)
?>
<?php
if
(
$_orders
&&
count
(
$_orders
))
:
?>
<div
class=
"table-wrapper orders-history"
>
<table
class=
"data table table-order-items history"
id=
"my-orders-table"
>
<caption
class=
"table-caption"
>
<?=
$block
->
escapeHtml
(
__
(
'Orders'
))
?>
</caption>
<thead>
<tr>
<th
scope=
"col"
class=
"col id"
>
<?=
$block
->
escapeHtml
(
__
(
'Order #'
))
?>
</th>
<th
scope=
"col"
class=
"col date"
>
<?=
$block
->
escapeHtml
(
__
(
'Date'
))
?>
</th>
<?=
$block
->
getChildHtml
(
'extra.column.header'
)
?>
<th
scope=
"col"
class=
"col total"
>
<?=
$block
->
escapeHtml
(
__
(
'Order Total'
))
?>
</th>
<th
scope=
"col"
class=
"col status"
>
<?=
$block
->
escapeHtml
(
__
(
'Status'
))
?>
</th>
<th
scope=
"col"
class=
"col actions"
>
<?=
$block
->
escapeHtml
(
__
(
'Action'
))
?>
</th>
</tr>
</thead>
<tbody>
<?php
foreach
(
$_orders
as
$_order
)
:
?>
<tr>
<td
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Order #'
))
?>
"
class=
"col id"
>
<?=
$block
->
escapeHtml
(
$_order
->
getRealOrderId
())
?>
</td>
<td
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Date'
))
?>
"
class=
"col date"
>
<?=
/* @noEscape */
$block
->
formatDate
(
$_order
->
getCreatedAt
())
?>
</td>
<?php
$extra
=
$block
->
getChildBlock
(
'extra.container'
);
?>
<?php
if
(
$extra
)
:
?>
<?php
$extra
->
setOrder
(
$_order
);
?>
<?=
$extra
->
getChildHtml
()
?>
<?php
endif
;
?>
<td
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Order Total'
))
?>
"
class=
"col total"
>
<?=
/* @noEscape */
$_order
->
formatPrice
(
$_order
->
getGrandTotal
())
?>
</td>
<td
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Status'
))
?>
"
class=
"col status"
>
<?=
$block
->
escapeHtml
(
$_order
->
getStatusLabel
())
?>
</td>
<td
data-th=
"
<?=
$block
->
escapeHtml
(
__
(
'Actions'
))
?>
"
class=
"col actions"
>
<a
href=
"
<?=
$block
->
escapeUrl
(
$block
->
getViewUrl
(
$_order
))
?>
"
class=
"action view"
>
<span>
<?=
$block
->
escapeHtml
(
__
(
'View Order'
))
?>
</span>
</a>
|
<?php
if
(
$this
->
helper
(
\Magento\Sales\Helper\Reorder
::
class
)
->
canReorder
(
$_order
->
getEntityId
()))
:
?>
<a
href=
"#"
data-post=
'
<?=
/* @noEscape */
$this
->
helper
(
\Magento\Framework\Data\Helper\PostHelper
::
class
)
->
getPostData
(
$block
->
getReorderUrl
(
$_order
))
?>
'
class=
"action order"
>
<span>
<?=
$block
->
escapeHtml
(
__
(
'Reorder'
))
?>
</span>
</a>
<?php
endif
?>
</td>
</tr>
<?php
endforeach
;
?>
</tbody>
</table>
</div>
<?php
if
(
$block
->
getPagerHtml
())
:
?>
<div
class=
"order-products-toolbar toolbar bottom"
>
<?=
$block
->
getPagerHtml
()
?>
</div>
<?php
endif
?>
<?php
else
:
?>
<div
class=
"message info empty"
><span>
<?=
$block
->
escapeHtml
(
$block
->
getEmptyOrdersMessage
())
?>
</span></div>
<?php
endif
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment