- Posts: 59
- Thank you received: 2
Auto update a datepickerfield to block new orders on a day
4 years 10 months ago #337248
by allbs
Auto update a datepickerfield to block new orders on a day was created by allbs
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.0
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : --
Hi,
our client needs to have a custom field (datepickerfield) to auto update the Exclude days after a certain hour of the day.
the objective is to disallow entry of a delivery date to that day after certain hours.
its possible to manually update the field but they want it to do automatic.
what's the best approach?
thank you
-- Joomla version -- : 3.10.0
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : --
Hi,
our client needs to have a custom field (datepickerfield) to auto update the Exclude days after a certain hour of the day.
the objective is to disallow entry of a delivery date to that day after certain hours.
its possible to manually update the field but they want it to do automatic.
what's the best approach?
thank you
Please Log in or Create an account to join the conversation.
4 years 10 months ago #337250
by nicolas
Replied by nicolas on topic Auto update a datepickerfield to block new orders on a day
Hi,
That will require the development of a custom plugin, implementing the onHikashopCronTrigger event so that you can regularly check the current time of the day, and then load the data of the field from the hikashop_field table, unserialize the field_options column where the data of each setting is stored, modify the data and save it back.
That will require the development of a custom plugin, implementing the onHikashopCronTrigger event so that you can regularly check the current time of the day, and then load the data of the field from the hikashop_field table, unserialize the field_options column where the data of each setting is stored, modify the data and save it back.
Please Log in or Create an account to join the conversation.
Time to create page: 0.229 seconds