Okay
  Public Ticket #3393247
custom "Minimum time required before booking"
Closed

Comments

  •  4
    Geert started the conversation

    The setting for "Minimum time required before booking" for a service only allows for 4 weeks, and I need 5 weeks.

    Anyway to customize this via a code snippet?
    I noticed that this has been requested since 2022, I also voted up the feature request to have this set as a number of days setting (like the setting for how far in advance (256 days) you can book)

    Really need this ASAP... thx for helping me (and a lot of others) out.


    Geert

  •  1,620
    Marko replied

    Hello Geert,

    Thank you for reaching out to us.

    Unfortunately, currently, this feature is not built-in in Amelia. But soon we will start working on a back-end redesign so there will be a lot of new changes and new features added. And we will forward your suggestion to our developers now.

    If you have any more questions please open a new separate ticket for each question and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 


    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  4
    Geert replied

    As a developer myself, I"m guessing this can't be a big change... probably just adding an extra item to a list somewhere...

    Could you perhaps ask one of the developers where this is located in the code exactly?
    (I already had a quick look, but couldn't find it)
    That way I can change it in the plugin code myself (just until the new version comes out)
    or respond to me privately, if you don't want this to be public...

    Thx!
    '(and please don't respond that it's not a feature, or that you sent it to the developers... that's not support.. I really need this to work TODAY, so I can't wait for a new release some months from now)

    Geert

  •  4
    Geert replied

    Nevermind...I already found the solution myself!

    For ayone having the same problem, it's an easy fix if you know how to edit the database tables...

    In the wp_amelia_services table you see all you services listed.
    You just edit the record of the service you want to change the lead time for and then in the Settings column, you have a json text that looks similar to this:

    {"payments":{"paymentLinks":{"enabled":false,"changeBookingStatus":false,"redirectUrl":null},"onSite":true,"payPal":{"enabled":false},"stripe":{"enabled":false},"mollie":{"enabled":false},"razorpay":{"enabled":false}},"zoom":{"enabled":false},"lessonSpace":{"enabled":false},"activation":{"version":"6.3.1"},"general":{"minimumTimeRequirementPriorToBooking":3024000,"redirectUrlAfterAppointment":"\/service\/bedankt-aflevering\/"}}

    In there you find the "minimumTimeRequirementPriorToBooking":3024000 ... this is the time in seconds.
    So for me, 3024000 equals 5 weeks
    So if you need something else, you can just change that number!

    It's actually funny... after changing that number, I thought it would give some kind of error in the admin afterwards because it wouldn't be able to list 5 weeks in the dropdown... however, it just shows the number 3024000 instead, so I'm guessing this was already forseen somehow... just not available in the admin tools.

    Anyway... that's how it's done!



    G.


  •  1,620
    Marko replied

    Hello Geert,

    Thank you for sharing this with us. We are glad to hear that you managed to set this up.

    We wish you all the best.

    Have a nice day. 

    Kind Regards, 

    Marko Davidovic [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables