File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
app/code/Magento/Quote/Model/Observer/Backend Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ public function dispatch(Observer $observer)
58
58
try {
59
59
$ quote = $ this ->quoteRepository ->getForCustomer ($ customer ->getId ());
60
60
if ($ customer ->getGroupId () !== $ quote ->getCustomerGroupId ()) {
61
- /**
62
- * It is needed to process customer's quotes for all websites
63
- * if customer accounts are shared between all of them
64
- */
65
- /** @var $websites \Magento\Store\Model\Website[] */
66
- $ websites = $ this ->config ->isWebsiteScope ()
67
- ? [$ this ->storeManager ->getWebsite ($ customer ->getWebsiteId ())]
68
- : $ this ->storeManager ->getWebsites ();
61
+ /**
62
+ * It is needed to process customer's quotes for all websites
63
+ * if customer accounts are shared between all of them
64
+ */
65
+ /** @var $websites \Magento\Store\Model\Website[] */
66
+ $ websites = $ this ->config ->isWebsiteScope ()
67
+ ? [$ this ->storeManager ->getWebsite ($ customer ->getWebsiteId ())]
68
+ : $ this ->storeManager ->getWebsites ();
69
69
70
- foreach ($ websites as $ website ) {
70
+ foreach ($ websites as $ website ) {
71
71
$ quote ->setWebsite ($ website );
72
72
$ quote ->setCustomerGroupId ($ customer ->getGroupId ());
73
73
$ quote ->collectTotals ();
You can’t perform that action at this time.
0 commit comments