Plugin Directory

Changeset 2638849


Ignore:
Timestamp:
12/03/2021 01:37:02 AM (4 years ago)
Author:
rezgo
Message:

committing version 4.1.3

Location:
rezgo/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • rezgo/trunk/3ds_return_url.php

    r2621083 r2638849  
    44
    55        <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);
    79        </script>
    810
  • rezgo/trunk/readme.txt

    r2621708 r2638849  
    44Tags:  tour operator software, tour booking system, activity booking software, tours, activities, events, attractions, booking, reservation, ticketing, e-commerce, business, rezgo
    55Requires at least: 3.3.0
    6 Tested up to: 5.8.1
     6Tested up to: 5.8.2
    77Requires PHP: 5.2
    8 Stable tag: 4.1.2
     8Stable tag: 4.1.3
    99
    1010Sell your tours, activities, and events on your WordPress website using Rezgo.
     
    135135== Changelog ==
    136136
     137= 4.1.3 =
     138* Disabled gift card purchase for TMT gateway
     139* Changed labels on order / booking
     140* Bug fixes
     141
    137142= 4.1.2 =
    138143* Bug fix (PHP short tag)
  • rezgo/trunk/rezgo.php

    r2621708 r2638849  
    55    Plugin URI: https://wordpress.org/plugins/rezgo/
    66    Description: Connect WordPress to your Rezgo account and accept online bookings directly on your website.
    7     Version: 4.1.2
     7    Version: 4.1.3
    88    Author: Rezgo
    99    Author URI: http://www.rezgo.com
     
    5656define('REZGO_PLUGIN_NAME', 'rezgo');
    5757define('REZGO_PLUGIN_DIR', plugin_dir_path(__FILE__));
    58 define('REZGO_PLUGIN_VERSION', '4.1.2');
     58define('REZGO_PLUGIN_VERSION', '4.1.3');
    5959
    6060require_once('rezgo/include/page_header.php');
  • rezgo/trunk/rezgo/include/class.rezgo.php

    r2618089 r2638849  
    14121412            $this->company_index = ($a) ? (string) $a : 0;
    14131413            $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;
    14151415        }
    14161416       
  • rezgo/trunk/rezgo/templates/default/book.php

    r2618089 r2638849  
    179179                                                <?php if($site->getTourForms('primary')) { ?>
    180180
     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
    181189                                                    <div class="row rezgo-form-group rezgo-additional-info primary-forms-container">
    182190                                                        <div class="col-sm-12 rezgo-sub-title form-sectional-header">
     
    196204                                                                        type="text" class="form-control<?php echo ($form->require) ? ' required' : ''; ?>"
    197205                                                                        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']?>">
    199207                                                                    <?php if ($form->instructions){ ?>
    200208                                                                        <p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p>
     
    237245
    238246                                                                    });
    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))?>";
    240248
    241249                                                                    if (select_primary_<?php echo $c?>_<?php echo $form->id?> != ''){
     
    292300                                                                        }
    293301                                                                    });
    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))?>";
    295303
    296304                                                                    if (multiselect_primary_<?php echo $c?>_<?php echo $form->id?>.length > 1){
     
    316324                                                                <div class="form-group rezgo-custom-form rezgo-form-input">
    317325                                                                    <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>
    319327                                                                    <?php if ($form->instructions){ ?>
    320328                                                                        <p class="rezgo-form-comment"><span><?php echo $form->instructions?></span></p>
     
    359367                                                                    });
    360368
    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'){ ?>
    362370                                                                        jQuery("input[data-addon='checkbox-<?php echo $c?>_<?php echo $form->id?>']").prop('checked', true);
    363371                                                                        jQuery("input[data-addon='checkbox-<?php echo $c?>_<?php echo $form->id?>_hidden']").attr("disabled", true);
     
    400408                                                                    });
    401409
    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'){ ?>
    403411                                                                        jQuery("input[data-addon='checkbox_price-<?php echo $c?>_<?php echo $form->id?>']").prop('checked', true);
    404412                                                                        jQuery("input[data-addon='checkbox_price-<?php echo $c?>_<?php echo $form->id?>_hidden']").attr("disabled", true);
     
    585593
    586594                                                            <?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
    587604                                                                <?php if($form->require) $required_fields++; ?>
    588605
     
    597614                                                                            class="form-control<?php echo ($form->require) ? ' required' : ''; ?> "
    598615                                                                            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']?>">
    600617
    601618                                                                        <?php if ($form->instructions){ ?>
     
    641658                                                                        });
    642659
    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))?>";
    644661
    645662                                                                        if (select_group_<?php echo $guest_uid?>_<?php echo $form->id?> != ''){
     
    698715                                                                            }
    699716                                                                        });
    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))?>";
    701718
    702719                                                                        if (multiselect_group_<?php echo $guest_uid?>_<?php echo $form->id?>.length > 1){
     
    725742                                                                        <label class="control-label"><span><?php echo $form->title?><?php if($form->require) { ?> <em class="fa fa-asterisk"></em><?php } ?></span></label>
    726743
    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>
    728745
    729746                                                                        <?php if ($form->instructions){ ?>
     
    772789                                                                        });
    773790
    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'){ ?>
    775792                                                                            jQuery("input[data-addon='checkbox_tour_group-<?php echo $checkbox_uid?>']").prop('checked', true);
    776793                                                                            jQuery("input[data-addon='checkbox_tour_group-<?php echo $checkbox_uid?>_hidden']").attr("disabled", true);
     
    818835                                                                        });
    819836
    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'){ ?>
    821838                                                                            jQuery("input[data-addon='checkbox_price_tour_group-<?php echo $checkbox_uid?>']").prop('checked', true);
    822839                                                                            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  
    306306                    <div class="flex-table">
    307307                        <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>
    309309                            <div class="flex-table-info"><?php echo $booking->trans_num?></div>
    310310                        </div>
  • rezgo/trunk/rezgo/templates/default/booking_complete_print.php

    r2618089 r2638849  
    179179                        <div class="flex-table">
    180180                            <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>
    182182                                <div class="flex-table-info"><?php echo $booking->trans_num?></div>
    183183                            </div>
  • rezgo/trunk/rezgo/templates/default/booking_order.php

    r2618089 r2638849  
    9090                        <div class="flex-table">
    9191                            <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>
    9393                                <div class="flex-table-info"><?php echo $booking->trans_num?></div>
    9494                            </div>
     
    378378        </div><!-- //  rezgo-confirmation -->
    379379    </div><!-- //  .jumbotron -->
    380 </div><!-- //  .rezgo-container --> 
     380</div><!-- //  .rezgo-container -->
    381381
    382382<?php if (DEBUG) { ?><pre><?php print_r($booking);?></pre><?php } ?>
  • rezgo/trunk/rezgo/templates/default/booking_order_print.php

    r2618089 r2638849  
    7878                            <div class="flex-table">
    7979                                <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>
    8181                                    <div class="flex-table-info"><?php echo $booking->trans_num?></div>
    8282                                </div>
  • rezgo/trunk/rezgo/templates/default/frame_footer.php

    r2618089 r2638849  
    77        <?php } ?>
    88    </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 } ?>
    529
    5310    <?php if ($_REQUEST['mode'] == 'page_details') {?>
  • rezgo/trunk/rezgo/templates/default/gift_card.php

    r2618089 r2638849  
    11411141                                            }
    11421142                                        },
    1143                                         return_url: window.origin + '/3ds_return_url.php'
     1143                                        return_url: window.top.origin + '<?php echo $site->base?>' + '/3ds_return_url'
    11441144                                    },
    11451145                                    // Disable the default next action handling because we want to use an iframe
  • rezgo/trunk/rezgo/templates/default/waiver.php

    r2618089 r2638849  
    264264        <table border="0" cellspacing="0" cellpadding="2">
    265265          <tr>
    266             <td class="rezgo-td-label">Transaction&nbsp;#:</td>
     266            <td class="rezgo-td-label">Booking&nbsp;#:</td>
    267267            <td class="rezgo-td-data"><?php echo $booking->trans_num?></td>
    268268          </tr>
Note: See TracChangeset for help on using the changeset viewer.