new importfiles
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user