• Resolved totallytech

    (@totallytech)


    Hey,
    Loving the script – its fantastic!!

    Can you point me in the right direction please?
    I’ve been checking the code over – where there is currently a drop down <select> for the services – I need to change these to an <input type=”radio”>. I’ve managed to find the code which displays the list of selectable items:

    <select class="ab-formElement ab-select-mobile ab-select-service">
          <option value=""><?php echo esc_html( __( get_option( 'ab_appearance_text_option_service' ), 'ab' ) ) ?></option>
    </select>

    however I cannot find where this is generating the list of services.

    I’ve replaced the code with:

    <input type="radio" name="services" value="'<?php echo esc_html( __( get_option( 'ab_appearance_text_option_service' ), 'ab' ) ) ?>'" /> however this does not display correctly.

    Can you help me out please?

    https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter totallytech

    (@totallytech)

    I’ve checked the code again and I changed the code to:

    <input type="radio" name="services" class="ab-formElement ab-select-mobile ab-select-service" value="<?php echo esc_html( __( get_option( 'ab_appearance_text_option_service' ), 'ab' ) ) ?>" />

    which now displays:

    <input type="radio" name="services" class="ab-formElement ab-select-mobile ab-select-service" value=>
    <option value="1">Service 1</option>
    <option value="2">Service 2</option>
    </input>

    I cannot find out how its generating the options so that it displays the info above.

    Can you help please?

    Plugin Author Bookly

    (@ladela)

    Hello,

    The list services are rendered via the ajax request, you need to check out the executeRenderService method in the [wordpress]/wp-content/plugins/appointment-booking/frontend/modules/booking/AB_BookingController.php file.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Swapping with’ is closed to new replies.