diff --git a/application/views/mobile_first/ah-lantern-form-info-page.php b/application/views/mobile_first/ah-lantern-form-info-page.php index d2499acf..f9b9a198 100644 --- a/application/views/mobile_first/ah-lantern-form-info-page.php +++ b/application/views/mobile_first/ah-lantern-form-info-page.php @@ -478,8 +478,9 @@ for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; - currentTicketPrice = parseInt(ticketTypeNode.getAttribute('data-price')); + var dataPrice = parseInt(ticketTypeNode.getAttribute('data-price')); if (ticketTypeNode.checked) { + currentTicketPrice = dataPrice; calcTotalPrice(currentTicketPrice, adultNumberValue); } ticketTypeNode.addEventListener('click', function (event) { diff --git a/application/views/mobile_first/ah-lantern-form.php b/application/views/mobile_first/ah-lantern-form.php index d2499acf..f9b9a198 100644 --- a/application/views/mobile_first/ah-lantern-form.php +++ b/application/views/mobile_first/ah-lantern-form.php @@ -478,8 +478,9 @@ for (var i = 0; i < ticketTypeList.length; i++) { var ticketTypeNode = ticketTypeList[i]; - currentTicketPrice = parseInt(ticketTypeNode.getAttribute('data-price')); + var dataPrice = parseInt(ticketTypeNode.getAttribute('data-price')); if (ticketTypeNode.checked) { + currentTicketPrice = dataPrice; calcTotalPrice(currentTicketPrice, adultNumberValue); } ticketTypeNode.addEventListener('click', function (event) {