revised xmlhelper
This commit is contained in:
@@ -40,7 +40,7 @@ export function changedDropdownBuyerType(inSelect: HTMLSelectElement, inSeatObj:
|
||||
calcOverallPrice();
|
||||
CartButtons.setBtnCartText();
|
||||
|
||||
const url = XMLHelper.generateCheckoutUrl();
|
||||
const url = generateCheckoutUrl();
|
||||
Events.addRedirectCheckout(url);
|
||||
}
|
||||
|
||||
@@ -73,6 +73,15 @@ export function initModalCart(): void {
|
||||
Events.addCartClose();
|
||||
}
|
||||
|
||||
export function generateCheckoutUrl(): string | undefined {
|
||||
if (!config.state.selectedSeatsArr.length)
|
||||
return;
|
||||
|
||||
const inputsWithValue = config.state.inputsWithValue!;
|
||||
const selectedSeatIndexes: string = XMLHelper.generateSelectedSeatIndexes();
|
||||
return `${inputsWithValue["ticketPurchaseUrl"]}?user_context=${inputsWithValue.user_context}&pid=${inputsWithValue["pid"]}&selected_seat_indexes=${selectedSeatIndexes}&trxstate=148`;
|
||||
}
|
||||
|
||||
function appendHTML(inCartID: string, inColor: string, inCategory: string | undefined, inSeatStr: string): void {
|
||||
jQuery("#cartItemHTML .fl-html").append(`
|
||||
<div class="cartItem" id="${inCartID}">
|
||||
|
||||
Reference in New Issue
Block a user