Auto update a datepickerfield to block new orders on a day

  • Posts: 59
  • Thank you received: 2
2 years 5 months ago #337248

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
2 years 5 months ago #337250

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum