Neu Custom Products

Gambio

Neues Mitglied
3. Februar 2020
7
0
Hallo,
ich teste gerade Shopware mit Costom Products aber so ganz läuft.

Laut Changelog wurde das implementiert.

Das ist der Fehler:


Fehler:
Exception: Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned
Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned
Artikel-Senden-Fehler: Bitte beachten Sie, dass zur Fehler-Diagnose ebenfalls die Log-Datei des Servers und das Abgleich-Log der JTL-Wawi notwendig sind!
Exception bei product.push: Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned

Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned

Response: {"result":null,"error":{"code":0,"message":"Return value of SwagCustomProducts\\Models\\Template::getArticles() must be of the type array, object returned","data":"Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\\Models\\Template::getArticles() must be of the type array, object returned' in \/var\/www\/vhosts\/google.de\/google.de\/custom\/plugins\/SwagCustomProducts\/Models\/Template.php:239"},"jtlrpc":"2.0","id":"unknown"}
Exception bei product.push: Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned

Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned

Response: {"result":null,"error":{"code":0,"message":"Return value of SwagCustomProducts\\Models\\Template::getArticles() must be of the type array, object returned","data":"Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\\Models\\Template::getArticles() must be of the type array, object returned' in \/var\/www\/vhosts\/google.de\/google.de\/custom\/plugins\/SwagCustomProducts\/Models\/Template.php:239"},"jtlrpc":"2.0","id":"unknown"}
bei jtlCore.ControllerClasses. Connector.Abgleich.Connector.JwZb4hlASCY(String , Object , Boolean , NetworkCredential )
bei jtlCore.ControllerClasses.Connector.Abgleich.Connector.GjQb4TvWAb2(String , Object , Boolean , NetworkCredential )
bei jtlCore.ControllerClasses.Connector.Abgleich.Connector.JwZb4hlASCY(String , Object , Boolean , NetworkCredential )




bei jtlCore.ControllerClasses.Connector.Abgleich.Connector.JwZb4hlASCY(String , Object , Boolean , NetworkCredential )
 

Immanuel

Gesperrter Benutzer
24. August 2016
1.542
329
Hallo @Gambio,

das klingt nach einem Bug im Custom Products Plugin. Bitte schicke mir die dazu passenden Connector Logs per PM zu. Nicht vergessen das Developer Logging vorher zu aktivieren.

Folgendes wäre auch wichtig zu wissen:
- Welche PHP Version kommt zum Einsatz?
- Welche Version des Custom Products Plugins kommt zum Einsatz?
- Welche Connector Version kommt zum Einsatz?
 

Gambio

Neues Mitglied
3. Februar 2020
7
0
Hallo,

das plugin funktioniert also ohne Problem über Shopware , nur über den Connector kann ich das über Attribut nicht steuern.

Bestellinformationen von Custom Products fehlen auch.


Danke!!

Shopware 5.6.4
Connector 2.2.4.4
Custom Products Plugin 4.6.4
PHP Version 7.3.13 oder 7.2.26

global.ERROR: Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned' in /var/www/vhosts/google.de/custom.google.de/custom/plugins/SwagCustomProducts/Models/Template.php:239 [] [] [2020-02-07 13:12:56] global.ERROR: Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned' in /var/www/vhosts/google.de/custom.google.de/custom/plugins/SwagCustomProducts/Models/Template.php:239 [] [] [2020-02-07 13:13:03] global.ERROR: Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned' in /var/www/vhosts/google.de/custom.google.de/custom/plugins/SwagCustomProducts/Models/Template.php:239 [] [] [2020-02-07 13:13:10] global.ERROR: Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\Models\Template::getArticles() must be of the type array, object returned' in /var/www/vhosts/google.de/custom.google.de/custom/plugins/SwagCustomProducts/Models/Template.php:239 [] []

