0

Hello,

I wanted to edit the backend index.php of the appointment page.

 

I posted this code to filter the different appointments by location (my destination is to filter specific appointment statuses by locations) but its not working correctly. I only see the filter option but no locations are displayed:

It would be great to get some help.

				<div class="col-md-2">
<div class="form-group">
<select class="form-control <?php echo $locations === false ? 'bookly-js-select-ajax' : 'bookly-js-select' ?>" id="bookly-js-locations-filter"
data-placeholder="<?php esc_attr_e( 'Standorte', 'bookly' ) ?>" <?php echo $locations === false ? 'data-ajax--action' : 'data-action' ?>="bookly_getLocations">
<?php if ( $locations !== false ) : ?>
<?php foreach ( $locations as $location_id => $location ) : ?>
<option value="<?php echo $location['id'] ?>" data-search='<?php echo esc_attr( json_encode( array_values( $location ) ) ) ?>'><?php echo esc_html( $location['name'] ) ?></option>
<?php endforeach ?>
<?php endif ?>
</select>
</div>
</div>
1.0.0.20

0 comments

Please sign in to leave a comment.