Support » Plugin: Pinpoint Booking System - Book everything with WordPress or WooCommerce » Remove availability numbers on frontend

  • Resolved talbot649

    (@talbot649)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DOTonPAPER

    (@dotonpaper)

    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>';
    }

    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!

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove availability numbers on frontend’ is closed to new replies.