A3","recommendedRetailPrice":0,"note":"","isActive":true,"minimumOrderQuantity":0,"ean":"","isTopProduct":false,"shippingWeight":0.03,"isNewProduct":false,"isSerialNumber":false,"isDivisible":false,"considerStock":true,"permitNegativeStock":true,"minimumQuantity":0,"purchasePrice":0,"considerVariationStock":false,"modified":"2020-02-04T20:33:14Z","considerBasePrice":false,"basePriceDivisor":0,"keywords":"","taric":"","originCountry":"","creationDate":"2019-12-31T09:50:47Z","availableFrom":null,"sort":1,"shippingClassId":["",1],"productWeight":0.03,"manufacturerNumber":"","serialNumber":"","isbn":"","unNumber":"","hazardIdNumber":"","asin":"PO10005-A3","masterProductId":["",81],"isMasterProduct":false,"packagingQuantity":0,"partsListId":["",0],"upc":"","productTypeId":["",0],"epid":"","isBestBefore":false,"isBatch":false,"manufacturerId":["",27],"measurementUnitId":["",0],"measurementQuantity":0,"basePriceUnitId":["",0],"basePriceQuantity":0,"width":0,"height":0,"length":0,"unitId":["",2],"nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"newReleaseDate":"2019-12-31T09:50:47Z"},{"entityType":"Product","categories":[{"id":["",37203],"productId":["",11494],"categoryId":["",56]}],"configGroups":[],"fileDownloads":[],"i18ns":[{"measurementUnitName":null,"unitName":"Stk","deliveryStatus":"ca. 1-3 Tage","productId":["",11494],"languageISO":"ger","name":"Poster - Mirrors Don't Lie A3","description":"<strong>Mirrors Don&#39;t Lie And Lucky For You They Don&#39;t Laugh<\/strong><br \/>\r\n<br \/>\r\nBeschreibung:<br \/>\r\n- Gr&ouml;&szlig;e zwischen DIN A3 und DIN A4 w&auml;hlbar<br \/>\r\n- Hochwertiges 250 g\/m&sup2; Papier<br \/>\r\n<br \/>\r\nHinweis:&nbsp;Die Lieferung erfolgt ohne Rahmen.","shortDescription":"","urlPath":"poster-mirrors-dont-lie","metaDescription":"Poster f\u00fcr's Badezimmer \/ WC - Mirrors Don't Lie - Wandbilder von was das","titleTag":"Poster - Mirrors Don't Lie","metaKeywords":"poster,bild,wandbild,wandbilder,deko,badezimmer,bad,wc,toilette,g\u00e4ste,g\u00e4ste-wc,a3,a4,din,dick,spiegel,spiegelbild,spiegelverkehrt"}],"invisibilities":[],"mediaFiles":[],"prices":[{"customerId":["",0],"items":[{"productPriceId":["",0],"quantity":0,"netPrice":9.20168067}],"customerGroupId":["1",1],"id":["",0],"productId":["",11494]},{"customerId":["",0],"items":[{"productPriceId":["",0],"quantity":0,"netPrice":9.20168067}],"customerGroupId":["2",2],"id":["",0],"productId":["",11494]},{"customerId":["",0],"items":[{"productPriceId":["",0],"quantity":0,"netPrice":9.20168067}],"customerGroupId":["",0],"id":["",0],"productId":["",11494]}],"partsLists":[],"attributes":[],"specialPrices":[],"specifics":[],"warehouseInfo":[],"variations":[{"type":"select","i18ns":[{"productVariationId":["",367],"languageISO":"ger","name":"Gr\u00f6\u00dfe"}],"invisibilities":[],"values":[{"extraCharges":[{"customerGroupId":["",0],"productVariationValueId":["",3268],"extraChargeNet":0}],"i18ns":[{"productVariationValueId":["",3268],"languageISO":"ger","name":"DIN A3"}],"invisibilities":[],"id":["",3268],"productVariationId":["",367],"extraWeight":0,"sku":"","sort":7,"stockLevel":0,"ean":""}],"id":["",367],"productId":["",195],"sort":0}],"checksums":[{"type":1,"host":"3d5d0c1a6b9cf351685d856d13dae5594b42a527","endpoint":"","hasChanged":false,"foreignKey":["",11494]}],"varCombinations":[],"customerGroupPackagingQuantities":[],"stockLevel":{"productId":["",11494],"stockLevel":10000},"supplierStockLevel":0,"vat":19,"basePriceFactor":0,"supplierDeliveryTime":0,"measurementUnitCode":"","basePriceUnitCode":"","basePriceUnitName":"","minBestBeforeDate":null,"manufacturer":{"entityType":"Manufacturer","i18ns":[],"id":["",27],"name":"was das","websiteUrl":"","sort":0,"urlPath":""},"id":["",11494],"sku":"PO10024-A3","recommendedRetailPrice":0,"note":"","isActive":true,"minimumOrderQuantity":0,"ean":"","isTopProduct":false,"shippingWeight":0.03,"isNewProduct":false,"isSerialNumber":false,"isDivisible":false,"considerStock":true,"permitNegativeStock":true,"minimumQuantity":0,"purchasePrice":0,"considerVariationStock":false,"modified":"2020-02-04T20:33:16Z","considerBasePrice":false,"basePriceDivisor":0,"keywords":"","taric":"","originCountry":"","creationDate":"2019-12-31T10:04:00Z","availableFrom":null,"sort":1,"shippingClassId":["",1],"productWeight":0.03,"manufacturerNumber":"","serialNumber":"","isbn":"","unNumber":"","hazardIdNumber":"","asin":"PO10024-A3","masterProductId":["",195],"isMasterProduct":false,"packagingQuantity":0,"partsListId":["",0],"upc":"","productTypeId":["",0],"epid":"","isBestBefore":false,"isBatch":false,"manufacturerId":["",27],"measurementUnitId":["",0],"measurementQuantity":0,"basePriceUnitId":["",0],"basePriceQuantity":0,"width":0,"height":0,"length":0,"unitId":["",2],"nextAvailableInflowDate":null,"nextAvailableInflowQuantity":0,"newReleaseDate":"2019-12-31T10:04:00Z"}] [] [] [2020-02-07 13:13:10] rpc.DEBUG: {"result":null,"error":{"code":0,"message":"Return value of SwagCustomProducts\\Models\\Template::getArticles() must be of the type array, object returned","data":"Exception 'TypeError' (Code: 0) with message 'Return value of SwagCustomProducts\\Models\\Template::getArticles() must be of the type array, object returned' in \/var\/www\/vhosts\/google.de\/custom.google.de\/custom\/plugins\/SwagCustomProducts\/Models\/Template.php:239"},"jtlrpc":"2.0","id":"unknown"} [] []"]
 

