diff --git a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php index 2cec6f07..dccf047d 100644 --- a/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php +++ b/public/typo3conf/ext/ep_products/Classes/Service/DateImportService.php @@ -372,7 +372,7 @@ class DateImportService implements SingletonInterface $servicesBoard = $this->parseSelectionGroup($xmlDate, 'Leistungen Verpflegung'); $servicesIncluded = $this->parseSelectionGroup($xmlDate, 'Leistungen Sonstige'); - $date['services_included'] = serialize($this->combineServices($skiPass, $servicesBoard, $servicesIncluded)); + $date['services_included'] = serialize($this->combineServices($servicesIncluded, $skiPass, $servicesBoard)); if ($servicesBoard) { $date['board'] = reset($servicesBoard); @@ -678,13 +678,15 @@ class DateImportService implements SingletonInterface $data[$type] = []; } - $data[$type][] = [ + $data[$type][(int)$service->attributes()['id']] = [ 'idBusPro' => (int) $service->attributes()['idbuspro'], 'label' => $label, 'price' => number_format($price, 2, ',', '.'), ]; } + ksort($data); + return $data; } @@ -700,10 +702,12 @@ class DateImportService implements SingletonInterface foreach ($selectionGroup as $selection) { $attributes = $selection->attributes(); - $idBusPro = (int) $attributes['idbuspro']; - $data[$idBusPro] = (string) $attributes['bezeichnung']; + $id = (int) $attributes['id']; + $data[$id] = (string) $attributes['bezeichnung']; } + ksort($data); + return $data; } diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html index 0f238531..aa768554 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Details.html @@ -1,13 +1,6 @@
-