new importfiles

This commit is contained in:
Marko
2023-02-24 09:20:07 +01:00
parent f0aa2ac5d5
commit 67fff48967
9 changed files with 274 additions and 187 deletions

View File

@@ -38,8 +38,6 @@ class Shopware
$grantType = new ClientCredentialsGrantType($_ENV['SHOPWARE_API_ID'], $_ENV['SHOPWARE_API_KEY']);
$adminClient = new AdminAuthenticator($grantType, $_ENV['SHOPWARE_API_URL']);
//dump([$grantType, $adminClient,$_ENV['SHOPWARE_API_ID'], $_ENV['SHOPWARE_API_KEY']]);
return $adminClient->fetchAccessToken();
} catch (\Exception $e) {
dump($e->getMessage());
@@ -92,7 +90,7 @@ class Shopware
$productRepository = RepositoryFactory::create(ProductDefinition::ENTITY_NAME);
dump($prod->getShopwareId());
#dump($prod->getShopwareId());
try {
$productRepository->update([