File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
app/code/Magento/Customer
view/frontend/templates/account Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -119,4 +119,16 @@ public function getCustomerForgotPasswordUrl()
119119 {
120120 return $ this ->getUrl ('customer/account/forgotpassword ' );
121121 }
122+
123+ /**
124+ * Get global account sharing is enabled or not
125+ *
126+ * @return string
127+ */
128+ public function isGlobalScopeEnabled ()
129+ {
130+ $ shareConfig = \Magento \Framework \App \ObjectManager::getInstance ()
131+ ->get (\Magento \Customer \Model \Config \Share::class);
132+ return $ shareConfig ->isGlobalScope ();
133+ }
122134}
Original file line number Diff line number Diff line change 2020 "*": {
2121 "Magento_Ui/js/block-loader": "<?= $ block ->escapeJs ($ block ->escapeUrl ($ block ->getViewFileUrl (
2222 'images/loader-1.gif '
23- ))) ?> ",
23+ ))) ?> "
24+ <?php if ($ block ->isGlobalScopeEnabled ()): ?>
25+ ,
2426 "Magento_Customer/js/customer-global-session-loader": {}
27+ <?php endif ; ?>
2528 }
2629 }
2730 </script>
You can’t perform that action at this time.
0 commit comments