File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2038,11 +2038,11 @@ protected function _validate()
2038
2038
protected function _getNewCustomerEmail ()
2039
2039
{
2040
2040
$ email = $ this ->getData ('account/email ' );
2041
-
2041
+
2042
2042
if ($ email || $ this ->isEmailRequired ()) {
2043
2043
return $ email ;
2044
2044
}
2045
-
2045
+
2046
2046
return $ this ->generateEmail ();
2047
2047
}
2048
2048
@@ -2055,7 +2055,8 @@ private function isEmailRequired(): bool
2055
2055
{
2056
2056
return (bool )$ this ->_scopeConfig ->getValue (
2057
2057
self ::XML_PATH_EMAIL_REQUIRED_CREATE_ORDER ,
2058
- \Magento \Store \Model \ScopeInterface::SCOPE_STORE
2058
+ \Magento \Store \Model \ScopeInterface::SCOPE_STORE ,
2059
+ $ this ->_session ->getStore ()->getId ()
2059
2060
);
2060
2061
}
2061
2062
@@ -2075,7 +2076,7 @@ private function generateEmail(): string
2075
2076
$ account = $ this ->getData ('account ' );
2076
2077
$ account ['email ' ] = $ email ;
2077
2078
$ this ->setData ('account ' , $ account );
2078
-
2079
+
2079
2080
return $ email ;
2080
2081
}
2081
2082
Original file line number Diff line number Diff line change 113
113
</dev >
114
114
<customer >
115
115
<create_account >
116
- <email_required_create_order >0 </email_required_create_order >
116
+ <email_required_create_order >1 </email_required_create_order >
117
117
</create_account >
118
118
</customer >
119
119
</default >
You can’t perform that action at this time.
0 commit comments