diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Dto/GroupsPriceInquiry.php b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Dto/GroupsPriceInquiry.php index 5d01060d..99bbfdb7 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Dto/GroupsPriceInquiry.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Dto/GroupsPriceInquiry.php @@ -38,6 +38,12 @@ class GroupsPriceInquiry */ protected $mode; + /** + * @var bool + * @TYPO3\CMS\Extbase\Annotation\Validate("Boolean", options={"is": true}) + */ + protected $confirmation; + /** * @var string * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty") @@ -111,6 +117,22 @@ class GroupsPriceInquiry $this->mode = self::MODE_BOOKING; } + /** + * @return bool + */ + public function isConfirmation() + { + return $this->confirmation; + } + + /** + * @param bool $confirmation + */ + public function setConfirmation($confirmation) + { + $this->confirmation = $confirmation; + } + /** * @return string */ 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 13dc8c1a..8370ff75 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 @@ -197,6 +197,19 @@ rows="3" v-model="remarks"/> +
+ +
+
Ihr erhaltet von uns eine Bestätigung. Wir behalten uns vor die Buchung zu prüfen / erst nach @@ -334,7 +347,8 @@ export default { remarks: null, group: null, address: null, - mode: 'inquiry', + mode: 'booking', + confirmation: false, } }, methods: { @@ -410,8 +424,10 @@ export default { }, submitForm(mode) { this.mode = mode + let confirmation = 'inquiry' === mode ? true : this.confirmation let formData = new URLSearchParams({ 'tx_epproducts_ajax[groupsPriceInquiry][mode]': mode, + 'tx_epproducts_ajax[groupsPriceInquiry][confirmation]': confirmation ? '1' : '0', 'tx_epproducts_ajax[groupsPriceInquiry][name]': this.name ? this.name : '', 'tx_epproducts_ajax[groupsPriceInquiry][group]': this.group ? this.group : '', 'tx_epproducts_ajax[groupsPriceInquiry][address]': this.address ? this.address : '', diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Language/locallang.xlf b/public/typo3conf/ext/ep_theme/Resources/Private/Language/locallang.xlf index 7f02300e..8fe41e0c 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Language/locallang.xlf +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Language/locallang.xlf @@ -111,6 +111,9 @@ Ungültige E-Mail Adresse + + Deine Bestätigung ist erforderlich + Nummer einfach als neuen Kontakt abspeichern und los geht es! Wir beraten Dich über WhatsApp!