From d9313f42267002dfe37d119e4b0b705dccf60864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 2 Jan 2020 15:51:14 +0100 Subject: [PATCH 1/2] Move button to sidebar --- .../Resources/Private/Partials/Product/Details.html | 7 ------- .../Resources/Private/Templates/Product/Detail.html | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) 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 @@
Konzept
{product.conceptDescription -> f:format.html()} - -

- - Direkt zum Anfrageformular - -

-
Verpflegung
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html index 3fdda853..52e4e8ed 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Product/Detail.html @@ -261,6 +261,9 @@ argument-prefix="{ep:argumentPrefix(pluginName: 'ajax', extensionName: 'epproducts')}" >
+ + Direkt zum Anfrageformular + From 05165ae95bede55346bf621d94a4f869eca2f52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Thu, 2 Jan 2020 16:13:42 +0100 Subject: [PATCH 2/2] Preserve sorting of services on import --- .../Classes/Service/DateImportService.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; }