Projekt

Allgemein

Profil

Aktionen

GX-Bug #67397

geschlossen

Widget ProductList does not show products if there are no alternative texts for the images in the database

Von Marvin Muxfeld vor mehr als 3 Jahren hinzugefügt. Vor mehr als 2 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Julian Heckmann
Kategorie:
StyleEdit 4
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.1.2.0 beta1
Release Notes Langtext:

Produktliste im StyleEdit wird nun auch angezeigt, wenn der Alternativtext für das Hauptartikelbild fehlt


Beschreibung

Widget ProduktListe zeigt keine Produkte an wenn für die Bilder keine Alternativtexte in der Datenbank exisiteren

Kann wie folgt reproduziert werden:

  1. Neuen Artikel anlegen
  2. in der Datenbank den Eintrag für die Alternativtexte löschen (UPDATE products_description SET gm_alt_text = NULL;)
  3. StyleEdit4 öffnen
  4. Im Theme in einer ContentZone ein Widget "ProductListe" einfügen.
  5. Bei Artikelauswahl "Neue Artikel" auswählen
  6. Fehler StringType: Invalid argument value given (expected string got NULL): erscheint statt der Produkte

Widget ProductList does not show products if there are no alternative texts for the images in the database

Can be reproduced as follows:

  1. create a new article
  2. delete the entry for the alternative texts in the database (UPDATE 'products_description' SET gm_alt_text = NULL;)
  3. open StyleEdit4
  4. insert a "ProductList" widget in a ContentZone in the theme
  5. select "New articles" in the article selection
  6. error StringType: Invalid argument value given (expected string got NULL): appears instead of the products

#0 StringType->__construct() called at [/GXMainComponents/Services/Core/FeaturedProducts/Repositories/FeaturedProductReader.inc.php:335]
#1 FeaturedProductReader->getNewProducts(FeaturedProductSettings Object ([*limit] => 10,[*randomOrder] => ,[*customerGroupId] => 0,[*statusFsk18] => 1,[*languageCode] => DE)) called at [/GXMainComponents/Services/Core/FeaturedProducts/Repositories/FeaturedProductRepository.inc.php:82]
#2 FeaturedProductRepository->getNewProducts(FeaturedProductSettings Object ([*limit] => 10,[*randomOrder] => ,[*customerGroupId] => 0,[*statusFsk18] => 1,[*languageCode] => DE)) called at [/GXMainComponents/Services/Core/FeaturedProducts/Services/FeaturedProductReadService.inc.php:79]
#3 FeaturedProductReadService->getNewProducts(FeaturedProductSettings Object ([*limit] => 10,[*randomOrder] => ,[*customerGroupId] => 0,[*statusFsk18] => 1,[*languageCode] => DE)) called at [/GXModules/Gambio/Widgets/ProductList/Classes/ProductListWidgetOutputCommand.php:213]
#4 ProductListWidgetOutputCommand->productsByListType(new) called at [/GXModules/Gambio/Widgets/ProductList/Classes/ProductListWidgetOutputCommand.php:122]
#5 ProductListWidgetOutputCommand->execute() called at [/GXModules/Gambio/Widgets/ProductList/Classes/ProductlistWidget.php:131]
#6 ProductlistWidget->previewContent(Gambio\StyleEdit\Core\Language\Entities\Language Object ([*code] => de,[*id] => 2)) called at [/GXModules/Gambio/StyleEdit/Core/Components/Widget/WidgetController.php:121]
#7 Gambio\StyleEdit\Core\Components\Widget\WidgetController->post(Array ([0] => styleedit,[1] => widget,[2] => Malibu2020-06-24_09-43-52_preview,[3] => productlist), {"id":"productlist","title":"Produktliste","icon":{"name":"Product List","file":"GXModules/Gambio/Widgets/ProductList/icon.svg"},"author":{"name":"Gambio GmbH","email":"info@gambio.de","url":"https://www.gambio.de"},"helpUrl":"https://www.gambio.de/help","description":"Mit diesem Widget kannst du ganz einfach Produkt-Slider zu deinem Shop hinzufügen","cache":0,"displayConfig":"sidebar","fieldsets":[{"title":"Allgemein","options":[{"id":"id","default":"","type":"textbox","value":"productlist6x1egk0xh","label":"ID","attributes":{"placeholder":"HTML Element ID"}},{"id":"class","default":"","type":"textbox","value":"","label":"Klasse","attributes":{"placeholder":"HTML Element Klasse"}}]},{"title":"Darstellung","options":[{"id":"presentation","default":"slider","type":"selectbox","value":"slider","label":"Darstellung","options":[{"value":"slider","text":"Slider"},{"value":"list","text":"List"}]},{"id":"maxProducts","default":"10","type":"textbox","value":"10","label":"Max. angezeigte Artikel"},{"id":"random","default":false,"type":"checkbox","value":false,"label":"Artikel zufällig anzeigen"}]},{"title":"Produkt","options":[{"id":"productlist","type":"productlist","label":"Product","items":{"listType":{"id":"productlist-listType","default":"own-list","type":"selectbox","value":"new","label":"Artikelauswahl","attributes":{"placeholder":"Artikelauswahl"},"options":[{"value":"own-list","text":"Eigene Liste"},{"value":"category","text":"Kategorien"},{"value":"deals","text":"Angebote"},{"value":"recommended","text":"Empfohlene Artikel"},{"value":"coming-soon","text":"Erscheint bald"},{"value":"new","text":"Neu"}]},"products":{"id":"productlist-products","default":[],"type":"productsearchbox","value":[],"label":"Produkt wählen","attributes":{"placeholder":"Produkt-ID oder -namen suchen..."},"endpoint":"/admin/admin.php?do=StyleEditProductSearch/byTerm"},"category":{"id":"productlist-category","type":"categorysearchbox","label":"Kategorie auswählen","attributes":{"placeholder":"Kategorie-ID oder -namen suchen"},"endpoint":"/admin/admin.php?do=StyleEditCategorySearch/byTerm"}},"default":{"listType":"own-list","products":[],"category":null}}]}],"type":"productlist"}) called at [/GXModules/Gambio/StyleEdit/Api/Controllers/StyleEditController.php:206]
#8 Gambio\StyleEdit\Api\Controllers\StyleEditController->post() called at [/GXModules/Gambio/StyleEdit/Api/config/routes.php:27]



