• Resolved Cafe24 WP Developer

    (@phdevcafe24)


    Hello,

    The reserve button hides after setting check in/out dates,

    The mphb.js > showSections() method does the action to add class mphb-hide

    Kindly clarify the functionality,

    showSections: function showSections(showPrice) {
          this.reservationForm.reserveBtnWrapper.addClass('mphb-hide');
    this.quantitySection.removeClass('mphb-hide');
    
    if (showPrice) {
        this.priceWrapper.removeClass('mphb-hide');
    }
    
    

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Cafe24 WP Developer

    (@phdevcafe24)

    Can we remove this line of code under showSections() ?

            this.reservationForm.reserveBtnWrapper.addClass('mphb-hide');
    this.quantitySection.removeClass('mphb-hide');
    Plugin Support eugenewhite

    (@eugenewhite)

    Hello Eugene! 

    Please be informed that in the Hotel Booking plugin version 4.6.0 we added the possibility for clients to select the check-in and check-out date directly in the availability calendar. Because of that, the direct booking form checks property availability automatically once check-in and check-out dates are selected and there’s no need for the “Check Availability” button in this particular case anymore. However, the “Confirm Reservation” button remains untouched and is used to proceed to the next step – the bookings confirmation page. Do you have some issues with the “Confirm Reservation” button? Please, clarify. 

    Thread Starter Cafe24 WP Developer

    (@phdevcafe24)

    Hello @eugenewhite,

    The “Confirm Reservation” button hides whenever the dates are selected,

    It seems that the script of  Hotel Booking plugin does not revert the mphb-hide class after it was included,

    Kindly check,

    Thank you!

    Plugin Support eugenewhite

    (@eugenewhite)

    Hello Eugene! 

    Sorry for the delayed response. 

    The thing is that there’s an “Uncaught TypeError” on your website, which can be checked in the browser console. 

    So first of all, this error should be resolved in order to make sure that the plugin and all its features work properly. In this case, I suggest you try disabling other plugins that you currently have and even try switching to one of the default WordPress themes. Perhaps it’s a matter of some kind of conflict. 

    If that doesn’t help, submit a ticket on our support platform so we can check everything out from our side. 

    Plugin Support eugenewhite

    (@eugenewhite)

    Hello there!

    We haven’t heard from you in a while and will mark this topic as resolved. 

    In case you still have this issue or if you have any other questions, please submit a new one.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reserve button hides after selecting dates’ is closed to new replies.