We need to restrict package reservations only to the period the package is valid. Currently, if a package ends tomorrow with available reservations, the user can book a service for next week (because we allow users to book 4 weeks in advance site-wide).
That means that those packages end up lasting longer than they should, since users can book at the end of the package duration, and still book services outside the packages validity period.
How can we limit package reservations to the package end date? We tried with WP Hooks but found no documentation on the package and booking objects and its properties to implement this in code.
The duration you set is for the package while the appointments within a package are defined by the "Period available for booking" in Amelia's General Settings or individual settings of a service. So, if you sell a package with 10 appointments, and set the duration of the package to be 1 year, your customers will have 1 year to book those 10 appointments.
However, the appointments within a package can be booked as far ahead as you configured the "Period available for booking in advance" in Amelia's General Settings, or individual service setting. For example, if this is set to 30 days, at the time when an appointment is being booked, the customers will be able to choose the dates 30 days from TODAY. Defining the duration of the package doesn't define the availability of appointments.
Hi!
We need to restrict package reservations only to the period the package is valid. Currently, if a package ends tomorrow with available reservations, the user can book a service for next week (because we allow users to book 4 weeks in advance site-wide).
That means that those packages end up lasting longer than they should, since users can book at the end of the package duration, and still book services outside the packages validity period.
How can we limit package reservations to the package end date? We tried with WP Hooks but found no documentation on the package and booking objects and its properties to implement this in code.
Thanks in advance for your help!
Hello Rodrigo,
The duration you set is for the package while the appointments within a package are defined by the "Period available for booking" in Amelia's General Settings or individual settings of a service. So, if you sell a package with 10 appointments, and set the duration of the package to be 1 year, your customers will have 1 year to book those 10 appointments.
However, the appointments within a package can be booked as far ahead as you configured the "Period available for booking in advance" in Amelia's General Settings, or individual service setting. For example, if this is set to 30 days, at the time when an appointment is being booked, the customers will be able to choose the dates 30 days from TODAY. Defining the duration of the package doesn't define the availability of appointments.
Kind Regards,
Uros Jovanovic
[email protected]
Rate my support
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