Merge branch 'master' of github.com:hainatravel/information-system into master

hotfix/paypal-note
candice 2 years ago
commit 6d6663e5db

@ -352,7 +352,6 @@
</div>
<button class="sendButton" id="submit_gp_form" type="button">Inquire Now</button>
<input name="total_price" id="totalPriceHidden" type="hidden" value="10000" />
<input name="payment_required" id="payment_required" type="hidden" value="" />
<input name="product_code" type="hidden" value="<?php echo $meta_product_code; ?>"/>
<input name="itinerary" type="hidden" value="<?php echo $information->ic_title; ?>" />
@ -397,16 +396,6 @@
var adultNumberValue = el('adultNumber').value;
const plusAdultBtn = el('plusAdult');
const minusAdultBtn = el('minusAdult');
const totalPriceHidden = el("totalPriceHidden");
function calcTotalPrice(ticketPrice, adultNumber) {
var totalPrice = ticketPrice * adultNumber;
if (adultNumber >= 10) {
totalPrice = totalPrice * 0.95;
}
return totalPrice.toFixed(2);
}
plusAdultBtn.on('click', () => {
adultNumberValue++;
@ -460,11 +449,7 @@
const submitFormBtn = el('submit_gp_form');
const gp_form = el('gp_form');
submitFormBtn.on('click', () => {
if (validateGPForm()) {
var ticketPrice = 300;
var totalPrice = calcTotalPrice(ticketPrice, adultNumberValue);
totalPriceHidden.value = totalPrice;
if (validateGPForm()) {
if (typeof(grecaptcha) === "undefined") {
console.warn('grecaptcha is disabled.');
gp_form.submit();

@ -327,7 +327,6 @@
</div>
<button class="sendButton" id="submit_gp_form" type="button">Inquire</button>
<input name="total_price" id="totalPriceHidden" type="hidden" value="10000" />
<input name="payment_description" type="hidden" value="Booking Yi Peng Festival Mini-Group Tour" />
<input name="product_code" type="hidden" value="<?php echo $meta_product_code; ?>"/>
<input name="itinerary" type="hidden" value="<?php echo $information->ic_title; ?>" />
@ -375,16 +374,6 @@
const minusAdultBtn = el('minusAdult');
const plusKidBtn = el('plusKid');
const minusKidBtn = el('minusKid');
const totalPriceHidden = el("totalPriceHidden");
function calcTotalPrice(ticketPrice, adultNumber) {
var totalPrice = ticketPrice * adultNumber;
if (adultNumber >= 10) {
totalPrice = totalPrice * 0.95;
}
return totalPrice.toFixed(2);
}
plusAdultBtn.on('click', () => {
adultNumberValue++;
@ -449,9 +438,6 @@
const gp_form = el('gp_form');
submitFormBtn.on('click', () => {
if (validateGPForm()) {
var ticketPrice = 200;
var totalPrice = calcTotalPrice(ticketPrice, adultNumberValue);
totalPriceHidden.value = totalPrice;
if (typeof(grecaptcha) === "undefined") {
console.warn('grecaptcha is disabled.');

Loading…
Cancel
Save