diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/AjaxGroupsPriceController.php b/public/typo3conf/ext/ep_products/Classes/Controller/AjaxGroupsPriceController.php index 37300d26..96f9ba2a 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/AjaxGroupsPriceController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/AjaxGroupsPriceController.php @@ -68,12 +68,21 @@ class AjaxGroupsPriceController extends ActionController */ public function processFormAction(Hotel $hotel, GroupsPriceInquiry $groupsPriceInquiry) { + $mode = $groupsPriceInquiry->getMode(); + + if (false === in_array($mode, [GroupsPriceInquiry::MODE_BOOKING, GroupsPriceInquiry::MODE_INQUIRY])) { + $mode = GroupsPriceInquiry::MODE_BOOKING; + } + + $subject = GroupsPriceInquiry::MODE_BOOKING ? + 'Gruppenhaus Preisberechnung/Buchung' : 'Gruppenhaus Preisberechnung/Anfrage'; + $emailOptions = [ 'toEmail' => $this->settings['groupsPriceToEmail'], 'toName' => $this->settings['groupsPriceToName'], 'fromEmail' => $this->settings['groupsPriceToEmail'], 'fromName' => $this->settings['groupsPriceToName'], - 'subject' => 'Gruppenhaus Preisberechnung/Anfrage', + 'subject' => $subject, 'templateName' => 'GroupsPrice', ]; @@ -84,12 +93,6 @@ class AjaxGroupsPriceController extends ActionController $selectedOptions = []; } - $mode = $groupsPriceInquiry->getMode(); - - if (false === in_array($mode, [GroupsPriceInquiry::MODE_BOOKING, GroupsPriceInquiry::MODE_INQUIRY])) { - $mode = GroupsPriceInquiry::MODE_BOOKING; - } - $variables = [ 'mode' => $mode, 'hotel' => $hotel, diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue index d7fb32a3..ab70e8e2 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/GroupsPriceCalculator.vue @@ -242,7 +242,7 @@
- Vielen Dank für Ihre Anfrage. Wir werden diese schnellstmöglich bearbeiten. + Vielen Dank für Deine {{ mode === 'booking' ? 'Buchung' : 'Anfrage' }}. Wir werden diese schnellstmöglich bearbeiten.
Loading... @@ -317,7 +317,8 @@ export default { name: null, email: null, phone: null, - remarks: null + remarks: null, + mode: 'inquiry', } }, methods: { @@ -371,6 +372,7 @@ export default { } }, submitForm(mode) { + this.mode = mode let formData = new URLSearchParams({ 'tx_epproducts_ajax[groupsPriceInquiry][mode]': mode, 'tx_epproducts_ajax[groupsPriceInquiry][name]': this.name ? this.name : '', diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html index 2f2cb581..318faf3c 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Email/GroupsPrice.html @@ -5,7 +5,14 @@ -

Anfrage Gruppenhaus vom

+ + +

Buchung Gruppenhaus vom

+
+ +

Anfrage Gruppenhaus vom

+
+