File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
Controller/Adminhtml/Ajax Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function executeForJson(): array
83
83
$ storeId = $ storeParam ;
84
84
}
85
85
86
- if (!$ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )) {
86
+ if (!$ this ->systemConfig ->isOrderSyncEnabled ($ storeId )) {
87
87
$ response ['success ' ] = false ;
88
88
$ response ['error_message ' ] = __ ('Enable order sync before pulling orders. ' );
89
89
return $ response ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function __construct(
79
79
*/
80
80
private function pullOrdersForStore (int $ storeId )
81
81
{
82
- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
82
+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
83
83
&& $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
84
84
return ;
85
85
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function __construct(
79
79
*/
80
80
private function pullRefundsAndCancellationsForStore (int $ storeId )
81
81
{
82
- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
82
+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
83
83
&& $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
84
84
return ;
85
85
}
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ class OrderCreateAfter implements ObserverInterface
67
67
* @param Subscriber $subscriber
68
68
*/
69
69
public function __construct (
70
- SystemConfig $ systemConfig ,
71
- LoggerInterface $ logger ,
72
- FBEHelper $ fbeHelper ,
70
+ SystemConfig $ systemConfig ,
71
+ LoggerInterface $ logger ,
72
+ FBEHelper $ fbeHelper ,
73
73
SubscriptionManager $ subscriptionManager ,
74
- Subscriber $ subscriber
74
+ Subscriber $ subscriber
75
75
) {
76
76
$ this ->systemConfig = $ systemConfig ;
77
77
$ this ->logger = $ logger ;
@@ -94,7 +94,7 @@ public function execute(Observer $observer)
94
94
$ facebookOrder = $ observer ->getEvent ()->getFacebookOrder ();
95
95
$ storeId = $ order ->getStoreId ();
96
96
97
- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
97
+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
98
98
&& $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
99
99
return ;
100
100
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function execute(Observer $observer)
69
69
$ order = $ observer ->getEvent ()->getOrder ();
70
70
$ storeId = $ order ->getStoreId ();
71
71
72
- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
72
+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
73
73
&& $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
74
74
return ;
75
75
}
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ class MarkAsShipped implements ObserverInterface
53
53
* @param Shipper $shipper
54
54
*/
55
55
public function __construct (
56
- SystemConfig $ systemConfig ,
56
+ SystemConfig $ systemConfig ,
57
57
LoggerInterface $ logger ,
58
- Shipper $ shipper
58
+ Shipper $ shipper
59
59
) {
60
60
$ this ->systemConfig = $ systemConfig ;
61
61
$ this ->logger = $ logger ;
@@ -88,7 +88,7 @@ public function execute(Observer $observer)
88
88
return ;
89
89
}
90
90
91
- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
91
+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
92
92
&& $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
93
93
return ;
94
94
}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function execute(Observer $observer)
109
109
110
110
$ storeId = $ payment ->getOrder ()->getStoreId ();
111
111
112
- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
112
+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
113
113
&& $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
114
114
return ;
115
115
}
You can’t perform that action at this time.
0 commit comments