As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #2797405
hide old events
Closed

Comments

  • Emanuele started the conversation

    Hi! I wish to make all old events automatically hidden from calendar. Is possible?

    I don't want that a customer can see how many people has booked the "old dates" and I wish the closed dates were not visible to people so as not to create confusion to go and book an old event. (I will use recursive events to have even 1-2 bookings in a day but when an event is "closed" the bookings must not arrive).

    Adding a filter in the LIST or CALENDAR block for open or closed events could solve the problem.

    Thanks so much, Emanuele

  • [deleted] replied

    Hi, Emanuele!

    Thank you for choosing Amelia.

    Please try to apply this script on the booking page:

    window.ameliaBooking = {
        pastEventsDays: 10,
        cabinet: {
            pastDays: 0,
            futureDays: 10,
            disableAuthorizationHeader: false
        }
    }

    In this script,  futureDays indicates the number of days in the future that will be displayed. You can set it to any number that suits you the most.

    If you need help with adding custom JS to the page, please take a look at this article.

    Looking forward to hearing from you. 

  • Shelley Upton replied

    I have tried to apply this to my site using the Snippet Plugin but it doesn't work.  Is there anything else I can try?