I managed to get it working and have attached my plug-in if anyone else wants to use it. The coding is not very elegant but seems to do the job!
Create the following custom fields in the vendor table and set them to display in the front end before enabling the plug-in:
- vendor_holiday_start - Advanced date picker.
- vendor_holiday_end - Advanced date picker.
- vendor_holiday_message - textarea (or WISIWIG)
- vendor_holiday_enable - radio button with values 'yes' 'no'.
This attachment is hidden for guests.
Please log in or register to see it.
UPDATE: I have added a facility for the main vendor to be notified by email if the sub-vendor changes the publish status of their holiday message. The settings are on the plug-in page.
regards
Trevor