Okay
  Public Ticket #2842024
Customer Panel custom Date Filter
Closed

Comments

  • Andreas started the conversation

    Is it possible to customize the date filter in the Customer Panel. So to set a larger period as default.

    Or even better: show all future booked events starting from today.

  • [deleted] replied

    Hi Andreas,

    thank you for reaching out to ussmile.png

    We have a bit of a script that can allow you to create a date range:

    You can add it in Custom CSS, I believe, but it has to go in between the <script>...</script> tags:

    <script>
    window.ameliaBooking = {
        cabinet: {
            pastDays: 0,
            futureDays: 30
        }
    }
    </script>

    By entering a higher number in the futureDays line you can increase the range of days they will see in the Panel

    Custom code needs to be applied to the page where the booking form is. Depending on what you're using (Gutenberg blocks, or some page builder), adding the CSS or JS can be done in a few different ways. 

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

  • Andreas replied

    Hi Ivana,

    thank you. That works great!!!



  • [deleted] replied

    You are most welcomesmile.png

    If there is anything else we can assist you with please don't hesitate to open a new ticket.

    Have a wonderful day!