Auto update a datepickerfield to block new orders on a day

  • Posts: 55
  • Thank you received: 2
  • Hikashop Business
1 week 6 days 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: 74250
  • Thank you received: 11418
  • MODERATOR
1 week 6 days 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.055 seconds
Powered by Kunena Forum