Skip to content

Commit 00b9979

Browse files
authored
Merge pull request #156 from magento-commerce/feature/ado-165-catalog-is-not-uploaded-to-meta
Provide store id for get access token
2 parents 575f7b3 + 57edf8c commit 00b9979

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/code/Meta/Catalog/Controller/Adminhtml/Ajax/ProductFeedUpload.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class ProductFeedUpload extends AbstractAjax
4444
private $systemConfig;
4545

4646
/**
47+
* Construct
48+
*
4749
* @param Context $context
4850
* @param JsonFactory $resultJsonFactory
4951
* @param FBEHelper $fbeHelper
@@ -64,6 +66,8 @@ public function __construct(
6466
}
6567

6668
/**
69+
* Execute for json
70+
*
6771
* @return array
6872
* @throws NoSuchEntityException
6973
*/
@@ -82,9 +86,11 @@ public function executeForJson()
8286
$storeName = $this->systemConfig->getStoreManager()->getStore($storeId)->getName();
8387
}
8488

85-
if (!$this->systemConfig->getAccessToken()) {
89+
if (!$this->systemConfig->getAccessToken($storeId)) {
8690
$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+
);
8894
return $response;
8995
}
9096

0 commit comments

Comments
 (0)