Projekt

Allgemein

Profil

GX-Abgewiesen #68442

Von Till Tepelmann vor fast 2 Jahren aktualisiert

ProductID wird über API als AddonValue exportiert, was keinen Zusammenhang mit den Items hat und damit nicht mehr so leicht identifiziert werden kann mit den eigentlichen Produkt in der Bestellung 

 Die ProductID sollte daher als eigenes Feld im "Items" Array ausgegeben werden. 


 Erwartetes Ergebnis: 
 ``` javascript 
 "items": [ 
         { 
             "id": 5, 
 "productId": 2, 
             "model": "12345-s-black", 
             "name": "Ein Artikel", 
             "quantity": 1, 
             "price": 11, 
             "finalPrice": 11, 
             "tax": 19, 
             "isTaxAllowed": true, 
             "discount": 0, 
             "shippingTimeInformation": "", 
             "checkoutInformation": "Checkout information goes here ...", 
             "quantityUnitName": "Liter", 
             "attributes": [], 
             "downloadInformation": [ 
                 { 
                     "filename": "Dokument.pdf", 
                     "maxDaysAllowed": 5, 
                     "countAvailable": 14 
                 } 
             ], 
             "gxCustomizerData": [], 
             "addonValues": { 
                 "productId": "2", 
                 "productType": "1", 
                 "quantityUnitId": "1" 
             } 
         } 
     ], 
 ``` 


 Tatsächliches Ergebnis: 
 ``` javascript 
 "items": [ 
         { 
             "id": 5, 
             "model": "12345-s-black", 
             "name": "Ein Artikel", 
             "quantity": 1, 
             "price": 11, 
             "finalPrice": 11, 
             "tax": 19, 
             "isTaxAllowed": true, 
             "discount": 0, 
             "shippingTimeInformation": "", 
             "checkoutInformation": "Checkout information goes here ...", 
             "quantityUnitName": "Liter", 
             "attributes": [], 
             "downloadInformation": [ 
                 { 
                     "filename": "Dokument.pdf", 
                     "maxDaysAllowed": 5, 
                     "countAvailable": 14 
                 } 
             ], 
             "gxCustomizerData": [], 
             "addonValues": { 
                 "productId": "2", 
                 "productType": "1", 
                 "quantityUnitId": "1" 
             } 
         } 
     ], 
 ``` 


 ----- 

 ProductID is exported via API as AddonValue, which has no connection with the items and thus can no longer be easily identified with the actual product in the order. 

 The ProductID should therefore be output as a separate field in the "Items" array. 


 Expected result: 
 ``` javascript 
 "items": [ 
         { 
             "id": 5, 
 "productId": 2, 
             "model": "12345-s-black", 
             }, "name": "one-item", 
             "quantity": 1, 
             "price": 11, 
             "finalPrice": 11, 
             "tax": 19, 
             "isTaxAllowed": true, 
             "discount": 0, 
             "shippingTimeInformation": "", 
             "checkoutInformation": "Checkout information goes here ...", 
             "quantityUnitName": "liter", 
             "attributes": [], 
             "downloadInformation": [ 
                 { 
                     "filename": "document.pdf", 
                     "maxDaysAllowed": 5, 
                     "countAvailable": 14 
                 } 
             ], 
             }, "gxCustomizerData": [], 
             "addonValues": { 
                 "productId": "2", 
                 "productType": "1", 
                 "quantityUnitId": "1" 
             } 
         } 
     ], 
 ``` 


 Actual result: 
 ``` javascript 
 "``items'': [ 
         { 
             }, "id", 
             "model": "12345-s-black", 
             }, "name": "one-item", 
             "quantity": 1, 
             "price": 11, 
             "finalPrice": 11, 
             "tax": 19, 
             "isTaxAllowed": true, 
             "discount": 0, 
             "shippingTimeInformation": "", 
             "checkoutInformation": "Checkout information goes here ...", 
             "quantityUnitName": "liter", 
             "attributes": [], 
             "downloadInformation": [ 
                 { 
                     "filename": "document.pdf", 
                     "maxDaysAllowed": 5, 
                     "countAvailable": 14 
                 } 
             ], 
             }, "gxCustomizerData": [], 
             "addonValues": { 
                 "productId": "2", 
                 "productType": "1", 
                 "quantityUnitId": "1" 
             } 
         } 
     ], 
 ``` 
  macos/deepLFree.translatedWithDeepL.text

Zurück