Child Events - additional dates

  • daniel white
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 4 months ago #119021 by daniel white
Child Events - additional dates was created by daniel white
Hi,

I have created a parent event and have used the additional dates plugin to create child events for this event, and everything is working fine, however as I have it set up so the parent event ito disabled registration and the child events are registered. If I came to add a new additional date to the parent event, once it is saved due to the fact the parent event is disabled it then sets all the children events to disabled, and I have to go into each individual one and re set registration.

Is there a way that either when I set an additional date it chooses which settings to take from the parent or is there a way I can clone a child event so that it stays as a child of the parent event, because at the minute when I save as a copy, the copied event becomes a standard event and not a child event.

Thanks,

Dan.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 4 months ago #119022 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Child Events - additional dates
Hi Dan

In this case, I think you will need to edit the code to prevent the change from parent event update to children events

Look at the file plugins/eventbooking/dates/dates.php, find and remove this lind of code 162:

'registration_type',

Then it will prevent this error

Regards,

Tuan

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

  • daniel white
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 4 months ago #119032 by daniel white
Replied by daniel white on topic Child Events - additional dates
Hi Tuan,

That didn't work at first, but I realised there was a second entry for 'registration_type' on line 169 which I also removed and that has solved the issue. Thanks very much for your help.

Thanks,

Dan.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 4 months ago #119044 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Child Events - additional dates
OK, great. Please remember that you need to re-do this modification each time you update Events Booking as when you update Events Booking, this change will be lost

Tuan

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

Moderators: Tuan Pham Ngoc