Changeset 2638849
- Timestamp:
- 12/03/2021 01:37:02 AM (4 years ago)
- Location:
- rezgo/trunk
- Files:
-
- 12 edited
-
3ds_return_url.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
rezgo.php (modified) (2 diffs)
-
rezgo/include/class.rezgo.php (modified) (1 diff)
-
rezgo/templates/default/book.php (modified) (14 diffs)
-
rezgo/templates/default/booking_complete.php (modified) (1 diff)
-
rezgo/templates/default/booking_complete_print.php (modified) (1 diff)
-
rezgo/templates/default/booking_order.php (modified) (2 diffs)
-
rezgo/templates/default/booking_order_print.php (modified) (1 diff)
-
rezgo/templates/default/frame_footer.php (modified) (1 diff)
-
rezgo/templates/default/gift_card.php (modified) (1 diff)
-
rezgo/templates/default/waiver.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rezgo/trunk/3ds_return_url.php
r2621083 r2638849 4 4 5 5 <script> 6 window.top.postMessage('3DS-authentication-complete'); 6 let url = window.location.protocol + '//' + window.location.hostname + '/' + '<?php echo $_REQUEST['wp_slug']?>'; 7 console.log(url); 8 window.top.postMessage('3DS-authentication-complete', url); 7 9 </script> 8 10 -
rezgo/trunk/readme.txt
r2621708 r2638849 4 4 Tags: tour operator software, tour booking system, activity booking software, tours, activities, events, attractions, booking, reservation, ticketing, e-commerce, business, rezgo 5 5 Requires at least: 3.3.0 6 Tested up to: 5.8. 16 Tested up to: 5.8.2 7 7 Requires PHP: 5.2 8 Stable tag: 4.1. 28 Stable tag: 4.1.3 9 9 10 10 Sell your tours, activities, and events on your WordPress website using Rezgo. … … 135 135 == Changelog == 136 136 137 = 4.1.3 = 138 * Disabled gift card purchase for TMT gateway 139 * Changed labels on order / booking 140 * Bug fixes 141 137 142 = 4.1.2 = 138 143 * Bug fix (PHP short tag) -
rezgo/trunk/rezgo.php
r2621708 r2638849 5 5 Plugin URI: https://wordpress.org/plugins/rezgo/ 6 6 Description: Connect WordPress to your Rezgo account and accept online bookings directly on your website. 7 Version: 4.1. 27 Version: 4.1.3 8 8 Author: Rezgo 9 9 Author URI: http://www.rezgo.com … … 56 56 define('REZGO_PLUGIN_NAME', 'rezgo'); 57 57 define('REZGO_PLUGIN_DIR', plugin_dir_path(__FILE__)); 58 define('REZGO_PLUGIN_VERSION', '4.1. 2');58 define('REZGO_PLUGIN_VERSION', '4.1.3'); 59 59 60 60 require_once('rezgo/include/page_header.php'); -
rezgo/trunk/rezgo/include/class.rezgo.php
r2618089 r2638849 1412 1412 $this->company_index = ($a) ? (string) $a : 0; 1413 1413 $this->XMLRequest(company); 1414 return ( int) $this->company_response[$this->company_index]->using_gateway;1414 return (((int) $this->company_response[$this->company_index]->using_gateway) && ($this->company_response[$this->company_index]->gateway_id != 'tmt')) ? 1 : 0; 1415 1415 } 1416 1416 -
rezgo/trunk/rezgo/templates/default/book.php
r2618089 r2638849 179 179 <?php if($site->getTourForms('primary')) { ?> 180 180 181 <?php 182 // match form index key with form value (prevent mismatch if form is set to BE only) 183 $cart_pf[$c-1] = $cart_data[$c-1]->primary_forms->form; 184 foreach ($cart_pf[$c-1] as $k => $v) { 185 $cart_pf_val[$c-1][(int)$v->num]['value'] = $v->value; 186 } 187 ?> 188 181 189 <div class="row rezgo-form-group rezgo-additional-info primary-forms-container"> 182 190 <div class="col-sm-12 rezgo-sub-title form-sectional-header"> … … 196 204 type="text" class="form-control<?php echo ($form->require) ? ' required' : ''; ?>" 197 205 name="booking[<?php echo $c?>][tour_forms][<?php echo $form->id?>]" 198 value="<?php echo $cart_ data[$c-1]->primary_forms->form[(int) $form->id]->value?>">206 value="<?php echo $cart_pf_val[$c-1][(int)$form->id]['value']?>"> 199 207 <?php if ($form->instructions){ ?> 200 208 <p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p> … … 237 245 238 246 }); 239 let select_primary_<?php echo $c?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_ data[$c-1]->primary_forms->form[(int) $form->id]->value, ENT_QUOTES))?>";247 let select_primary_<?php echo $c?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_pf_val[$c-1][(int)$form->id]['value'], ENT_QUOTES))?>"; 240 248 241 249 if (select_primary_<?php echo $c?>_<?php echo $form->id?> != ''){ … … 292 300 } 293 301 }); 294 let multiselect_primary_<?php echo $c?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_ data[$c-1]->primary_forms->form[(int) $form->id]->value, ENT_QUOTES))?>";302 let multiselect_primary_<?php echo $c?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_pf_val[$c-1][(int)$form->id]['value'], ENT_QUOTES))?>"; 295 303 296 304 if (multiselect_primary_<?php echo $c?>_<?php echo $form->id?>.length > 1){ … … 316 324 <div class="form-group rezgo-custom-form rezgo-form-input"> 317 325 <label class="control-label"><?php echo $form->title?><?php if($form->require) { ?> <em class="fa fa-asterisk"></em><?php } ?></label> 318 <textarea id="textarea-<?php echo $c?>_<?php echo $form->id?>" class="form-control<?php echo ($form->require) ? ' required' : ''; ?>" name="booking[<?php echo $c?>][tour_forms][<?php echo $form->id?>]" cols="40" rows="4"><?php echo $cart_ data[$c-1]->primary_forms->form[(int) $form->id]->value?></textarea>326 <textarea id="textarea-<?php echo $c?>_<?php echo $form->id?>" class="form-control<?php echo ($form->require) ? ' required' : ''; ?>" name="booking[<?php echo $c?>][tour_forms][<?php echo $form->id?>]" cols="40" rows="4"><?php echo $cart_pf_val[$c-1][(int)$form->id]['value']?></textarea> 319 327 <?php if ($form->instructions){ ?> 320 328 <p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p> … … 359 367 }); 360 368 361 <?php if ($cart_ data[$c-1]->primary_forms->form[(int) $form->id]->value== 'on'){ ?>369 <?php if ($cart_pf_val[$c-1][(int)$form->id]['value'] == 'on'){ ?> 362 370 jQuery("input[data-addon='checkbox-<?php echo $c?>_<?php echo $form->id?>']").prop('checked', true); 363 371 jQuery("input[data-addon='checkbox-<?php echo $c?>_<?php echo $form->id?>_hidden']").attr("disabled", true); … … 400 408 }); 401 409 402 <?php if ($cart_ data[$c-1]->primary_forms->form[(int) $form->id]->value== 'on'){ ?>410 <?php if ($cart_pf_val[$c-1][(int)$form->id]['value'] == 'on'){ ?> 403 411 jQuery("input[data-addon='checkbox_price-<?php echo $c?>_<?php echo $form->id?>']").prop('checked', true); 404 412 jQuery("input[data-addon='checkbox_price-<?php echo $c?>_<?php echo $form->id?>_hidden']").attr("disabled", true); … … 585 593 586 594 <?php foreach( $site->getTourForms('group') as $form ) { ?> 595 596 <?php 597 // match form index key with form value (prevent mismatch if form is set to BE only) 598 $cart_gf[$c-1] = $cart_data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form; 599 foreach ($cart_gf[$c-1] as $k => $v) { 600 $cart_gf_val[$c-1][(int)$v->num]['value'] = $v->value; 601 } 602 ?> 603 587 604 <?php if($form->require) $required_fields++; ?> 588 605 … … 597 614 class="form-control<?php echo ($form->require) ? ' required' : ''; ?> " 598 615 name="booking[<?php echo $c?>][tour_group][<?php echo $price->name?>][<?php echo $num?>][forms][<?php echo $form->id?>]" 599 value="<?php echo $cart_ data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form[(int) $form->id]->value?>">616 value="<?php echo $cart_gf_val[$c-1][(int)$form->id]['value']?>"> 600 617 601 618 <?php if ($form->instructions){ ?> … … 641 658 }); 642 659 643 let select_group_<?php echo $guest_uid?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_ data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form[(int) $form->id]->value, ENT_QUOTES))?>";660 let select_group_<?php echo $guest_uid?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_gf_val[$c-1][(int)$form->id]['value'], ENT_QUOTES))?>"; 644 661 645 662 if (select_group_<?php echo $guest_uid?>_<?php echo $form->id?> != ''){ … … 698 715 } 699 716 }); 700 let multiselect_group_<?php echo $guest_uid?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_ data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form[(int) $form->id]->value, ENT_QUOTES))?>";717 let multiselect_group_<?php echo $guest_uid?>_<?php echo $form->id?> = "<?php echo addslashes(html_entity_decode($cart_gf_val[$c-1][(int)$form->id]['value'], ENT_QUOTES))?>"; 701 718 702 719 if (multiselect_group_<?php echo $guest_uid?>_<?php echo $form->id?>.length > 1){ … … 725 742 <label class="control-label"><span><?php echo $form->title?><?php if($form->require) { ?> <em class="fa fa-asterisk"></em><?php } ?></span></label> 726 743 727 <textarea class="form-control<?php echo ($form->require) ? ' required' : ''; ?>" name="booking[<?php echo $c?>][tour_group][<?php echo $price->name?>][<?php echo $num?>][forms][<?php echo $form->id?>]" cols="40" rows="4"><?php echo $cart_ data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form[(int) $form->id]->value?></textarea>744 <textarea class="form-control<?php echo ($form->require) ? ' required' : ''; ?>" name="booking[<?php echo $c?>][tour_group][<?php echo $price->name?>][<?php echo $num?>][forms][<?php echo $form->id?>]" cols="40" rows="4"><?php echo $cart_gf_val[$c-1][(int)$form->id]['value']?></textarea> 728 745 729 746 <?php if ($form->instructions){ ?> … … 772 789 }); 773 790 774 <?php if ($cart_ data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form[(int) $form->id]->value== 'on'){ ?>791 <?php if ($cart_gf_val[$c-1][(int)$form->id]['value'] == 'on'){ ?> 775 792 jQuery("input[data-addon='checkbox_tour_group-<?php echo $checkbox_uid?>']").prop('checked', true); 776 793 jQuery("input[data-addon='checkbox_tour_group-<?php echo $checkbox_uid?>_hidden']").attr("disabled", true); … … 818 835 }); 819 836 820 <?php if ($cart_ data[$c-1]->tour_group->{$price->name}[(int) $num-1]->forms->form[(int) $form->id]->value== 'on'){ ?>837 <?php if ($cart_gf_val[$c-1][(int)$form->id]['value'] == 'on'){ ?> 821 838 jQuery("input[data-addon='checkbox_price_tour_group-<?php echo $checkbox_uid?>']").prop('checked', true); 822 839 jQuery("input[data-addon='checkbox_price_tour_group-<?php echo $checkbox_uid?>_hidden']").attr("disabled", true); -
rezgo/trunk/rezgo/templates/default/booking_complete.php
r2618089 r2638849 306 306 <div class="flex-table"> 307 307 <div id="rezgo-receipt-transnum" class="flex-table-group flex-50"> 308 <div class="flex-table-header rezgo-order-transnum"><span> Transaction#</span></div>308 <div class="flex-table-header rezgo-order-transnum"><span>Booking #</span></div> 309 309 <div class="flex-table-info"><?php echo $booking->trans_num?></div> 310 310 </div> -
rezgo/trunk/rezgo/templates/default/booking_complete_print.php
r2618089 r2638849 179 179 <div class="flex-table"> 180 180 <div id="rezgo-receipt-transnum" class="flex-table-group flex-50"> 181 <div class="flex-table-header rezgo-order-transnum"><span> Transaction#</span></div>181 <div class="flex-table-header rezgo-order-transnum"><span>Booking #</span></div> 182 182 <div class="flex-table-info"><?php echo $booking->trans_num?></div> 183 183 </div> -
rezgo/trunk/rezgo/templates/default/booking_order.php
r2618089 r2638849 90 90 <div class="flex-table"> 91 91 <div id="rezgo-receipt-transnum" class="flex-table-group"> 92 <div class="flex-table-header rezgo-order-transnum"><span> Transaction#</span></div>92 <div class="flex-table-header rezgo-order-transnum"><span>Booking #</span></div> 93 93 <div class="flex-table-info"><?php echo $booking->trans_num?></div> 94 94 </div> … … 378 378 </div><!-- // rezgo-confirmation --> 379 379 </div><!-- // .jumbotron --> 380 </div><!-- // .rezgo-container --> 380 </div><!-- // .rezgo-container --> 381 381 382 382 <?php if (DEBUG) { ?><pre><?php print_r($booking);?></pre><?php } ?> -
rezgo/trunk/rezgo/templates/default/booking_order_print.php
r2618089 r2638849 78 78 <div class="flex-table"> 79 79 <div id="rezgo-receipt-transnum" class="flex-table-group"> 80 <div class="flex-table-header rezgo-order-transnum"><span> Transaction#</span></div>80 <div class="flex-table-header rezgo-order-transnum"><span>Booking #</span></div> 81 81 <div class="flex-table-info"><?php echo $booking->trans_num?></div> 82 82 </div> -
rezgo/trunk/rezgo/templates/default/frame_footer.php
r2618089 r2638849 7 7 <?php } ?> 8 8 </div> 9 10 <?php if($_REQUEST['mode'] == 'page_book' || $_REQUEST['mode'] == 'gift_card' ) {11 $company = $site->getCompanyDetails();12 13 ?>14 <div class="rezgo-content-row" id="rezgo-billing-footer">15 16 <?php if ( (string) $company->gateway_id == 'rezgo') { ?>17 <div class="col-xs-8 col-sm-4" id="rezgo-billing-address">18 <address>19 <strong><?php echo $company->company_name; ?></strong><br />20 <?php echo $company->address_1; ?> <?php echo $company->address_2; ?><br />21 <?php echo $company->city; ?>, <?php if($site->exists($company->state_prov)) { ?><?php echo $company->state_prov; ?>, <?php } ?><?php echo $site->countryName($company->country); ?><br />22 <?php echo $company->postal_code; ?><br />23 <?php if($site->exists($company->phone)) { ?>Phone: <?php echo $company->phone; ?><br /><?php } ?>24 Email: <a href="mailto:<?php echo $company->email; ?>"><?php echo $company->email; ?></a>25 <?php if($site->exists($company->tax_id)) { ?>26 <br />Tax ID: <?php echo $company->tax_id; ?>27 <?php } ?>28 </address>29 </div>30 31 <div class="col-xs-12 col-sm-6" id="rezgo-tmt-info">32 <div id="tmt-logo">33 <a href="https://www.trustmytravel.com/terms/" target="_blank" title="TMTProtects.Me"><img src="<?php echo $site->path; ?>/img/logos/tmt-logo.png" class="img-responsive" alt="TMTProtects.Me" /></a>34 </div>35 <div id="tmt-address-container">36 <address>37 This merchant uses Trust My Travel Ltd to protect and process credit card payments. All credit card payments placed through this website are protected by <a href="https://www.trustmytravel.com/terms/" target="_blank" title="TMTProtects.Me">TMTProtects.Me</a> <br />38 <span id="tmt-address">39 For payment questions, please contact: <br />40 Tel: 44(0)1780 438828. <br />41 The Cedars, Ryhall PE9 4HL, United Kingdom.42 </span>43 </address>44 </div>45 </div>46 47 <?php } ?>48 49 </div>50 51 <?php } ?>52 9 53 10 <?php if ($_REQUEST['mode'] == 'page_details') {?> -
rezgo/trunk/rezgo/templates/default/gift_card.php
r2618089 r2638849 1141 1141 } 1142 1142 }, 1143 return_url: window. origin + '/3ds_return_url.php'1143 return_url: window.top.origin + '<?php echo $site->base?>' + '/3ds_return_url' 1144 1144 }, 1145 1145 // Disable the default next action handling because we want to use an iframe -
rezgo/trunk/rezgo/templates/default/waiver.php
r2618089 r2638849 264 264 <table border="0" cellspacing="0" cellpadding="2"> 265 265 <tr> 266 <td class="rezgo-td-label"> Transaction #:</td>266 <td class="rezgo-td-label">Booking #:</td> 267 267 <td class="rezgo-td-data"><?php echo $booking->trans_num?></td> 268 268 </tr>
Note: See TracChangeset
for help on using the changeset viewer.