Jump to content

business_hours, fields_phpformat, german


n00bster

Recommended Posts

replace the code from line 2 do 13 in the "business_hours.thtml" file to show the weekdays and times in german in the frontend.

$daysArray = array(1 => 'Montag', 2 => 'Dienstag', 3 => 'Mittwoch', 4 => 'Donnerstag', 5 => 'Freitag', 6 => 'Samstag', 7 => 'Sonntag');

$hoursArray = array(
   "0.0" => "24:00", "0.5" => "12:30", "1.0" => "1:00", "1.5" => "1:30", "2.0" => "2:00", "2.5" => "2:30",
   "3.0" => "3:00", "3.5" => "3:30", "4.0" => "4:00", "4.5" => "4:30", "5.0" => "5:00", "5.5" => "5:30",
   "6.0" => "6:00", "6.5" => "6:30", "7.0" => "7:00", "7.5" => "7:30", "8.0" => "8:00", "8.5" => "8:30",
   "9.0" => "9:00", "9.5" => "9:30", "10.0" => "10:00", "10.5" => "10:30", "11.0" => "11:00", "11.5" => "11:30",
   "12.0" => "12:00", "12.5" => "12:30", "13.0" => "13:00", "13.5" => "13:30", "14.0" => "14:00", "14.5" => "14:30",
   "15.0" => "15:00", "15.5" => "15:30", "16.0" => "4:00", "16.5" => "4:30", "17.0" => "17:00", "17.5" => "17:30",
   "18.0" => "18:00", "18.5" => "18:30", "19.0" => "19:00", "19.5" => "19:30", "20.0" => "20:00", "20.5" => "20:30",
   "21.0" => "21:00", "21.5" => "21:30", "22.0" => "22:00", "22.5" => "22:30", "23.0" => "23:00", "23.5" => "23:30"
);
Link to comment
  • 2 weeks later...
  • 3 weeks later...
  • 11 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...