Projekt

Allgemein

Profil

GX-Bug #57120

Von Ulrich Wenk vor mehr als 4 Jahren aktualisiert

Wenn in der Kundengruppe Gast die Preisanzeige aktiv ist und man Artikel in den Warenkorb legen kann, kommt es im Warenkorb zu der Fehlermeldung 'A non-numeric value encountered', wenn in der Kundengruppe 'Neuer Kunde' die Preisanzeige deaktiviert wurde. Ursache ist die Funktion xtcGetPrice. Diese Funktion liefert auch bei format = false einen String zurück, mit dem dann gerechnet wird. 

 1. Preisanzeige in Kundegruppe 'Neuer Kunde' deaktivieren 
 2. Als Gast Artikel in den Warenkorb legen 
 3. Zur Kasse gehen 
 4. Als neuer neue Kunde registrieren 

 ___ 
 **EDIT** 14.10.2019 

 If in the customer group guest the price display is active and one can put products into the shopping cart, it comes in the shopping cart to the error message 'A non-numeric value encountered', if in the customer group 'new customer' the price display was deactivated. The reason is the function xtcGetPrice. This function also returns a string if format = false, which is then used for calculation. 

 1. deactivate price display in customer group 'new customer 
 2. as a guest add a product to the shopping cart 
 3. proceed to checkout 
 4. register as a new customer 

 result: 

 * ```WARNING(2): "A non-numeric value encountered" 
 WARNING(2): "A non-numeric value encountered" 
 WARNING(2): "A non-numeric value encountered" 
 WARNING(2): "A non-numeric value encountered" 
 WARNING(2): "A non-numeric value encountered" 
 WARNING(2): "A non-numeric value encountered" 
 WARNING(2): "Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hubtest.lena.hostkraft.de/httpdocs/3.15.1.0/gm/classes/ErrorHandler.php:430)"``` 

Zurück