WordPress.org

Ready to get started?Download WordPress

Forums

Booking System (Booking Calendar)
[resolved] Remove availability numbers on frontend (4 posts)

  1. talbot649
    Member
    Posted 12 months ago #

    Hi there,

    Firstly, I've tried a few booking calendars and this is a great plugin!

    One (simple) change I need to make is to remove the available number of booking spaces in each date on the frontend so the visitor does not know the capacity - please can you advise how I can do this?

    Many thanks.

    http://wordpress.org/plugins/booking-system/

  2. DOTonPAPER
    Member
    Plugin Author

    Posted 11 months ago #

    Hello,

    In file booking-system/assets/js/jquery.dop.FronendBookingSystem.js @line 848 replace:

    if (available > 1){
        contentLine2 = available+' '+'<span class="no-available-text">'+AvailableText+'</span>';
    }
    else if (available == 1){
        contentLine2 = available+' '+'<span class="no-available-text">'+AvailableOneText+'</span>';
     }
    else{
        contentLine2 = '<span class="text">'+AvailableOneText+'</span>';
    }

    with:

    if (available > 1){
        contentLine2 = <span class="text">'+AvailableText+'</span>';
    }
    else{
        contentLine2 = '<span class="text">'+AvailableOneText+'</span>';
    }
  3. mstewar22
    Member
    Posted 7 months ago #

    I am trying this and getting an error. Is there a way to set the quantity to infinite or not display the quantity at all? If this method above works, can you include more code so that I can make sure your line 848 is the same as my line 848, because I tried it there and got a syntax error that does not allow the calendar to show...thank you!

  4. talbot649
    Member
    Posted 7 months ago #

    I got this sorted with support from the developer, but I don't think it was through WordPress forums. Try the Codecanyon site and look through the comments for this plugin.

    Hope it helps.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.