Projekt

Allgemein

Profil

Aktionen

GX-Bug #67881

geschlossen

If you have products with attributes in your shopping cart, and the admin deletes the attributes, then the shopping cart can no longer be accessed

Von Till Tepelmann vor mehr als 3 Jahren hinzugefügt. Vor mehr als 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Hoch
Zugewiesen an:
Alexandre Ataides
Kategorie:
Checkout
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.2.0.1, 4.3.1.0
Release Notes Langtext:

Wenn man einen Artikel mit Attributen im Warenkorb hat, und der Admin die Attribute löscht, dann kann der Warenkorb danach jetzt wieder aufgerufen werden.


Beschreibung

Wenn man Artikel mit Attributen im Warenkorb hat, und der Admin die Attribute löscht, dann kann der Warenkorb danach nicht mehr aufgerufen werden

Kann wie folgt reproduziert werden:

  1. Artikel anlegen
  2. Unter "Artikel->Artikelattribute" ein Attribut z.B. "Gewicht" anlegen
  3. zwei Werte anlegen "2kg und 3kg"
  4. Attribute dem Artikel zuweisen und für 2kg 2 EUR eintragen und für 3kg 3 EUR eingeben
  5. Artikel im Shop aufrufen
  6. Artikel mit einem Attribut in den Korb legen
  7. Als Admin nun im Artikel unter "Attribute" die Zuordnung entfernen indem man die Checkbox deaktiviert und speichert.
  8. Warenkorb im Shop aufrufen, es wird eine Fehlermeldung angezeigt.

Erwartetet Ergebnis:
Der Warenkorb ist aufrufbar und der Artikel ist nicht mehr im Korb und wurde entfernt, oder der Text "Artikel ist nicht mehr Verfügbar" wird angezeigt und der Artikel ist noch im Korb zu sehen und der Checkout ist deaktiviert bis der Artikel vom Kunden aus dem Korb entfernt wird.

Tatsächliches Ergebnis:
Der Warenkorb ist nicht mehr aufrufbar und es wird eine Fehlermeldung angezeigt.


If you have products with attributes in your shopping cart, and the admin deletes the attributes, then the shopping cart can no longer be accessed

Can be reproduced as follows:

  1. create a product
  2. create an attribute e.g. "weight" under "Product->Article attributes
  3. create two values "2kg and 3kg
  4. assign attributes to the product and enter 2 EUR for 2kg and 3 EUR for 3kg
  5. access products in the store
  6. place products with an attribute in the basket
  7. as admin now in the product under "Attributes" remove the assignment by deactivating the checkbox and saving.
  8. access the shopping cart in the store, an error message is displayed.

Expected result:
The shopping cart can be called up and the product is no longer in the cart and has been removed, or the text "Product is no longer available" is displayed and the product is still in the cart and the checkout is deactivated until the product is removed from the cart by the customer.

Actual result:
The shopping cart is no longer accessible and an error message is displayed.


Uncaught TypeError: Argument 1 passed to OrderDetailsCartThemeContentView::_getCombisId() must be of the type array, null given, called in /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php on line 161 and defined in /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php:601
Stack trace:
#0 /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php(161): OrderDetailsCartThemeContentView->_getCombisId()
#1 /GXMainComponents/View/ThemeContentViews/core/ThemeContentView.inc.php(147): OrderDetailsCartThemeContentView->prepare_data()
#2 /GXMainComponents/View/ThemeContentViews/shopping_cart/ShoppingCartThemeContentView.inc.php(556): ThemeContentView->get_html()
#3 /GXMainComponents/View/ThemeContentViews/shopping_cart/ShoppingCartThemeContentView.inc.php(154): ShoppingCartThemeContentVie


Aktionen

Auch abrufbar als: Atom PDF