GX-Abgewiesen #68442
geschlossenProductID wird über API als AddonValue exportiert, was keinen Zusammenhang mit den Items hat und damit nicht mehr so leicht identifiziert werden kann
0%
Beschreibung
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:
"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:
"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:
"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:
"``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"
}
}
],
Checkliste 0/0
Von Moritz Bunjes vor fast 3 Jahren aktualisiert
- Tracker wurde von GX-Bug zu GX-Abgewiesen geändert
- Status wurde von Feedback zu Abgewiesen geändert
- Betroffene Versionen
4.3.3.0, 4.3.3.1, 4.4.0.0 beta1wurde gelöscht
Ein Verschieben der productId ist wegen der Abwärtskompatibilität nicht möglich. Da keine Redundanz gewünscht ist, wird es keine Änderung geben.