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 921153bd..0776bbc6 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
@@ -31,16 +31,42 @@
Preise
-
- Zeitraum: {{ rangeFormatted }}, {{ nightsCount }} Nächte
- Basispreis: {{ pricePax.base | money }} €
- Aufpreis Personenzahl: {{ pricePax.additional | money }} €
- Aufpreis Kurzzeit: {{ priceShortTerm | money }} €
- Zusatzleistungen: {{ priceOptions | money }} €
- Verpflegung: {{ priceBoard | money }} €
- Strom- und Abfallgebühren: {{ priceRunningCosts | money }} €
- Gesamtpreis: {{ totalPrice | money }} €
-
+
+
+
+ Zeitraum
+ {{ rangeFormatted }}, {{ nightsCount }} Nächte
+
+
+ Basispreis
+ {{ formatCurrency(pricePax.base) }}
+
+
+ Aufpreis Personenzahl
+ {{ formatCurrency(pricePax.additional) }}
+
+
+ Aufpreis Kurzzeit
+ {{ formatCurrency(priceShortTerm) }}
+
+
+ Zusatzleistungen
+ {{ formatCurrency(priceOptions) }}
+
+
+ Verpflegung
+ {{ formatCurrency(priceBoard) }}
+
+
+ Strom- und Abfallgebühren
+ {{ formatCurrency(priceRunningCosts) }}
+
+
+ Gesamtpreis
+ {{ formatCurrency(priceTotal) }} zzgl. vor Ort zu entrichtender Ortstaxe
+
+
+
Bitte wählen Sie einen Zeitraum
@@ -61,6 +87,16 @@
+
+
+ Bemerkungen/Wünsche
+
+
Abschicken
@@ -68,7 +104,7 @@
- Vielen Dank für Ihre Anfrage. Wir werden Sie schnellstmöglich bearbeiten.
+ Vielen Dank für Ihre Anfrage. Wir werden Sie schnellstmöglich bearbeiten.
@@ -124,18 +160,18 @@
selectedOptions: [],
selectedBoard: null,
name: null,
- email: null
- }
- },
- filters: {
- money (value) {
- if (0 === value) {
- return '-';
- }
- return parseFloat(value).toFixed(2).replace(/\./, ',');
+ email: null,
+ phone: null,
+ remarks: null
}
},
methods: {
+ formatCurrency (value) {
+ if (0 === value) {
+ return '-';
+ }
+ return parseFloat(value).toFixed(2).replace(/\./, ',') + '€';
+ },
initSelectableRanges () {
let enabledDates = [];
for (let config of this.configs) {
@@ -174,11 +210,14 @@
let formData = {
'tx_epproducts_ajax[name]': this.name,
'tx_epproducts_ajax[email]': this.email,
+ 'tx_epproducts_ajax[phone]': this.phone,
+ 'tx_epproducts_ajax[remarks]': this.remarks,
'tx_epproducts_ajax[dateFrom]': this.selectedFrom.format('DD.MM.YYYY'),
'tx_epproducts_ajax[dateTo]': this.selectedTo.format('DD.MM.YYYY'),
'tx_epproducts_ajax[pax]': this.selectedPax,
'tx_epproducts_ajax[board]': this.selectedBoard ? this.selectedBoard.uid : null,
- 'tx_epproducts_ajax[options]': options
+ 'tx_epproducts_ajax[options]': options,
+ 'tx_epproducts_ajax[summary]': this.priceSummary
};
this.processing = true;
this.submitted = false;
@@ -266,9 +305,20 @@
}
return this.nightsCount * this.selectedPax * 1.7;
},
- totalPrice () {
+ priceTotal () {
return this.pricePax.base + this.pricePax.additional + this.priceOptions
+ this.priceBoard + this.priceShortTerm + this.priceRunningCosts;
+ },
+ priceSummary () {
+ return {
+ paxBase: this.formatCurrency(this.pricePax.base),
+ paxAdditional: this.formatCurrency(this.pricePax.additional),
+ shortTerm: this.formatCurrency(this.priceShortTerm),
+ options: this.formatCurrency(this.priceOptions),
+ board: this.formatCurrency(this.priceBoard),
+ runningCosts: this.formatCurrency(this.priceRunningCosts),
+ total: this.formatCurrency(this.priceTotal)
+ }
}
},
mounted () {
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 2fc90fbe..ad500da3 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Language/locallang.xlf
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Language/locallang.xlf
@@ -78,6 +78,9 @@
Bitte angeben
+
+ Bitte angeben
+
Bitte angeben
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 aa768554..6f4e07e6 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,4 +1,9 @@
Konzept
+
+
+ Preisberechnung
+
+
{product.conceptDescription -> f:format.html()}
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 795a98cf..b84a6a36 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
@@ -1,4 +1,5 @@
@@ -18,6 +19,10 @@
E-Mail
{email}
+
+ Telefon
+ {phone -> v:or(alternative: '-')}
+
Zeitraum
{dateFrom} - {dateTo}
@@ -53,6 +58,20 @@
+
+ Kostenübersicht
+
+ Grundpreis: {summary.paxBase}
+ Aufpreis Personen: {summary.paxAdditional -> v:or(alternative: '-')}
+ Zusatzleistungen: {summary.options}
+ Strom- und Abfallgebühren: {summary.runningCosts -> v:or(alternative: '-')}
+ Gesamtpreis: {summary.total}
+
+
+
+ Bemerkungen/Wünsche
+ {remarks -> f:format.nl2br()}
+
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/GroupsPrice/Index.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/GroupsPrice/Index.html
index eaaeb83b..b33e7123 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/GroupsPrice/Index.html
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/GroupsPrice/Index.html
@@ -6,7 +6,20 @@
-
Preiskalkulator {hotel.name}
+
+
+
+