Okay
  Public Ticket #2710099
reschedule appointments date pciker
Closed

Comments

  •  3
    Alexis started the conversation

    Hello,

    How can I change the date picker on the customer panel ? 

    Atm it's by defaut today + 6 days : 

    1940815984.png

    But It's confusing for my clients when they book for exemple in May, they don't see theirs appointement and some of them don't know they have to choose the right day.

    How can I change that to be able to see my appointments no matters when is the appointement ?
  • [deleted] replied

    Hi, Alexis!

    Thank you for choosing Amelia.

    Unfortunately, there's no option to change that in Amelia with its built-in features. 

    However, it can be achieved with an additional script. You can choose the number of past/future days for the date picker:

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


    So, you can set there the number of days in the past that will be listed there with the parameter pastDays and in the future with the futureDays. It is set to 0 and 10, but you can set it to 0 and 100, for example. Just add this JS to the page with the Customer Panel and choose the number of days. 

    Hope that will help.

    Best Regards.


  •  3
    Alexis replied

    Perfect ! Thank you Liza !

  • [deleted] replied

    Hi, Alexis!

    I'm glad I could helpsmile.png

    If you have any other questions, please let us know.

    Best Regards. 

  • gestio replied

    Hello,

    the script is very interesting because I have a similar problem.

    My question is ... instead of determining the number of future days to display appointments, is it possible to determine the display of appointments for the current month?

    Thank you!

  • [deleted] replied

    Hi, Gestio,

    Thank you for choosing Amelia.

    I'm afraid, it's possible to set only the number of days at the moment.

    However, probably this option will be available with the new customization feature that will be added to the next update. 

    Also, you can suggest that as a "feature request" here, or check if this request was already submitted and vote for it. 

    Best Regards.

  • gestio replied

    Thank you so much Liza for the quick response.
    I will look forward to the update :)

  • [deleted] replied

    Gestio,

    I'm glad I could helpsmile.png

    Please feel free to contact us if you have any other questions.

    Best Regards.

  •  3
    Maciej replied

    Hi Liza

    Would you clarify more where/how to execute this script?

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

    Also, do you have an idea on the time frame for the next planned update? Is this weeks, months?

    Thanks

    Maciek

  • [deleted] replied

    Hi, Maciek,

    Yes, sure.

    You should add this script to the Customer panel page and set the number of pastDays and futureDays in this script to the number of days that should be displayed in the past and in the future respectively.

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

    The new update will be released within 3-4 weeks, hopefully. Unfortunately, I can't tell you precisely when it will happen.

    Best Regards.