sArticle = NULL !?

Hi, irgendwie komisch. Geht um kleines Plugin. $event = $this-\>createEvent( 'Enlight\_Controller\_Action\_PostDispatch\_Frontend\_Checkout', 'onPostDispatchCheckout' ); $this-\>subscribeEvent($event); public static function onPostDispatchCheckout(Enlight\_Event\_EventArgs $args) { $plugin = Shopware()-\>Plugins()-\>Frontend()-\>FULLTImeUploader(); $view = $args-\>getSubject()-\>View(); $config = $plugin-\>Config(); $article = $view-\>sArticle; Shopware()-\>Log()-\>log($article ,Zend\_Log::INFO); } Kann mir jemand sagen warum die Variable $article NULL ist? Wenn ich dies direkt in der Artikeldarstellung ausführe erhalte ich auch alle Daten. Warum ist das im Warenkorb nicht so? Ich möchte im Warenkorb die Artikel Attribute abfragen. Gruß @all

Im Warenkorb kann es ja viele Artikel geben, was soll dann in der Variable gespeichert werden? Du solltest die Variable $sBasket benutzen (genauer gesagt $sBasket['content])

Danke für die Antwort. Ich glaube ich bin auch ganz falsch an die Sache gegangen. Ich hab das jetzt noch einmal neu aufgebaut. Dies sieht wie folgt aus. $plugin = Shopware()-\>Plugins()-\>Frontend()-\>FULLTImeUploader(); $view = $args-\>getSubject()-\>View(); $config = $plugin-\>Config(); $view-\>file\_type = $config-\>file\_type; $view-\>file\_size = $config-\>file\_size; $view-\>uploadPath = $config-\>uploadPath; $view-\>debugMode = $config-\>debugMode; $tempArticle = Shopware()-\>Modules()-\>Articles(); $tempBasket = Shopware()-\>Modules()-\>Basket(); $getBasket = $tempBasket-\>sGetBasket(); foreach ($getBasket["content"] as &$basketItem) { $getArticle = $tempArticle-\>sGetArticleById($basketItem['id']); $showUpload = $getArticle["attr" . $config-\>attributid]; $uploadFields = $getArticle["attr" . $config-\>multiUploadID]; } Er soll mir die Atributte die über das Plugin definiert sind bei mir attr4 und attr5 aus dem angezeigten Artikel im Warenkorb auslesen. Leider erhalte ich mit dem Code oben keine Werte von $showUpload und $uploadFields.

Dann sollte man prüfen, ob in $config->attributid und $config->multiUploadID die richtigen Werte stehen, sowie was in der Variable $getArticle steht. Und eine Frage nebenbei: wozu so viele unnötige Variable? Z.B. warum $plugin = Shopware()-\>Plugins()-\>Frontend()-\>FULLTImeUploader(); $config = $plugin und nicht $config = Shopware()-\>Plugins()-\>Frontend()-\>FULLTImeUploader()-\>Config();

Mh… jo das hab ich auch gerade geprüft. Irgendwie stimmt die Rückgabe vom Warenkorb nicht. foreach ($tempBasket["content"] as &$basketItem) { $view-\>getArticle = $tempArticle-\>sGetArticleById($basketItem['id']); Shopware()-\>Log()-\>log($tempArticle-\>sGetArticleById($basketItem['id']),Zend\_Log::INFO); } Zurück erhalte ich aber folgendes was mir sehr komisch aussieht. Dazu voher gesagt ich Warenkorb ist Artikelnummer SW10021 / Bezeichnung ESSLACK. Somit stimmt die Rückgabe da nicht. [code]array( [‚articleID‘] => 15 [‚articleDetailsID‘] => 21 [‚ordernumber‘] => ‚SW2011‘ [‚datum‘] => ‚2009-09-21‘ [‚additionaltext‘] => [‚shippingtime‘] => 0 [‚shippingfree‘] => 0 [‚instock‘] => 0 [‚minpurchase‘] => 1 [‚notification‘] => 0 [‚purchasesteps‘] => 1 [‚maxpurchase‘] => 100 [‚referenceunit‘] => 0 [‚packunit‘] => [‚weight‘] => 0 [‚laststock‘] => 0 [‚unitID‘] => 0 [‚template‘] => [‚pricegroupID‘] => 1 [‚pricegroupActive‘] => 0 [‚releasedate‘] => ‚2009-09-21‘ [‚mode‘] => 0 [‚description‘] => [‚keywords‘] => [‚description_long‘] => ’

Osus ut exstasis Arma eu sto se Simulatio en volubiliter, sed Crocinus mos Absit iam Cunctator transfero. Dux Vehiculum, se vicis Incol se nex incontinencia, exigo era Palus sum iam magnificabiliter loci, sal incurro, dux necessarius Negotium os orbis, era alatus ineo, vel loquor, hic sed, Viva tam. Ico explorator mos, Expello hinc hac talio, mensa plures utor to tutamen eia Extundo sentus ita Novus, his Securus, tam nam Crepundia, Torreo fas Prolixus, nec flecto alibi peragro. Nam Deficio contradictio ops Posco laeto aeger Freno ruo, votum Spero ergo Penetro, Pulmo pro, ops infra Vacuus ususfructus qui Perturpis, neco Illas his Libro. Vel emo mons liberalis longe vir ingredior, sui cautor Concito, far, Comitatus mus Ambiguus palma via Degenero pio ala Imputo. Pudeo teneo triticeus, iam conjuratio, regno re oro Aveho curiositas cicuta, dis Occulte, deprecativus typus caterva pauci, his re supermitto. Ruo in divortium ita sesquimellesimus Oppono plus celo sceptrum, res ingustatus hi An.

’ [‚supplierName‘] => ‚Helly Hansen‘ [‚supplierImg‘] => ‚c87c6e53384444d3e1013c3fe0f4bc86.jpg‘ [‚supplierID‘] => 4 [‚articleName‘] => ‚Nova Jacket‘ [‚price‘] => ‚119,00‘ [‚sales‘] => 0 [‚pseudoprice‘] => 0 [‚pricegroup‘] => ‚EK‘ [‚tax‘] => 19 [‚attr1‘] => 0 [‚attr2‘] => 0 [‚attr3‘] => 0 [‚attr4‘] => [‚attr5‘] => [‚attr6‘] => [‚attr7‘] => [‚attr8‘] => 0 [‚attr9‘] => [‚attr10‘] => [‚attr11‘] => [‚attr12‘] => [‚attr13‘] => 0 [‚attr14‘] => [‚attr15‘] => [‚attr16‘] => [‚attr17‘] => ‚0000-00-00‘ [‚attr18‘] => [‚attr19‘] => [‚attr20‘] => [‚filtergroupID‘] => 0 [‚crossbundlelook‘] => FALSE [‚sLinks‘] => array( [0] => array( [‚supplierSearch‘] => TRUE [‚description‘] => ‚Helly Hansen‘ [‚link‘] => ‚shopware.php?sViewport=search&sSearch=4&sSearchMode=supplier&sSearchText=Helly+Hansen‘ [‚target‘] => ‚_parent‘ ) ) [‚categoryID‘] => 1144 [‚sRelatedArticles‘] => [‚sSimilarArticles‘] => array( [0] => array( [‚articleID‘] => 14 [‚articleDetailsID‘] => 17 [‚ordernumber‘] => ‚SW2006‘ [‚datum‘] => ‚2009-09-21‘ [‚sales‘] => 1 [‚highlight‘] => 0 [‚description‘] => [‚description_long‘] => ‚Osus ut exstasis Arma eu sto se Simulatio en volubiliter, sed Crocinus mos Absit iam Cunctator transfero. Dux Vehiculum, se vicis Incol se nex incontinencia, exigo era Palus sum iam magnificabiliter loci, sal incurro, dux necessarius Negotium os orbis, era alatus ineo, vel loquor, hic sed, Viva tam. Ico explorator mos, Expello hinc hac talio, mensa plures utor to tutamen eia Extundo sentus ita Novus, his Securus, tam nam Crepundia, Torreo fas Prolixus, nec flecto alibi peragro. Nam Deficio contradictio ops Posco laeto aeger Freno ruo, votum Spero ergo Penetro, Pulmo pro, ops infra Vacuus ususfructus qui Perturpis, neco Illas his Libro. Vel emo mons liberalis longe vir ingredior, sui cautor Concito, far, Comitatus mus Ambiguus palma via Degenero pio ala Imputo. Pudeo teneo triticeus, iam conjuratio, regno re oro Aveho curiositas cicuta, dis Occulte, deprecativus typus caterva pauci, his re supermitto. Ruo in divortium ita sesquimellesimus Oppono plus celo sceptrum, res ingustatus hi An.‘ [‚supplierName‘] => ‚Helly Hansen‘ [‚supplierImg‘] => ‚c87c6e53384444d3e1013c3fe0f4bc86.jpg‘ [‚articleName‘] => ‚Barrier Softshell‘ [‚price‘] => ‚119,00‘ [‚pseudoprice‘] => 0 [‚tax‘] => 19 [‚attr1‘] => 0 [‚attr2‘] => 0 [‚attr3‘] => 0 [‚attr4‘] => [‚attr5‘] => [‚attr6‘] => [‚attr7‘] => [‚attr8‘] => 0 [‚attr9‘] => [‚attr10‘] => [‚attr11‘] => [‚attr12‘] => [‚attr13‘] => 0 [‚attr14‘] => [‚attr15‘] => [‚attr16‘] => [‚attr17‘] => ‚0000-00-00‘ [‚attr18‘] => [‚attr19‘] => [‚attr20‘] => [‚instock‘] => ‚-1‘ [‚weight‘] => 0 [‚shippingtime‘] => 0 [‚pricegroup‘] => ‚EK‘ [‚pricegroupID‘] => 1 [‚pricegroupActive‘] => 0 [‚filtergroupID‘] => 0 [‚purchaseunit‘] => 0 [‚referenceunit‘] => 0 [‚unitID‘] => 0 [‚laststock‘] => 0 [‚additionaltext‘] => NULL [‚sConfigurator‘] => 0 [‚esd‘] => 0 [‚sVoteAverange‘] => array( [‚averange‘] => 0 [‚count‘] => 0 ) [‚newArticle‘] => 0 [‚topseller‘] => 0 [‚sUpcoming‘] => 0 [‚sReleasedate‘] => [‚liveshopping‘] => NULL [‚sVariantArticle‘] => 1 [‚priceStartingFrom‘] => 0 [‚image‘] => array( [‚src‘] => array( [‚original‘] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f.jpg‘ [0] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f_0.jpg‘ [1] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f_1.jpg‘ [2] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f_2.jpg‘ [3] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f_3.jpg‘ [4] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f_4.jpg‘ [5] => ‚http://ftdevshopware.de/images/articles/14_0ea72b18b478503812587ab3566ac76f_5.jpg‘ ) [‚res‘] => array( [‚original‘] => array( [‚width‘] => 4000 [‚height‘] => 4000 ) [‚description‘] => [‚relations‘] => ) [‚position‘] => 0 [‚extension‘] => ‚jpg‘ [‚main‘] => 1 ) [‚linkBasket‘] => ‚shopware.php?sViewport=basket&sAdd=SW2006‘ [‚linkDetails‘] => ‚shopware.php?sViewport=detail&sArticle=14‘ [‚mode‘] => ‚fix‘ ) [1] => array( [‚articleID‘] => 25 [‚articleDetailsID‘] => 37 [‚ordernumber‘] => ‚SW2021‘ [‚datum‘] => ‚2009-09-21‘ [‚sales‘] => 0 [‚highlight‘] => 0 [‚description‘] => [‚description_long‘] => ‚Osus ut exstasis Arma eu sto se Simulatio en volubiliter, sed Crocinus mos Absit iam Cunctator transfero. Dux Vehiculum, se vicis Incol se nex incontinencia, exigo era Palus sum iam magnificabiliter loci, sal incurro, dux necessarius Negotium os orbis, era alatus ineo, vel loquor, hic sed, Viva tam. Ico explorator mos, Expello hinc hac talio, mensa plures utor to tutamen eia Extundo sentus ita Novus, his Securus, tam nam Crepundia, Torreo fas Prolixus, nec flecto alibi peragro. Nam Deficio contradictio ops Posco laeto aeger Freno ruo, votum Spero ergo Penetro, Pulmo pro, ops infra Vacuus ususfructus qui Perturpis, neco Illas his Libro. Vel emo mons liberalis longe vir ingredior, sui cautor Concito, far, Comitatus mus Ambiguus palma via Degenero pio ala Imputo. Pudeo teneo triticeus, iam conjuratio, regno re oro Aveho curiositas cicuta, dis Occulte, deprecativus typus caterva pauci, his re supermitto. Ruo in divortium ita sesquimellesimus Oppono plus celo sceptrum, res ingustatus hi An.‘ [‚supplierName‘] => ‚Lorem‘ [‚supplierImg‘] => ‚6d2e5ccaa63a13a2524cbf170a508b5f.jpg‘ [‚articleName‘] => ‚Fliegerjacke‘ [‚price‘] => ‚249,00‘ [‚pseudoprice‘] => 0 [‚tax‘] => 19 [‚attr1‘] => 0 [‚attr2‘] => 0 [‚attr3‘] => 0 [‚attr4‘] => [‚attr5‘] => [‚attr6‘] => [‚attr7‘] => [‚attr8‘] => 0 [‚attr9‘] => [‚attr10‘] => [‚attr11‘] => [‚attr12‘] => [‚attr13‘] => 0 [‚attr14‘] => [‚attr15‘] => [‚attr16‘] => [‚attr17‘] => ‚0000-00-00‘ [‚attr18‘] => [‚attr19‘] => [‚attr20‘] => [‚instock‘] => 0 [‚weight‘] => 0 [‚shippingtime‘] => 0 [‚pricegroup‘] => ‚EK‘ [‚pricegroupID‘] => 1 [‚pricegroupActive‘] => 0 [‚filtergroupID‘] => 0 [‚purchaseunit‘] => 0 [‚referenceunit‘] => 0 [‚unitID‘] => 0 [‚laststock‘] => 0 [‚additionaltext‘] => NULL [‚sConfigurator‘] => 0 [‚esd‘] => 0 [‚sVoteAverange‘] => array( [‚averange‘] => 0 [‚count‘] => 0 ) [‚newArticle‘] => 0 [‚topseller‘] => 0 [‚sUpcoming‘] => 0 [‚sReleasedate‘] => [‚liveshopping‘] => NULL [‚sVariantArticle‘] => 1 [‚priceStartingFrom‘] => ‚249,00‘ [‚image‘] => array( [‚src‘] => array( [‚original‘] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d.jpg‘ [0] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d_0.jpg‘ [1] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d_1.jpg‘ [2] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d_2.jpg‘ [3] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d_3.jpg‘ [4] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d_4.jpg‘ [5] => ‚http://ftdevshopware.de/images/articles/25_192e95b376d4d8ec7b2e94826f22486d_5.jpg‘ ) [‚res‘] => array( [‚original‘] => array( [‚width‘] => 634 [‚height‘] => 757 ) [‚description‘] => [‚relations‘] => ) [‚position‘] => 0 [‚extension‘] => ‚jpg‘ [‚main‘] => 1 ) [‚linkBasket‘] => ‚shopware.php?sViewport=basket&sAdd=SW2021‘ [‚linkDetails‘] => ‚shopware.php?sViewport=detail&sArticle=25‘ [‚mode‘] => ‚fix‘ ) [2] => array( [‚articleID‘] => 24 [‚articleDetailsID‘] => 35 [‚ordernumber‘] => ‚SW2019‘ [‚datum‘] => ‚2009-09-21‘ [‚sales‘] => 0 [‚highlight‘] => 0 [‚description‘] => [‚description_long‘] => ‚Osus ut exstasis Arma eu sto se Simulatio en volubiliter, sed Crocinus mos Absit iam Cunctator transfero. Dux Vehiculum, se vicis Incol se nex incontinencia, exigo era Palus sum iam magnificabiliter loci, sal incurro, dux necessarius Negotium os orbis, era alatus ineo, vel loquor, hic sed, Viva tam. Ico explorator mos, Expello hinc hac talio, mensa plures utor to tutamen eia Extundo sentus ita Novus, his Securus, tam nam Crepundia, Torreo fas Prolixus, nec flecto alibi peragro. Nam Deficio contradictio ops Posco laeto aeger Freno ruo, votum Spero ergo Penetro, Pulmo pro, ops infra Vacuus ususfructus qui Perturpis, neco Illas his Libro. Vel emo mons liberalis longe vir ingredior, sui cautor Concito, far, Comitatus mus Ambiguus palma via Degenero pio ala Imputo. Pudeo teneo triticeus, iam conjuratio, regno re oro Aveho curiositas cicuta, dis Occulte, deprecativus typus caterva pauci, his re supermitto. Ruo in divortium ita sesquimellesimus Oppono plus celo sceptrum, res ingustatus hi An.‘ [‚supplierName‘] => ‚Lorem‘ [‚supplierImg‘] => ‚6d2e5ccaa63a13a2524cbf170a508b5f.jpg‘ [‚articleName‘] => ‚Lederjacke‘ [‚price‘] => ‚299,00‘ [‚pseudoprice‘] => 0 [‚tax‘] => 19 [‚attr1‘] => 0 [‚attr2‘] => 0 [‚attr3‘] => 0 [‚attr4‘] => [‚attr5‘] => [‚attr6‘] => [‚attr7‘] => [‚attr8‘] => 0 [‚attr9‘] => [‚attr10‘] => [‚attr11‘] => [‚attr12‘] => [‚attr13‘] => 0 [‚attr14‘] => [‚attr15‘] => [‚attr16‘] => [‚attr17‘] => ‚0000-00-00‘ [‚attr18‘] => [‚attr19‘] => [‚attr20‘] => [‚instock‘] => 0 [‚weight‘] => 0 [‚shippingtime‘] => 0 [‚pricegroup‘] => ‚EK‘ [‚pricegroupID‘] => 1 [‚pricegroupActive‘] => 0 [‚filtergroupID‘] => 0 [‚purchaseunit‘] => 0 [‚referenceunit‘] => 0 [‚unitID‘] => 0 [‚laststock‘] => 0 [‚additionaltext‘] => NULL [‚sConfigurator‘] => 0 [‚esd‘] => 0 [‚sVoteAverange‘] => array( [‚averange‘] => 0 [‚count‘] => 0 ) [‚newArticle‘] => 0 [‚topseller‘] => 0 [‚sUpcoming‘] => 0 [‚sReleasedate‘] => [‚liveshopping‘] => NULL [‚sVariantArticle‘] => 1 [‚priceStartingFrom‘] => 0 [‚image‘] => array( [‚src‘] => array( [‚original‘] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0.jpg‘ [0] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0_0.jpg‘ [1] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0_1.jpg‘ [2] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0_2.jpg‘ [3] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0_3.jpg‘ [4] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0_4.jpg‘ [5] => ‚http://ftdevshopware.de/images/articles/24_13a916d65195085e18c5edbadb5fedc0_5.jpg‘ ) [‚res‘] => array( [‚original‘] => array( [‚width‘] => 607 [‚height‘] => 791 ) [‚description‘] => [‚relations‘] => ) [‚position‘] => 0 [‚extension‘] => ‚jpg‘ [‚main‘] => 1 ) [‚linkBasket‘] => ‚shopware.php?sViewport=basket&sAdd=SW2019‘ [‚linkDetails‘] => ‚shopware.php?sViewport=detail&sArticle=24‘ [‚mode‘] => ‚fix‘ ) ) [‚esd‘] => FALSE [‚sBlockPrices‘] => [‚sVariants‘] => [‚sUpcoming‘] => FALSE [‚priceStartingFrom‘] => ‚149,00‘ [‚image‘] => array( [‚src‘] => array( [‚original‘] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670.jpg‘ [0] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670_0.jpg‘ [1] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670_1.jpg‘ [2] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670_2.jpg‘ [3] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670_3.jpg‘ [4] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670_4.jpg‘ [5] => ‚http://ftdevshopware.de/images/articles/15_0362583d7dd81116ad5c798f2bd80670_5.jpg‘ ) [‚res‘] => array( [‚original‘] => array( [‚width‘] => 4000 [‚height‘] => 4000 ) [‚description‘] => [‚relations‘] => ‚&{farbe:blau}‘ ) [‚position‘] => 1 [‚extension‘] => ‚jpg‘ [‚main‘] => 1 ) [‚images‘] => array( [0] => array( [‚src‘] => array( [‚original‘] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0.jpg‘ [0] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0_0.jpg‘ [1] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0_1.jpg‘ [2] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0_2.jpg‘ [3] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0_3.jpg‘ [4] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0_4.jpg‘ [5] => ‚http://ftdevshopware.de/images/articles/15_adc7362e301462c5b83dfb9a9529aba0_5.jpg‘ ) [‚res‘] => array( [‚original‘] => array( [‚width‘] => 4000 [‚height‘] => 4000 ) ) [‚description‘] => [‚relations‘] => NULL [‚extension‘] => ‚jpg‘ [‚position‘] => 2 [‚main‘] => 2 ) ) [‚linkBasket‘] => ‚shopware.php?sViewport=basket&sAdd=SW2011‘ [‚linkDetails‘] => ‚shopware.php?sViewport=detail&sArticle=15&sCategory=1144‘ [‚linkDetailsRewrited‘] => ‚http://ftdevshopware.de/mode-fashion/jacken/15/nova-jacket?c=1144‘ [‚linkNote‘] => ‚shopware.php?sViewport=note&sAdd=SW2011‘ [‚linkTellAFriend‘] => ‚shopware.php?sViewport=tellafriend&sDetails=15‘ [‚linkCheaper‘] => ‚shopware.php?sViewport=cheaper&sDetails=15‘ [‚linkPDF‘] => ‚shopware.php?sViewport=detail&sDetails=15&sLanguage=1&sPDF=1‘ [‚sDownloads‘] => [‚sAccessories‘] => FALSE [‚sVoteAverange‘] => array( [‚averange‘] => 0.00 [‚count‘] => 0 ) [‚sVoteComments‘] => [‚sNavigation‘] => array( [‚sPrevious‘] => array( [‚id‘] => 14 [‚link‘] => ‚shopware.php?sViewport=detail&sDetails=14&sCategory=1144‘ [‚name‘] => ‚Barrier Softshell‘ ) [‚sNext‘] => array( [‚id‘] => 24 [‚link‘] => ‚shopware.php?sViewport=detail&sDetails=24&sCategory=1144‘ [‚name‘] => ‚Lederjacke‘ ) [‚sCurrent‘] => array( [‚position‘] => 2 [‚count‘] => 4 [‚sCategory‘] => 1144 [‚sCategoryLink‘] => ‚shopware.php?sViewport=cat&sCategory=1144‘ [‚sCategoryName‘] => ‚Jacken‘ ) ) [‚sDescriptionKeywords‘] => ‚se, iam, his, re, sed, mos, tam, ops, era, ita, mons, Vel, Libro, liberalis, emo, vir, far, Comitatus, Concito, cautor‘ )[/code] Gute frage :wink: wird sofort rausgenommen

LOL ich habs. Wie immer nur so ein scheiß mini Fehler den man schnell mal übersieht :wink: foreach ($tempBasket["content"] as &$basketItem) { $view-\>getArticle = $tempArticle-\>sGetArticleById($basketItem['articleID']); $getArticle = $tempArticle-\>sGetArticleById($basketItem['articleID']); $showUpload = $getArticle["attr" . $config-\>attributid]; $uploadFields = $getArticle["attr" . $config-\>multiUploadID]; } Der Fehler bestand bei $basketItem[‚articleID‘] voher hatte ich da $basketItem[‚id‘]. Wenn man natürlich die WarenkorbID und nicht die ArtikelID übergibt wird das nix xD