implemented: show important note in cart if set on trxstate 20 page

This commit is contained in:
zino
2021-05-27 12:02:33 +02:00
parent 6ba97e46f7
commit 5f11ce66a8
6 changed files with 39 additions and 6 deletions

13
client/dist/inject.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -290,4 +290,9 @@ span.trimChar {
#bottomHTML h6, #bottomHTML a { #bottomHTML h6, #bottomHTML a {
color: #999; color: #999;
}
#modalCartImportantNote {
margin: 0 0 20px 0;
display: none;
} }

View File

@@ -57,7 +57,6 @@ export function calcOverallPrice(): void{
config.state.priceOverallEur = getPriceInEur(config.state.priceOverall); config.state.priceOverallEur = getPriceInEur(config.state.priceOverall);
} }
export function generateCartItems(): void { export function generateCartItems(): void {
if (!config.state.selectedSeatsArr.length) if (!config.state.selectedSeatsArr.length)
return; return;
@@ -90,6 +89,15 @@ export function getPriceInEur(inPrice: string): string {
return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(price); return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(price);
} }
export function setImportantNote(): void {
if (!config.state.inputsWithValue?.importantNote)
return;
const importantNoteSelector: JQuery<HTMLElement> = jQuery("#modalCartImportantNote")
importantNoteSelector[0].innerText = config.state.inputsWithValue?.importantNote
importantNoteSelector.show();
}
function appendHTML(inCartID: string, inColor: string, inCategory: string | undefined, inSeatStr: string): void { function appendHTML(inCartID: string, inColor: string, inCategory: string | undefined, inSeatStr: string): void {
jQuery("#cartItemHTML .fl-html").append(` jQuery("#cartItemHTML .fl-html").append(`
<div class="cartItem" id="${inCartID}"> <div class="cartItem" id="${inCartID}">

View File

@@ -69,6 +69,7 @@ export function sendSeatmapXML(inE: any) {
Trims.addTrims(); Trims.addTrims();
XMLHelper.processSMAP(); XMLHelper.processSMAP();
config.state.panzoom = Panzoom.addPanzoom("#containerSeatmapInner", ".panzoomZoomIn", ".panzoomZoomOut", "#panzoomResetZoom"); config.state.panzoom = Panzoom.addPanzoom("#containerSeatmapInner", ".panzoomZoomIn", ".panzoomZoomOut", "#panzoomResetZoom");
Cart.setImportantNote();
UI.controlLoftloader("hide"); UI.controlLoftloader("hide");
jBoxHelper.createSeatTooltips(); jBoxHelper.createSeatTooltips();
} }