Projekt

Allgemein

Profil

GX-Bug #68256

Von Till Tepelmann vor etwa 3 Jahren aktualisiert

Warenkorb ist nicht aufrufbar, wenn man für Schweiz eine eigene leere Steuerzone angelegt und als Versandland "Kongo" eingestellt Schweiz hat  

 und "Selbstabholung" als Versandart aktiviert hat 

 Kann wie folgt reproduziert werden: 

 1. öffne Gambio Admin 
 2. Unter Einstellungen->Versandland" die "Schweiz" auswählen 
 3. Unter "Module->Versandarten" die "Selbstabholung" als einzige Versandart aktivieren 
 4. Unter "Einstellungen->Steuerzonen" für Schweiz eine eigene Zone anlegen 
 5. keine Länder in die Zone einfügen leer lassen 
 6. Standardsatz auf die neue leere Steuerzone setzen 
 7. ShopFront öffnen 
 4. 8. Einen Artikel in den Korb legen 
 5. 9. Warenkorb öffnen 

 Erwartetes Ergebnis: 
 Der Warenkorb ist ohne Fehler direkt aufrufbar und Selbstabholung ist vorausgewählt 

 Tatsächliches Ergebnis: 
 Der Warenkorb ist nicht mehr aufrufbar, es erscheint ein Fehler 500 

 ---- 

 Shopping cart cannot be called up opened if "Congo" Switzerland is set selected as the shipping country  

 and "selfpickup" is selected as the shipping method. 

 Can be reproduced as follows: 

 1. open Gambio Admin 
 2. under "Settings->Shipping country" select "Switzerland" "Switzerland 
 3. under settings->shipping country "Modules->Shipping methods" activate "Self pickup" as the only shipping method 
 3. 4. under "Settings->Tax zones" create an own zone for Switzerland 
 5. do not insert any countries into the zone leave empty 
 6. set default rate to the new empty tax zone 
 7. open ShopFront 
 4. put 8. add a product in to the basket 
 5. 9. open shopping cart 

 Expected result: 
 The shopping cart is directly accessible without errors and self pickup is preselected. preselected 

 Actual result: 
 The shopping cart can no longer be called up, an error appears 500 

 ----- 

 Uncaught TypeError: Return value of xtcPrice_ORIGIN::getShippingOriginCountryAndZoneId() must be of the type array, null returned in /includes/classes/xtcPrice.php:1342 
 Stack trace: 
 #0 /includes/classes/order.php(482): xtcPrice_ORIGIN->getShippingOriginCountryAndZoneId() 
 #1 /includes/classes/order.php(64): order_ORIGIN->cart() 
 #2 /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php(264): order_ORIGIN->__construct() 
 #3 /GXMainComponents/View/ThemeContentViews/shopping_cart/OrderDetailsCartThemeContentView.inc.php(236): OrderDetailsCartThemeContentView->_setOrderTotals() 
 #4 /GXMainComponents/View/ThemeContentViews/core/ThemeContentView.inc.php(147): OrderDetailsCartThemeContentView->prepare_data()

Zurück