Charge per person

Closed
Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme Travelo - Travel/Tour/Car Rental/Cruise Booking WordPress Theme January 29, 2019
Login to reply
Kelly R Support Agent
5 years ago
Resolved.
Kelly R Support Agent
5 years ago

Hi,

1. You can set kids price same as adults price.

Or you can change /inc/frontend/tour/templates.php file.

Please find following code.

<div class="col-md-2 col-sm-3 col-xs-6">

          <label><?php _e( 'KIDS','trav' ); ?></label>
          <div class="selector validation-field">
           <select name="kids" class="full-width">
            <?php
             for ( $i = 0; $i <= 10; $i++ ) {
              $selected = ( $i == $kids ) ? 'selected' : '';
              echo '<option value="' . esc_attr( $i ) . '" ' . $selected . '>' . esc_html( $i ) . '</option>';
             }
            ?>
           </select>
          </div>
         </div>

to replace with following.

<div class="col-md-2 col-sm-3 col-xs-6" style="display: none">

          <label><?php _e( 'KIDS','trav' ); ?></label>
          <div class="selector validation-field">
           <select name="kids" class="full-width">
            <?php
             for ( $i = 0; $i <= 10; $i++ ) {
              $selected = ( $i == $kids ) ? 'selected' : '';
              echo '<option value="' . esc_attr( $i ) . '" ' . $selected . '>' . esc_html( $i ) . '</option>';
             }
            ?>
           </select>
          </div>
         </div>

Regards, C-Themes

Kelly R Support Agent
5 years ago

Hi,

Every tours has maximum people for every schedule.

Kids option is shown in frontend, but price is not changed. We added it to calculate available number of people for tour schedule.

Regards, C-Themes


Julian Delgado
5 years ago

Can you please let me know why the kids option is still appearing even if I unchecked the "charge per person" in this schedule? Please see the attachments.

This schedule is for a Tour.


Thanks