Skip to content

Commit 8f92a81

Browse files
MC-38269: [CLARIFICATION] [Magento Cloud] - Persistent Shopping cart Header Weelcome & Not you?
1 parent dd862cd commit 8f92a81

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/code/Magento/Persistent/view/frontend/templates/additional.phtml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44
* See COPYING.txt for license details.
55
*/
66
?>
7-
<?php if ($block->getCustomerId()) :?>
8-
<span>
9-
<a <?= /* @noEscape */ $block->getLinkAttributes()?>><?= $block->escapeHtml(__('Not you?'));?></a>
10-
</span>
11-
<?php endif;?>
127
<script type="application/javascript">
138
window.persistent = <?= /* @noEscape */ $block->getConfig(); ?>;
9+
window.notYou = '<span> <a <?= /* @noEscape */ $block->getLinkAttributes()?>>'
10+
+ '<?= $block->escapeHtml(__("Not you?"));?></a></span>';
1411
</script>
1512
<script type="text/x-magento-init">
1613
{

app/code/Magento/Persistent/view/frontend/web/js/view/additional-welcome.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ define([
4040

4141
$(this).attr('data-bind', html);
4242
$(this).html(html);
43+
$(this).after(window.notYou);
4344
});
4445
}
4546
}

0 commit comments

Comments
 (0)