Plugin Directory

Changeset 1580432


Ignore:
Timestamp:
01/23/2017 03:45:51 PM (9 years ago)
Author:
Houghtelin
Message:

22357bb Merge pull request #144 from Gueststream-Inc/barefoot_support

Location:
vrpconnector/trunk
Files:
8 added
11 edited

Legend:

Unmodified
Added
Removed
  • vrpconnector/trunk/README.txt

    r1557771 r1580432  
    33Tags: Vacation Rental Platform, Gueststream, VRP Connector, ISILink, HomeAway, Escapia, Barefoot, VRMGR
    44Requires at least: 3.0.1
    5 Tested up to: 4.7
     5Tested up to: 4.7.1
    66Stable tag: trunk
    77License: GPLv2 or later
     
    5353
    5454== Changelog ==
     55= 1.5.0 =
     56* Barefoot Property Management Software support established.
     57
    5558= 1.4.5 =
    5659* Cleaning up code style in Theme files to better match WordPress code style standards.
  • vrpconnector/trunk/VRPConnector.php

    r1557771 r1580432  
    55 * Description: Vacation Rental Platform Connector.
    66 * Author: Gueststream
    7  * Version: 1.4.5
     7 * Version: 1.5.0
    88 * Author URI: http://www.gueststream.com/
    99 *
  • vrpconnector/trunk/themes/mountainsunset/booking.php

    r1545576 r1580432  
    1515    $query = $wp_query;
    1616    ?>
    17 <div id="vrp">
    18     <div id="myModal2" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
    19          aria-hidden="true">
    20         <div class="modal-header">
    21             <h3>Reservation Details</h3>
    22         </div>
    23         <div class="modal-body">
     17    <div id="vrp">
     18
     19    <div class="modal-header">
     20        <h3>Reservation Details</h3>
     21    </div>
     22    <div>
     23
     24        <table class="table table-striped">
     25            <tr>
     26                <td><b>Property Name:</b></td>
     27                <td><b><?php echo esc_html( $data->Name ); ?></b></td>
     28            </tr>
     29
     30            <tr>
     31                <td>Arrival:</td>
     32                <td><b><?php echo esc_html( $data->Arrival ); ?></b></td>
     33            </tr>
     34            <tr>
     35                <td>Departure:</td>
     36                <td><b><?php echo esc_html( $data->Departure ); ?></b></td>
     37            </tr>
     38            <tr>
     39                <td>Nights:</td>
     40                <td><b><?php echo esc_html( $data->Nights ); ?></b></td>
     41            </tr>
     42        </table>
     43
     44        <table id="ratebreakdown" class="table table-striped">
     45            <?php
     46            if ( isset( $data->Charges ) ) :
     47                foreach ( $data->Charges as $v ) :
     48                    ?>
     49                    <tr>
     50                        <td><?php echo esc_html( $v->Description ); ?>:</td>
     51                        <td><?php if ( isset( $v->Type ) && 'discount' === $v->Type ) {
     52                                echo '-';
     53                            } ?>$<?php echo esc_html( number_format( $v->Amount, 2 ) ); ?>
     54                        </td>
     55                    </tr>
     56                    <?php
     57                endforeach;
     58            endif;
     59            ?>
     60
     61            <?php if ( isset( $data->booksettings->HasPackages ) ) { ?>
     62                <tr>
     63                    <td>Add-on Package:</td>
     64                    <td id="packageinfo">
     65                        $<?php echo esc_html( number_format( $data->package->packagecost, 2 ) ); ?>
     66                    </td>
     67                </tr>
     68            <?php } ?>
     69            <tr>
     70                <td>Tax:</td>
     71                <td>$<?php echo esc_html( number_format( $data->TotalTax, 2 ) ); ?></td>
     72            </tr>
     73            <tr>
     74                <td><b>Total Cost:</b></td>
     75                <td id="TotalCost">
     76                    $<?php echo esc_html( number_format( $data->TotalCost - $data->InsuranceAmount, 2 ) ); ?>
     77                </td>
     78            </tr>
     79        </table>
     80
     81        <?php if ( isset( $data->HasInsurance ) && $data->HasInsurance ) { ?>
     82            <h3>Optional Travel Insurance</h3>
    2483            <table class="table table-striped">
    2584                <tr>
    26                     <td><b>Property Name:</b></td>
    27                     <td><b><?php echo esc_html( $data->Name ); ?></b></td>
    28                 </tr>
    29 
    30                 <tr>
    31                     <td>Arrival:</td>
    32                     <td><b><?php echo esc_html( $data->Arrival ); ?></b></td>
     85                    <td>Optional Travel Insurance:</td>
     86                    <td>$<?php echo esc_html( number_format( $data->InsuranceAmount, 2 ) ); ?></td>
    3387                </tr>
    3488                <tr>
    35                     <td>Departure:</td>
    36                     <td><b><?php echo esc_html( $data->Departure ); ?></b></td>
    37                 </tr>
    38                 <tr>
    39                     <td>Nights:</td>
    40                     <td><b><?php echo esc_html( $data->Nights ); ?></b></td>
    41                 </tr>
    42                 <?php
    43                 if ( isset( $data->Charges ) ) {
    44                     foreach ( $data->Charges as $v ) :
    45                         ?>
    46                         <tr>
    47                             <td><?php echo esc_html( $v->Description ); ?>:</td>
    48                             <td><?php if ( isset( $v->Type ) && 'discount' === $v->Type ) {
    49                                     echo '-';
    50 } ?>$<?php echo esc_html( number_format( $v->Amount, 2 ) ); ?>
    51                             </td>
    52                         </tr>
    53                     <?php
    54                     endforeach;
    55                 }
    56                 ?>
    57 
    58                 <?php if ( isset( $data->booksettings->HasPackages ) ) { ?>
    59                     <tr>
    60                         <td>Add-on Package:</td>
    61                         <td id="packageinfo">
    62                             $<?php echo esc_html( number_format( $data->package->packagecost, 2 ) ); ?>
    63                         </td>
    64                     </tr>
    65                 <?php } ?>
    66                 <tr>
    67                     <td>Tax:</td>
    68                     <td>$<?php echo esc_html( number_format( $data->TotalTax, 2 ) ); ?></td>
    69                 </tr>
    70                 <tr>
    71                     <td><b>Reservation Total:</b></td>
    72                     <td id="TotalCost">
    73                         <?php
    74                         $total_cost = 0;
    75                         if ( isset( $data->package->TotalCost ) ) {
    76                             $total_cost = $data->package->TotalCost - $data->InsuranceAmount;
    77                         } else {
    78                             $total_cost = $data->TotalCost - $data->InsuranceAmount;
    79                         }
    80                         ?>
    81                         $<?php echo esc_html( number_format( $total_cost, 2 ) ); ?>
    82                     </td>
     89                    <td><b>Reservation Total with Insurance:</b></td>
     90                    <td>$<?php echo esc_html( number_format( $data->TotalCost, 2 ) ); ?></td>
    8391                </tr>
    8492            </table>
     93        <?php } ?>
     94    </div>
    8595
    86             <?php if ( isset( $data->HasInsurance ) && $data->HasInsurance ) { ?>
    87                 <h3>Optional Travel Insurance</h3>
    88                 <table class="table table-striped">
    89                     <tr>
    90                         <td>Optional Travel Insurance:</td>
    91                         <td>$<?php echo esc_html( number_format( $data->InsuranceAmount, 2 ) ); ?></td>
    92                     </tr>
    93                     <tr>
    94                         <td><b>Reservation Total with Insurance:</b></td>
    95                         <?php
    96                         $total_ins = 0;
    97                         if ( isset( $data->package->TotalCost ) ) {
    98                             $total_ins = $data->package->TotalCost;
    99                         } else {
    100                             $total_ins = $data->TotalCost;
    101                         }
    102                         ?>
    103                         <td>$<?php echo esc_html( number_format( $total_ins, 2 ) ); ?></td>
    104                     </tr>
    105                 </table>
    106             <?php } ?>
    107         </div>
    108     </div>
    10996    <div class="alert alert-info" style='text-align:center'>
    110         You are booking <?php echo esc_html( $data->Name ); ?> for <?php echo esc_html( $data->Nights ); ?> nights for
    111         <a href="#myModal2" data-toggle="modal">
    112             <span id="TotalCost2">
    113                 <?php if ( isset( $data->package ) && isset( $data->InsuranceAmount ) ) :
    114                     $grand_total = 0;
    115                     if ( isset( $data->package->TotalCost ) ) {
    116                         $grand_total = $data->package->TotalCost - $data->InsuranceAmount;
    117                     } else {
    118                         $grand_total = $data->TotalCost - $data->InsuranceAmount;
    119                     }
    120                     ?>
    121                 $<?php echo esc_html( number_format( $grand_total, 2 ) ); ?>
    122             </span>
    123         </a>.
    124     <?php else : ?>
    125         $<?php echo esc_html( $data->TotalCost ); ?></span></a>.
    126     <?php
    127     endif;
    128     ?>
     97        You are booking <?php echo esc_html( $data->Name ); ?>
     98        for <?php echo esc_html( $data->Nights ); ?> nights
     99        for $<?php echo esc_html( $data->TotalCost ); ?>.
     100
    129101        <?php
    130102        if ( $data->TotalCost !== $data->DueToday ) {
    131             echo 'A deposit of <a href="#myModal2">$' . esc_html( number_format( $data->DueToday, 2 ) ) . '</a> is due now.';
     103            echo 'A deposit of $<span id="vrp-booking-due-now">' . esc_html( number_format( $data->DueToday,
     104                    2 ) ) . '</span> is due now.';
    132105        }
    133106        ?>
     
    144117        }
    145118        ?>
    146 
    147119    </div>
    148120
    149121    <div class="clear"></div>
    150 
    151 <?php
     122    <?php
    152123}
  • vrpconnector/trunk/themes/mountainsunset/functions.php

    r1570860 r1580432  
    5656        $this->enqueue_theme_script( 'VRPUnitPage', 'vrp.unit.js', [ 'jquery', 'googleMap' ] );
    5757
     58        $this->enqueue_theme_script( 'VRPCheckoutBarefoot', 'vrp.checkout.barefoot.js', [ 'jquery' ] );
     59
    5860        $script_vars = [
    5961            'site_url'           => site_url(),
    6062            'stylesheet_dir_url' => get_stylesheet_directory_uri(),
    6163            'plugin_url'         => plugins_url( '', dirname( dirname( __FILE__ ) ) ),
     64            'ajaxurl'            => admin_url( 'admin-ajax.php' ),
     65            'nonce'              => wp_create_nonce( 'vrp-xsrf-prevention' ),
    6266        ];
    6367        wp_localize_script( 'VRPthemeJS', 'url_paths', $script_vars );
  • vrpconnector/trunk/themes/mountainsunset/js/vrp.unit.js

    r1566802 r1580432  
    109109function ratebreakdown(obj) {
    110110    var tbl = jQuery("#ratebreakdown");
     111    tbl.empty();
     112
    111113    for (var i in obj.Charges) {
    112         var row = "<tr><td>" + obj.Charges[i].Description + "</td><td>$" + obj.Charges[i].Amount + "</td></tr>";
    113         tbl.append(row);
    114     }
     114        tbl.append("<tr><td>" + obj.Charges[i].Description + "</td><td>$" + obj.Charges[i].Amount + "</td></tr>");
     115    }
     116
    115117    if (obj.HasInsurance && obj.HasInsurance == 1) {
    116         var row = "<tr><td>Insurance (optional)</td><td>$" + obj.InsuranceAmount + "</td></tr>";
    117         tbl.append(row);
    118     }
    119     var tax = "<tr><td>Tax:</td><td>$" + obj.TotalTax + "</td></tr>";
    120     var total = "<tr><td><b>Total Cost:</b></td><td><b>$" + obj.TotalCost + "</b></td></tr>";
    121     var totaldue = "<tr class='success'><td><b>Total Due Now:</b></td><td><b>$" + obj.DueToday + "</b></td></tr>";
    122 
    123     tbl.append(tax);
    124     tbl.append(total);
    125     tbl.append(totaldue);
     118        tbl.append("<tr><td>Insurance (optional)</td><td>$" + obj.InsuranceAmount + "</td></tr>");
     119    }
     120
     121    tbl.append("<tr><td>Tax:</td><td>$" + obj.TotalTax + "</td></tr>");
     122    tbl.append("<tr><td><b>Total Cost:</b></td><td><b>$" + obj.TotalCost + "</b></td></tr>");
     123
     124    if(obj.DueToday !== obj.TotalCost) {
     125        // No sense in displaying something that says 'Due Now' if it isn't less than the total cost.
     126        tbl.append("<tr class='success'><td><b>Total Due Now:</b></td><td><b>$" + obj.DueToday + "</b></td></tr>");
     127    }
    126128
    127129    if(obj.PromoCodeDiscount) {
     
    130132        tbl.append(promoCodeDiscount);
    131133    }
     134
     135    jQuery('#vrp-booking-due-now').html(obj.DueToday);
    132136}
    133137
     
    185189    // Unit Page Tabs
    186190    unitTabs = jQuery("#tabs").tabs();
    187 
    188     // Allow outside links to open tabs
    189     jQuery('.open-tab').click(function (event) {
    190         var tab = jQuery(this).attr('href');
    191         unitTabs.tabs("load", 2);
    192     });
    193191
    194192    // Unit Page photo gallery
  • vrpconnector/trunk/themes/mountainsunset/step3.php

    r1533013 r1580432  
    88?>
    99<form
    10     action="<?php echo site_url(); ?>/vrp/book/confirm/?obj[Arrival]=<?php echo esc_attr( $data->Arrival ); ?>&obj[Departure]=<?php echo esc_attr( $data->Departure ); ?>&obj[PropID]=<?php echo esc_attr( $_GET['obj']['PropID'] ); ?>"
     10    action="<?php echo site_url('/vrp/book/confirm/'); ?>?obj[Arrival]=<?php echo esc_attr( $data->Arrival ); ?>&obj[Departure]=<?php echo esc_attr( $data->Departure ); ?>&obj[PropID]=<?php echo esc_attr( $_GET['obj']['PropID'] ); ?>"
    1111    id="vrpbookform" method="post">
    1212    <div class="userbox" id="guestinfodiv">
     
    120120                        <td>
    121121                            <input type="hidden" name="booking[adults]"
    122                                    value="<?php echo esc_attr( $vrp->search->adults ); ?>"/>
     122                                   value="<?php echo esc_attr( $vrp->search->adults ); ?>"/>
    123123                            <?php echo esc_html( $vrp->search->adults ); ?>
    124124                            <input type="hidden"
    125                                    name="booking[children]"
    126                                    value="0"/>
     125                                   name="booking[children]"
     126                                   value="0"/>
    127127                        </td>
    128128                    </tr>
     
    130130            </div>
    131131        </div>
    132         <br style="clear:both;"></div>
     132        <br style="clear:both;">
     133    </div>
    133134
    134135    <?php if ( isset( $data->HasInsurance ) && $data->HasInsurance ) : ?>
     
    142143                Would you like to purchase the optional travel insurance? <br>
    143144                <br>
    144                 <input type="radio" name="booking[acceptinsurance]" value="1" required /> Yes
    145                 <input type="radio" name="booking[acceptinsurance]" value="0" /> No
     145                <input type="radio" name="booking[acceptinsurance]" value="1" required/> Yes
     146                <input type="radio" name="booking[acceptinsurance]" value="0"/> No
    146147
    147148                <input type="hidden" name="booking[InsuranceAmount]"
    148                        value="<?php echo esc_attr( $data->InsuranceAmount ); ?>">
     149                       value="<?php echo esc_attr( $data->InsuranceAmount ); ?>">
    149150
    150151                <?php if ( isset( $data->InsuranceID ) ) : // Escapia Insurance ID ?>
    151152                    <input type="hidden" name="booking[InsuranceID]"
    152                            value="<?php echo $data->InsuranceID; ?>" />
     153                           value="<?php echo $data->InsuranceID; ?>"/>
    153154                <?php endif; ?>
    154155
     
    165166                    ?>
    166167                    <input type="hidden" name="booking[InsuranceTaxAmount]"
    167                            value="<?php echo $data->InsuranceTaxAmount; ?>" />
     168                           value="<?php echo $data->InsuranceTaxAmount; ?>"/>
    168169                <?php endif; ?>
    169170            </div>
     
    172173        <input type="hidden" name="booking[acceptinsurance]" value="0">
    173174    <?php endif; ?>
     175
     176    <?php if ( ! empty( $data->addons ) ) :
     177        // Currently only applicable to Barefoot PMS. ?>
     178        <div class="vrpgrid_12 alpha omega userbox">
     179            <h3>Addons</h3>
     180
     181            <?php foreach ( $data->addons as $addon ) :
     182                $checked = '';
     183                foreach ( $data->Charges as $charge ) :
     184                    if ( ! empty( $charge->id ) && $charge->id === $addon->id ) :
     185                        $checked = 'checked';
     186                    endif;
     187                endforeach;
     188                ?>
     189                <input type="checkbox"
     190                       id="addon_<?php echo esc_attr( $addon->id ); ?>"
     191                       name="booking[addon][]"
     192                       class="vrp-booking-addon"
     193                       value="<?php echo esc_attr( $addon->id ); ?>" <?php echo esc_attr( $checked ); ?>/>
     194                <label for="addon_<?php echo esc_attr( $addon->id ); ?>">
     195                    <?php echo esc_attr( $addon->name ); ?>
     196                </label>
     197                <br/>
     198            <?php endforeach; ?>
     199        </div>
     200    <?php endif; ?>
     201
    174202    <div class="userbox" style="margin-top:20px;">
    175203        <h3>Payment Information</h3>
     
    201229                    <tr id="expYeartr">
    202230                        <td><b>Expiration*:</b></td>
    203                         <td><select name="booking[expMonth]">
     231                        <td>
     232                            <select name="booking[expMonth]">
    204233                                <?php foreach ( range( 1, 12 ) as $month ) : ?>
    205                                     <option value="<?php echo esc_attr(sprintf('%02d',
    206                                     $month)); ?>"><?php echo esc_attr( sprintf( '%02d', $month ) ); ?></option>
     234                                    <option value="<?php echo esc_attr( sprintf( '%02d', $month ) ); ?>">
     235                                        <?php echo esc_attr( sprintf( '%02d', $month ) ); ?>
     236                                    </option>
    207237                                <?php endforeach; ?>
    208238                            </select>/<select name="booking[expYear]">
    209239                                <?php foreach ( range( date( 'Y' ), date( 'Y' ) + 10 ) as $year ) : ?>
    210                                     <option
    211                                         value="<?php echo esc_attr( $year ); ?>"><?php echo esc_attr( $year ); ?></option>
    212                                 <?php endforeach; ?>
    213 
    214                             </select></td>
     240                                    <option value="<?php echo esc_attr( $year ); ?>">
     241                                        <?php echo esc_attr( $year ); ?>
     242                                    </option>
     243                                <?php endforeach; ?>
     244                            </select>
     245                        </td>
    215246                    </tr>
    216247                <?php } else { ?>
    217248                    <tr id="expYeartr">
    218249                        <td><b>Expiration*:</b></td>
    219                         <td><select name="booking[expMonth]">
     250                        <td>
     251                            <select name="booking[expMonth]">
    220252                                <?php foreach ( range( 1, 12 ) as $month ) : ?>
    221                                     <option value="<?php echo esc_attr(sprintf('%02d',
    222                                     $month)); ?>"><?php echo esc_attr( sprintf( '%02d', $month ) ); ?></option>
     253                                    <option value="<?php echo esc_attr( sprintf( '%02d', $month ) ); ?>">
     254                                        <?php echo esc_attr( sprintf( '%02d', $month ) ); ?>
     255                                    </option>
    223256                                <?php endforeach; ?>
    224257                            </select>/<select name="booking[expYear]">
    225258                                <?php foreach ( range( date( 'y' ), date( 'y' ) + 10 ) as $year ) : ?>
    226                                     <option
    227                                         value="<?php echo esc_attr( $year ); ?>"><?php echo esc_attr( $year ); ?></option>
    228                                 <?php endforeach; ?>
    229 
    230                             </select></td>
     259                                    <option value="<?php echo esc_attr( $year ); ?>">
     260                                        <?php echo esc_attr( $year ); ?>
     261                                    </option>
     262                                <?php endforeach; ?>
     263                            </select>
     264                        </td>
    231265                    </tr>
    232266                <?php } ?>
     
    245279
    246280    </div>
     281
    247282    <div class="" style="margin-top:20px; text-align:center">
    248283        <div style="margin:0 auto;width:80%">
     
    251286            <br><br>
    252287
    253             <?php if ( isset( $data->ratecalc ) ) { ?>
    254                 <input type="hidden" name="booking[ratecalc]" value="1">
    255                 <?php
    256                 if ( ! isset( $data->prop->ISIRate ) ) {
    257                     $newrate = $data->TotalCost;
    258                     foreach ( $data->Charges as $v ) {
    259                         if ( $v->Description == 'Rent' ) {
    260                             $newrate = $v->Amount;
    261                         }
    262                     }
    263                 } else {
    264                     $newrate = $data->prop->ISIRate;
    265                 }
    266                 ?>
    267                 <input type="hidden" name="booking[newrate]" value="<?php echo esc_attr( $newrate ); ?>">
    268             <?php } ?>
    269 
     288            <?php if ( isset( $data->leaseid ) ) :
     289                // Barefoot lease id. ?>
     290                <input type="hidden" id="vrp-booking-leaseid" name="booking[leaseid]"
     291                       value="<?php echo esc_attr( $data->leaseid ); ?>"/>
     292            <?php endif; ?>
    270293
    271294            <input type="hidden" name="booking[password]" value=" ">
    272295            <input type="hidden" name="booking[password2]" value=" ">
    273             <input type="hidden" name="booking[PropID]" value="<?php echo esc_attr( $data->PropID ); ?>">
     296            <input type="hidden" id="vrp-prop-id" name="booking[PropID]"
     297                   value="<?php echo esc_attr( $data->PropID ); ?>">
    274298            <input type="hidden" name="booking[arrival]" value="<?php echo esc_attr( $data->Arrival ); ?>">
    275299            <input type="hidden" name="booking[depart]" value="<?php echo esc_attr( $data->Departure ); ?>">
     
    278302            <input type="hidden" name="booking[TotalCost]" value="<?php echo esc_attr( $data->TotalCost ); ?>">
    279303            <input type="hidden" name="booking[TotalBefore]"
    280                    value="<?php echo esc_attr( $data->TotalCost - $data->TotalTax ); ?>">
     304                   value="<?php echo esc_attr( $data->TotalCost - $data->TotalTax ); ?>">
    281305            <input type="hidden" name="booking[TotalTax]" value="<?php echo esc_attr( $data->TotalTax ); ?>">
    282306
    283307            <?php if ( ! empty( $_GET['obj']['PromoCode'] ) || ! empty( $data->promocode ) ) : ?>
    284                 <?php $promoCode = ( ! empty( $_GET['obj']['PromoCode'] )) ? $_GET['obj']['PromoCode'] : $data->promocode; ?>
     308                <?php $promoCode = ( ! empty( $_GET['obj']['PromoCode'] ) ) ? $_GET['obj']['PromoCode'] : $data->promocode; ?>
    285309                <input type="hidden" name="booking[PromoCode]" value="<?php echo $promoCode ?>">
    286310            <?php endif; ?>
    287311
    288             <?php if ( ! empty( $_GET['obj']['Pets'] ) ) : ?>
    289                 <input type="hidden" name="booking[Pets]" value="<?php echo $_GET['obj']['Pets']; ?>">
     312            <?php if ( ! empty( $_GET['obj']['Pets'] ) ) :
     313                // Currently, only applicable to Escapia PMS. ?>
     314                <input type="hidden" name="booking[Pets]" value="<?php echo esc_attr( $_GET['obj']['Pets'] ); ?>">
    290315            <?php endif; ?>
    291 
    292             <?php if ( isset( $data->InsuranceAmount ) ) : ?>
    293                 <?php $data->TotalCost = $data->TotalCost - $data->InsuranceAmount; ?>
    294             <?php endif; ?>
    295 
    296             <?php if ( isset( $data->booksettings->HasPackages )
    297                 && (isset( $data->package->items ) && count( $data->package->items ) != 0)
    298             ) { ?>
    299                 <input type="hidden" name="booking[packages]"
    300                        value="<?php echo esc_attr( base64_encode( serialize( $data->package ) ) ); ?>">
    301             <?php } ?>
    302316
    303317            <div id="vrploadinggif" style="display:none"><b>Processing Your Booking...</b></div>
     
    318332    </div>
    319333</div>
    320 
    321 </div>
    322 
    323 <style>
    324 
    325 </style>
  • vrpconnector/trunk/themes/mountainsunset/unit.php

    r1569131 r1580432  
    247247                                        <?php endif; ?>
    248248
    249                                         <tr>
    250                                             <?php // Promo Codes work with Escapia/RNS/Barefoot & ISILink Powered Software. ?>
    251                                             <td>Promo Code</td>
    252                                             <td>
    253                                                 <input type="text" name="obj[PromoCode]" value=""
    254                                                        placeholder="Promo Code">
    255                                             </td>
    256                                         </tr>
     249
     250                                        <?php if ( 'Barefoot' !== $data->manager->Name ) :
     251                                            // Barefoot property management software requires Promo Codes are added during checkout and does not support using them on the initial quote request.
     252                                            // All other PMS do support promo codes during the initial quote request: Escapia, ISILink, RNS, etc.
     253                                            ?>
     254                                            <tr>
     255                                                <td>Promo Code</td>
     256                                                <td>
     257                                                    <input type="text"
     258                                                           name="obj[PromoCode]"
     259                                                           value=""
     260                                                           placeholder="Promo Code">
     261                                                </td>
     262                                            </tr>
     263                                        <?php endif; ?>
    257264
    258265                                        <tr>
     
    268275                                        <tr>
    269276                                            <td>
    270                                                 <input type="hidden" name="obj[PropID]"
     277                                                <input type="hidden"
     278                                                       name="obj[PropID]"
    271279                                                       value="<?php echo esc_attr( $data->id ); ?>">
    272280                                                <input type="button"
     
    276284                                            </td>
    277285                                            <td>
    278                                                 <input type="submit" value="Book Now!"
     286                                                <input type="submit"
     287                                                       value="Book Now!"
    279288                                                       id="booklink"
    280289                                                       class="vrp-btn"
  • vrpconnector/trunk/vendor/composer/autoload_classmap.php

    r1095373 r1580432  
    77
    88return array(
     9    'Gueststream\\Calendar' => $baseDir . '/lib/calendar.php',
     10    'Gueststream\\DummyResult' => $baseDir . '/lib/dummyresult.php',
     11    'Gueststream\\PMS\\Barefoot' => $baseDir . '/lib/pms/barefoot.php',
     12    'Gueststream\\VRPConnector' => $baseDir . '/lib/vrpconnector.php',
     13    'Gueststream\\Widgets\\vrpSearchFormWidget' => $baseDir . '/lib/widgets/vrpsearchformwidget.php',
    914);
  • vrpconnector/trunk/vendor/composer/autoload_namespaces.php

    r1310416 r1580432  
    77
    88return array(
    9     'Parsedown' => array($vendorDir . '/erusev/parsedown'),
    109    'Eluceo\\iCal' => array($vendorDir . '/eluceo/ical/src'),
    1110);
  • vrpconnector/trunk/vendor/composer/autoload_psr4.php

    r1095373 r1580432  
    77
    88return array(
    9     'Gueststream\\' => array($baseDir . '/lib'),
    109);
  • vrpconnector/trunk/vendor/composer/installed.json

    r1462402 r1580432  
    5454            "php calendar"
    5555        ]
    56     },
    57     {
    58         "name": "erusev/parsedown",
    59         "version": "dev-master",
    60         "version_normalized": "9999999-dev",
    61         "source": {
    62             "type": "git",
    63             "url": "https://github.com/erusev/parsedown.git",
    64             "reference": "f671ae73647b6666c1442cbaac98e5d60208e409"
    65         },
    66         "dist": {
    67             "type": "zip",
    68             "url": "https://api.github.com/repos/erusev/parsedown/zipball/f671ae73647b6666c1442cbaac98e5d60208e409",
    69             "reference": "f671ae73647b6666c1442cbaac98e5d60208e409",
    70             "shasum": ""
    71         },
    72         "require": {
    73             "php": ">=5.3.0"
    74         },
    75         "time": "2016-07-27 08:05:24",
    76         "type": "library",
    77         "installation-source": "source",
    78         "autoload": {
    79             "psr-0": {
    80                 "Parsedown": ""
    81             }
    82         },
    83         "notification-url": "https://packagist.org/downloads/",
    84         "license": [
    85             "MIT"
    86         ],
    87         "authors": [
    88             {
    89                 "name": "Emanuil Rusev",
    90                 "email": "hello@erusev.com",
    91                 "homepage": "http://erusev.com"
    92             }
    93         ],
    94         "description": "Parser for Markdown.",
    95         "homepage": "http://parsedown.org",
    96         "keywords": [
    97             "markdown",
    98             "parser"
    99         ]
    10056    }
    10157]
Note: See TracChangeset for help on using the changeset viewer.