Skip to content

Commit b30ab69

Browse files
committed
MC-18366: Shipping confirmation email does not have link for order tracking
1 parent 51996a1 commit b30ab69

File tree

1 file changed

+15
-0
lines changed
  • app/code/Magento/Shipping/view/frontend/templates/tracking

1 file changed

+15
-0
lines changed

app/code/Magento/Shipping/view/frontend/templates/tracking/popup.phtml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,18 @@ $results = $block->getTrackingInfo();
6060
</button>
6161
</div>
6262
</div>
63+
<script>
64+
require([
65+
'jquery',
66+
'prototype'
67+
], function (jQuery) {
68+
var hideActions = function () {
69+
jQuery('.actions button.close').hide();
70+
};
71+
72+
/* hide the close button when the content doesn't open in a modal window */
73+
if (window.opener === null || typeof window.opener === "undefined") {
74+
hideActions();
75+
}
76+
});
77+
</script>

0 commit comments

Comments
 (0)