11 <div
id=
"packed_window">
12 <?php
foreach (
$block->getPackages() as $packageId => $package): ?>
13 <?php $package =
new \
Magento\Framework\DataObject($package) ?>
14 <?php
$params = new \Magento\Framework\DataObject($package->getParams()) ?>
15 <section
class=
"admin__page-section">
16 <div
class=
"admin__page-section-title">
17 <span
class=
"title"><?=
__(
'Package') .
' ' . $packageId ?></span>
19 <div
class=
"admin__page-section-content">
20 <div
class=
"row row-gutter">
22 <table
class=
"admin__table-secondary">
25 <th><?=
__(
'Type') ?></th>
26 <td><?=
$block->getContainerTypeByCode(
$params->getContainer()) ?></td>
29 <?php
if (
$block->displayCustomsValue()): ?>
30 <th><?=
__(
'Customs Value') ?></th>
31 <td><?=
$block->displayCustomsPrice(
$params->getCustomsValue()) ?></td>
33 <th><?=
__(
'Total Weight') ?></th>
34 <td><?=
$params->getWeight() .
' ' . $this->helper(
'Magento\Shipping\Helper\Carrier')->getMeasureWeightName(
$params->getWeightUnits()) ?></td>
39 <th><?=
__(
'Size') ?></th>
40 <td><?= ucfirst(strtolower(
$params->getSize())) ?></td>
47 <table
class=
"admin__table-secondary">
50 <th><?=
__(
'Length') ?></th>
52 <?php
if (
$params->getLength() !=
null): ?>
53 <?=
$params->getLength() .
' ' . $this->helper(
'Magento\Shipping\Helper\Carrier')->getMeasureDimensionName(
$params->getDimensionUnits()) ?>
60 <th><?=
__(
'Width') ?></th>
62 <?php
if (
$params->getWidth() !=
null): ?>
63 <?=
$params->getWidth() .
' ' . $this->helper(
'Magento\Shipping\Helper\Carrier')->getMeasureDimensionName(
$params->getDimensionUnits()) ?>
70 <th><?=
__(
'Height') ?></th>
72 <?php
if (
$params->getHeight() !=
null): ?>
73 <?=
$params->getHeight() .
' ' . $this->helper(
'Magento\Shipping\Helper\Carrier')->getMeasureDimensionName(
$params->getDimensionUnits()) ?>
83 <table
class=
"admin__table-secondary">
85 <?php
if (
$params->getDeliveryConfirmation() !=
null): ?>
87 <th><?=
__(
'Signature Confirmation') ?></th>
88 <td><?=
$block->getDeliveryConfirmationTypeByCode(
$params->getDeliveryConfirmation()) ?></td>
91 <?php
if (
$params->getContentType() !=
null): ?>
93 <th><?=
__(
'Contents') ?></th>
94 <?php
if (
$params->getContentType() ==
'OTHER'): ?>
95 <td><?=
$block->escapeHtml(
$params->getContentTypeOther()) ?></td>
97 <td><?=
$block->getContentTypeByCode(
$params->getContentType()) ?></td>
101 <?php
if (
$params->getGirth()): ?>
103 <th><?=
__(
'Girth') ?></th>
104 <td><?=
$params->getGirth() .
' ' . $this->helper(
'Magento\Shipping\Helper\Carrier')->getMeasureDimensionName(
$params->getGirthDimensionUnits()) ?></td>
112 <div
class=
"admin__page-section-item-title">
113 <span
class=
"title"><?=
__(
'Items in the Package') ?></span>
115 <div
class=
"admin__table-wrapper">
116 <table
class=
"data-table admin__table-primary">
118 <tr
class=
"headings">
119 <th
class=
"col-product"><span><?=
__(
'Product') ?></span></th>
120 <th
class=
"col-weight"><span><?=
__(
'Weight') ?></span></th>
121 <?php
if (
$block->displayCustomsValue()): ?>
122 <th
class=
"col-custom"><span><?=
__(
'Customs Value') ?></span></th>
124 <th
class=
"col-qty"><span><?=
__(
'Qty Ordered') ?></span></th>
125 <th
class=
"col-qty"><span><?=
__(
'Qty') ?></span></th>
129 <?php
foreach ($package->getItems() as $itemId =>
$item) : ?>
132 <td
class=
"col-product">
133 <?=
$item->getName() ?>
135 <td
class=
"col-weight">
136 <?=
$item->getWeight() ?>
138 <?php
if (
$block->displayCustomsValue()): ?>
139 <td
class=
"col-custom"><?=
$block->displayCustomsPrice(
$item->getCustomsValue()) ?></td>
142 <?=
$block->getQtyOrderedItem(
$item->getOrderItemId()) ?>
156 function showPackedWindow() {
157 jQuery(
'#packed_window').modal(
'openModal');
161 <script type=
"text/x-magento-init">
164 "Magento_Shipping/js/packages":{
166 "title":
"<?= /* @escapeNotVerified */ __('Packages') ?>",
167 "url":
"<?= /* @escapeNotVerified */ $block->getPrintButton() ?>" if( $params->getSize())( 'Size') ?></th >< td ><? endif
jQuery('.store-switcher .dropdown-menu li a').each(function()
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]