Zugehörige Tickets

Beziehung mit GX-Entwicklung - GX-Bug #68515: Widget Produktliste im StyleEdit zeigt keine Artikel an, wenn die Kurzbeschreibung NULL ist statt eines leeren Strings / Widget product list in StyleEdit does not show products if short description is NULL instead of empty stringErledigt

Aktionen
Kopiert von GX-Entwicklung - GX-Bug #67306: Widget ProductList does not show products if there are no alternative texts for the images in the databaseErledigtMoritz Bunjes

Aktionen
Aktionen #1

Von Marvin Muxfeld vor mehr als 3 Jahren aktualisiert

  • Kopiert von GX-Bug #67306: Widget ProductList does not show products if there are no alternative texts for the images in the database wurde hinzugefügt
Aktionen #2

Von Marvin Muxfeld vor mehr als 3 Jahren aktualisiert

  • Status wurde von In Bearbeitung zu Testing geändert
  • Zugewiesen an wurde von Marvin Muxfeld zu Core-Entwickler geändert
Aktionen #3

Von Marvin Muxfeld vor mehr als 3 Jahren aktualisiert

  • Zielversion wurde von 4.1.2.0 zu 4.0.3.0 geändert
Aktionen #4

Von Julian Heckmann vor mehr als 3 Jahren aktualisiert

  • Zugewiesen an wurde von Core-Entwickler zu Julian Heckmann geändert
Aktionen #5

Von Julian Heckmann vor mehr als 3 Jahren aktualisiert

  • Status wurde von Testing zu Erledigt geändert
Aktionen #6

Von Till Tepelmann vor fast 3 Jahren aktualisiert

  • Beziehung mit GX-Bug #68515: Widget Produktliste im StyleEdit zeigt keine Artikel an, wenn die Kurzbeschreibung NULL ist statt eines leeren Strings / Widget product list in StyleEdit does not show products if short description is NULL instead of empty string wurde hinzugefügt
Aktionen #7

Von Moritz Bunjes vor mehr als 2 Jahren aktualisiert

  • Tags wurde von 4.1.2.0, 4.0.3.0 zu 4.1.2.0 geändert
Aktionen #8

Von Moritz Bunjes vor mehr als 2 Jahren aktualisiert

  • Tags 4.1.2.0 wurde gelöscht
Aktionen

Auch abrufbar als: Atom PDF