File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/code/Meta/Catalog/Controller/Adminhtml/Ajax Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ class ProductFeedUpload extends AbstractAjax
44
44
private $ systemConfig ;
45
45
46
46
/**
47
+ * Construct
48
+ *
47
49
* @param Context $context
48
50
* @param JsonFactory $resultJsonFactory
49
51
* @param FBEHelper $fbeHelper
@@ -64,6 +66,8 @@ public function __construct(
64
66
}
65
67
66
68
/**
69
+ * Execute for json
70
+ *
67
71
* @return array
68
72
* @throws NoSuchEntityException
69
73
*/
@@ -82,9 +86,11 @@ public function executeForJson()
82
86
$ storeName = $ this ->systemConfig ->getStoreManager ()->getStore ($ storeId )->getName ();
83
87
}
84
88
85
- if (!$ this ->systemConfig ->getAccessToken ()) {
89
+ if (!$ this ->systemConfig ->getAccessToken ($ storeId )) {
86
90
$ response ['success ' ] = false ;
87
- $ response ['message ' ] = __ (sprintf ('Before uploading products, set up the extension for \'%s \'. ' , $ storeName ));
91
+ $ response ['message ' ] = __ (
92
+ sprintf ('Before uploading products, set up the extension for \'%s \'. ' , $ storeName )
93
+ );
88
94
return $ response ;
89
95
}
90
96
You can’t perform that action at this time.
0 commit comments