File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/Shipping/view/frontend Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 8
8
<page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" layout =" empty" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
9
<body >
10
10
<referenceContainer name =" content" >
11
- <block class =" Magento\Shipping\Block\Tracking\Popup" name =" shipping.tracking.popup" template =" Magento_Shipping::tracking/popup.phtml" />
11
+ <block class =" Magento\Shipping\Block\Tracking\Popup" name =" shipping.tracking.popup" template =" Magento_Shipping::tracking/popup.phtml" cacheable = " false " />
12
12
</referenceContainer >
13
13
</body >
14
14
</page >
Original file line number Diff line number Diff line change @@ -22,23 +22,24 @@ $results = $block->getTrackingInfo();
22
22
<?php foreach ($ result as $ counter => $ track ): ?>
23
23
<div class="table-wrapper">
24
24
<?php
25
- $ block ->addChild ('shipping.tracking.details. ' . $ counter , Template::class, [
25
+ $ shipmentBlockIdentifier = $ shipId . '. ' . $ counter ;
26
+ $ block ->addChild ('shipping.tracking.details. ' . $ shipmentBlockIdentifier , Template::class, [
26
27
'track ' => $ track ,
27
28
'template ' => 'Magento_Shipping::tracking/details.phtml ' ,
28
29
'storeSupportEmail ' => $ block ->getStoreSupportEmail ()
29
30
]
30
31
);
31
32
?>
32
- <?= /* @noEscape */ $ block ->getChildHtml ('shipping.tracking.details. ' . $ counter ) ?>
33
+ <?= /* @noEscape */ $ block ->getChildHtml ('shipping.tracking.details. ' . $ shipmentBlockIdentifier ) ?>
33
34
</div>
34
35
<?php if (is_object ($ track ) && !empty ($ track ->getProgressdetail ())): ?>
35
36
<?php
36
- $ block ->addChild ('shipping.tracking.progress. ' . $ counter , Template::class, [
37
+ $ block ->addChild ('shipping.tracking.progress. ' . $ shipmentBlockIdentifier , Template::class, [
37
38
'track ' => $ track ,
38
39
'template ' => 'Magento_Shipping::tracking/progress.phtml '
39
40
]);
40
41
?>
41
- <?= /* @noEscape */ $ block ->getChildHtml ('shipping.tracking.progress. ' . $ counter ) ?>
42
+ <?= /* @noEscape */ $ block ->getChildHtml ('shipping.tracking.progress. ' . $ shipmentBlockIdentifier ) ?>
42
43
<?php endif ; ?>
43
44
<?php endforeach ; ?>
44
45
<?php else : ?>
You can’t perform that action at this time.
0 commit comments