Projekt

Allgemein

Profil

GX-Bug #65767

Von Ulrich Wenk vor mehr als 4 Jahren aktualisiert

Legt man eingeloggt Produkte in den Warenkorb, loggt sich aus und wieder ein, so ist der Warenkorb leer, sofern Gäste keine Preise sehen dürfen (Kundengruppeneinstellung). 

 Lösung: src/includes/classes/shopping_cart.php in \shoppingCart_ORIGIN::removeProductsWithUnavailablePrice 

 global $xtPrice; 

 ersetzen durch 

 $xtPrice = new xtcPrice($_SESSION['currency'], $_SESSION['customers_status']['customers_status_id']); 

 Die globale $xtPrice hat im Login-Prozess noch den Gast-Kundengruppen-Status zur Berechnung von Preisen. 

 _____ 

 Preconditions: 

 * go to Customers > Customer Groups >>> edit Guest 
 * disable 'Show prices', save 

 1. as customer or admin, put an item into your basket 
 2. log out 
 3. log in again 

 expected result: 

 * the item is still in teh bsaket 

 actual result: 

 * the item is no longer in the basket

Zurück