Projekt

Allgemein

Profil

Aktionen

GX-Bug #68257

geschlossen

Woanders günstiger ist nicht aufrufbar, wenn man Artikel mit Attributen nutzt / price offer is not usable when using products with attributes

Von Till Tepelmann vor etwa 3 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Marvin Muxfeld
Kategorie:
Frontend
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.3.2.1, 4.3.3.0
Release Notes Langtext:

Woanders günstiger kann wieder mit Attributen genutzt werden


Beschreibung

Woanders günstiger ist nicht aufrufbar, wenn man Artikel mit Attributen nutzt / Cheaper elsewhere is not callable when using products with attributes

kann wie folgt reproduziert werden:

  1. Artikel anlegen
  2. Unter "Module->Modul-Center" Modul "Artikelattributen" installieren
  3. Unter "Artikel->Artikelattribute" ein Attribut anlegen
  4. Eine Option anlegen z.B. "Farbe" mit dem Wert "Gelb"
  5. Den Artikel bearbeiten im Gambio Admin und das Attribut "Farbe" mit "Gelb" hinzufügen
  6. Einstellungen->Artikel->Woanders günstiger aktivieren
  7. Artikel im ShopFront öffnen
  8. Button "Woanders günstiger" öffnen

Erwartetes Ergebnis:
Die Seite woanders günstiger wird geöffnet ohne Fehlermeldung

Tatsächliches Ergebnis:
Die Seite woanders günstiger kann nicht geöffnet werden, es wird eine Fehlermeldung 500 angezeigt


Price offer is not usabable when using products with attributes / Cheaper elsewhere is not callable when using products with attributes.

can be reproduced as follows:

  1. create product
  2. under "Modules->Module Center" install module "Article attributes
  3. create an attribute under "Products->Article Attributes
  4. create an option e.g. "color" with the value "yellow
  5. edit the product in the Gambio Admin and add the attribute "color" with "yellow
  6. settings->product->activate price offer
  7. open product in ShopFront
  8. open the button "price offer".

Expected result:
The elsewhere cheaper page opens without error message.

Actual result:
The page cheaper elsewhere can not be opened, an error message 500 is displayed.


Uncaught InvalidArgumentException: StringType: Invalid argument value given (expected string got NULL): in /GXEngine/Shared/Types/StringType.inc.php:43
Stack trace:
#0 /system/overloads/PriceOfferContentView/PriceOfferContentViewOverload.inc.php(31): StringType->__construct(NULL)
#1 /system/classes/products/PriceOfferContentView.inc.php(77): PriceOfferContentViewOverload->add_data()
#2 /system/core/ContentView.inc.php(158): PriceOfferContentView->prepare_data()
#3 /gm_price_offer.php(41): ContentView->get_html()


Aktionen

Auch abrufbar als: Atom PDF