Immanuel

Gesperrter Benutzer
24. August 2016
1.542
329
"SwagCustomProducts\Models\Template::getArticles()" sollte eine Doctrine ArrayCollection zurückgeben (was auch geschieht), es wird aber ein Array als Rückgabewert erwartet. Klingt wie schon geschrieben stark nach einem Bug im Custom Products Plugin (Der Rückgabe Typ Array ist an dieser Stelle falsch).
 

Gambio

Neues Mitglied
3. Februar 2020
7
0
Hallo,

dann werde ich Shopware kontaktieren müssen.

kannst mir noch sagen, wie es mit den Bestellinformationen aussieht? Die werde ja auch nicht importiert.

Dank!
 

Gambio

Neues Mitglied
3. Februar 2020
7
0
Hallo Immanuel,

leider nicht, da fehlt der Custom Text, siehe Screen.

MFG
 

Anhänge

  • custom.png
    custom.png
    178 KB · Aufrufe: 25

benjamin.bergau

Aktives Mitglied
22. August 2019
14
0
Und wo ausgegeben?
Ich habe bei Custom products ein Eingabefeld, wo der Kunde eine individuelle Höhe eintragen kann.

Bei JTL zeigt er mir die Artikelnummer, Menge, Bezeichnung und Preis an. Aber nicht die eingetragene Höhe.
 

kornwestheimer

Sehr aktives Mitglied
8. September 2016
195
25
Hallo,

wir haben auch das Problem das die Daten die von Shopware / Custom Products kommen sollen nicht in unsere JTL übertragen werden. Wir haben schon einige Bestellungen in unserem Shop die wir bisher alle immer per Hand nachschauen müssen.

Gibt es hier zu irgend eine Lösung?
Ohne selber sich einzuloggen und die Bestellung zu kontrollieren und die Daten per Copy & Paste zu übertragen?
 

kornwestheimer

Sehr aktives Mitglied
8. September 2016
195
25

kornwestheimer

Sehr aktives Mitglied
8. September 2016
195
25
Danke es funktioniert. Über SQL holen wir uns nun die Daten in die Druckvorlage rein.

Code:
Cond(IsNullOrEmpty(JTL_DirectQuery("Select cHinweis FROM tbestellpos Where kBestellPos = '"+ToString$(InvoicePosition.InternalId)+"' ")),"",JTL_DirectQuery("Select cHinweis FROM tbestellpos Where kBestellPos = '"+ToString$(InvoicePosition.InternalId)+"'"))