Projekt

Allgemein

Profil

GX-Bug #70997

Von Till Tepelmann vor 3 Monaten aktualisiert

Paketshops und Packstationen können nicht gewählt werden weil eine PHP Funktion in Smarty nicht erlaubt ist. Wir sollten die Funktion entfernen und keine Veränderung der Daten und Öffnungszeiten für Paketshops vornehme und die Öffnungszeiten so anzeigen wie sie von DHL kommen. 

 Kann wie folgt reproduziert werden: 

 1. Shop installieren 
 2. Als Admin einloggen 
 3. Unter Modul-Center das Modul "Paketshopfinder" aktivieren 
 4. im Bestellvorgang einen Artikel in den Korb legen 
 5. Eine neue Versandadresse auswählen Button "Packstation wählen" klicken 

 Erwartetes Ergebnis: 
 Man sollte ohne Fehler eine Packstation als Versandadresse auswählen können 

 Tatsächliches Ergebnis: 
 Es erscheint eine Fehlermeldung und es kann keine Packstation als Adresse ausgewählt werden 

 ----------------------------------------------------------------- 

 Parcel stores and packing stations cannot be selected, an error message is displayed 

 ``` html 
 {function openingHour hour=''} 
     {if preg_match('/\d\d:\d\d:\d\d/', $hour) === 1} 
         {$hour|substr:0:5} 
     {else} 
         {$hour} 
     {/if} 
 {/function} 
 ``` 

 Can be reproduced as follows: 

 1. install the store 
 2. log in as admin 
 3. activate the "Parcel shop finder" module under Module Center 
 4. add an item to the basket during the order process 
 5. select a new shipping address Click the "Select packing station" button 


 Expected result: 
 You should be able to select a Packstation as the shipping address without error 

 Actual result: 
 An error message appears and no Packstation can be selected as an address 

 --------------------------------------------------- 

 Syntax error in template "file:/var/www/public/tmp/theme240705125709/html/system/address_book_parcelshopfinder_result.html" on line 4 "{if preg_match('/\d\d:\d\d:\d\d/', $hour) === 1}" PHP function 'preg_match' not allowed by security setting

Zurück