WordPress.org

Forums

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

  1. talbot649
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.