I'm also using the old booking template.
Ok, there are two more steps that I didn't mention before.
In order to display the fields correctly on the booking form, they must be there. So here is some more code to make that happen:
First open file
components/com_matukio/views/createevent/view.html.php
Find on or around line 83:
$row->begin = date("Y-m-d") . " " . $def_begin;
$row->end = date("Y-m-d") . " " . $def_end;
$row->booked = date("Y-m-d") . " " . $def_booked;
add after:
// Default booking fields
$row->zusatz1 = "Naam|0||text"; // Added some fixed fields that will be shown in every event
$row->zusatz2 = "Adres|0||text";
$row->zusatz3 = "Woonplaats|0||text";
$row->zusatz4 = "Banknummer|1||text"; // values will be taken from Community Builder
$row->zusatz5 = "Uitlootindicatie|0||text";
$row->zusatz6 = "Persnr|0||text";
$row->zusatz1hint = "";
$row->zusatz2hint = "Here your hint";
$row->zusatz3hint = "Here your hint";
$row->zusatz4hint = "Here your hint";
$row->zusatz5hint = "Here your hint";
$row->zusatz6hint = "Here your hint";
$row->zusatz1show = 1;
$row->zusatz2show = 1;
$row->zusatz3show = 1;
$row->zusatz4show = 1;
$row->zusatz5show = 1;
$row->zusatz6show = 1;
Second open file
administrator/com_matukio/models/event.php
Find on or around line 64:
// Current user
$event->publisher = JFactory::getUser()->id;
$event->semnum = MatukioHelperUtilsEvents::createNewEventNumber(date('Y'));
$event->published = 1;
Add after:
// Default booking fields
$row->zusatz1 = "Naam|0||text"; // Added some fixed fields that will be shown in every event
$row->zusatz2 = "Adres|0||text";
$row->zusatz3 = "Woonplaats|0||text";
$row->zusatz4 = "Banknummer|1||text"; // values will be taken from Community Builder
$row->zusatz5 = "Uitlootindicatie|0||text";
$row->zusatz6 = "Persnr|0||text";
$row->zusatz1hint = "";
$row->zusatz2hint = "Here your hint";
$row->zusatz3hint = "Here your hint";
$row->zusatz4hint = "Here your hint";
$row->zusatz5hint = "Here your hint";
$row->zusatz6hint = "Here your hint";
$row->zusatz1show = 1;
$row->zusatz2show = 1;
$row->zusatz3show = 1;
$row->zusatz4show = 1;
$row->zusatz5show = 1;
$row->zusatz6show = 1;
This way the fields zusatz1 through 6 are reserved for you default bookingfields.
Notice that when you want more or less fields, you'll have to change the code in all three files.
Notice also that the name of the variables must be the same in all files or the will not be filled correctly.
And offcourse, the name of the CB fields are in MY database. You should change them to the variable names in your own CB database you want to use.
BTW i'm on version 3.06 of Matukio.
Upgrading is more work for me because of these custom changes i've made
Good Luck!