Modify travel-booking plugin for hiding date

  • Member
    studiosteen
    May 9, 2017 at 7:27 am #352

    Hi,
    We had contact in the comments on Themeforest, I hope you can help me 🙂

    For a client I am building a website for group travel. The travel dates are a onetime event, so the agency creates a trip in (let’s say) january 2018 for 20 people. This trip will not take place a second time. So it would be easy for clients not to have to select the date and that it is preset.

    I tried modifying the travel-booking plugin myself (quick and dirty) and I think this would work. I edited the plugin so the date selection is hidden in the booking form and the entry is not mandatory. Only problem is that I will have to do this change everytime the plugin is updated.

    Could your developer create a hook in plugin for this? So it is removed in the child theme? If I am correct these files must be changed:

    directory: plugins/travel-booking/assets/js/frontend/booking.js
    rule 215
    input_date_book not mandatory

    directory: plugins/travel-booking/templates/single-tour/booking.php
    rule 53
    hide the datepicker

    Thank you so much!

    Best regards,

    Jeroen

    Sorry, this forum is for verified users only. Please Login

Comments are closed.