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
8383 $ storeId = $ storeParam ;
8484 }
8585
86- if (!$ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )) {
86+ if (!$ this ->systemConfig ->isOrderSyncEnabled ($ storeId )) {
8787 $ response ['success ' ] = false ;
8888 $ response ['error_message ' ] = __ ('Enable order sync before pulling orders. ' );
8989 return $ response ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function __construct(
7979 */
8080 private function pullOrdersForStore (int $ storeId )
8181 {
82- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
82+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
8383 && $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
8484 return ;
8585 }
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function __construct(
7979 */
8080 private function pullRefundsAndCancellationsForStore (int $ storeId )
8181 {
82- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
82+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
8383 && $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
8484 return ;
8585 }
Original file line number Diff line number Diff line change @@ -67,11 +67,11 @@ class OrderCreateAfter implements ObserverInterface
6767 * @param Subscriber $subscriber
6868 */
6969 public function __construct (
70- SystemConfig $ systemConfig ,
71- LoggerInterface $ logger ,
72- FBEHelper $ fbeHelper ,
70+ SystemConfig $ systemConfig ,
71+ LoggerInterface $ logger ,
72+ FBEHelper $ fbeHelper ,
7373 SubscriptionManager $ subscriptionManager ,
74- Subscriber $ subscriber
74+ Subscriber $ subscriber
7575 ) {
7676 $ this ->systemConfig = $ systemConfig ;
7777 $ this ->logger = $ logger ;
@@ -94,7 +94,7 @@ public function execute(Observer $observer)
9494 $ facebookOrder = $ observer ->getEvent ()->getFacebookOrder ();
9595 $ storeId = $ order ->getStoreId ();
9696
97- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
97+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
9898 && $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
9999 return ;
100100 }
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function execute(Observer $observer)
6969 $ order = $ observer ->getEvent ()->getOrder ();
7070 $ storeId = $ order ->getStoreId ();
7171
72- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
72+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
7373 && $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
7474 return ;
7575 }
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ class MarkAsShipped implements ObserverInterface
5353 * @param Shipper $shipper
5454 */
5555 public function __construct (
56- SystemConfig $ systemConfig ,
56+ SystemConfig $ systemConfig ,
5757 LoggerInterface $ logger ,
58- Shipper $ shipper
58+ Shipper $ shipper
5959 ) {
6060 $ this ->systemConfig = $ systemConfig ;
6161 $ this ->logger = $ logger ;
@@ -88,7 +88,7 @@ public function execute(Observer $observer)
8888 return ;
8989 }
9090
91- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
91+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
9292 && $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
9393 return ;
9494 }
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public function execute(Observer $observer)
109109
110110 $ storeId = $ payment ->getOrder ()->getStoreId ();
111111
112- if (!($ this ->systemConfig ->isOrdersSyncEnabled ($ storeId )
112+ if (!($ this ->systemConfig ->isOrderSyncEnabled ($ storeId )
113113 && $ this ->systemConfig ->isOnsiteCheckoutEnabled ($ storeId ))) {
114114 return ;
115115 }
You can’t perform that action at this time.
0 commit comments