From 0848148b9e169d3518e47e18fd59594ebab533f7 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 15 Dec 2022 10:40:10 +0000 Subject: [PATCH] shopimporter_shopware6 removed v2 from URL to allow shopware 6.4 api --- www/pages/shopimporter_shopware6.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/pages/shopimporter_shopware6.php b/www/pages/shopimporter_shopware6.php index 7abc8e8e..87f8ed0c 100644 --- a/www/pages/shopimporter_shopware6.php +++ b/www/pages/shopimporter_shopware6.php @@ -178,7 +178,7 @@ class Shopimporter_Shopware6 extends ShopimporterBase { $accessToken = $this->shopwareToken(); $url = $this->ShopUrl; - $url .= 'v2/' . $endpoint; + $url .= $endpoint; $ch = curl_init(); $headerInformation[] = 'Content-Type:application/json'; @@ -1430,7 +1430,7 @@ class Shopimporter_Shopware6 extends ShopimporterBase ]; $this->shopwareRequest('POST', '_action/sync?_response=true', $mediaAssociationData); - $url = $this->ShopUrl . 'v2/_action/media/' . $mediaId . '/upload?extension=' . $extension . '&fileName=' . $filename; + $url = $this->ShopUrl . '_action/media/' . $mediaId . '/upload?extension=' . $extension . '&fileName=' . $filename; $ch = curl_init(); $setHeaders = [ 'Content-Type:image/' . $extension, @@ -3480,7 +3480,7 @@ class Shopimporter_Shopware6 extends ShopimporterBase $documentId = $documentData['documentId']; $accessToken = $this->shopwareToken(); - $url = $this->ShopUrl . 'v2/_action/document/' . $documentId . '/upload?_response=true&extension=pdf&fileName=' . $documentNumber; + $url = $this->ShopUrl . '_action/document/' . $documentId . '/upload?_response=true&extension=pdf&fileName=' . $documentNumber; $ch = curl_init(); $setHeaders = [