( Latest versions: 2.9.3 Stable, compatible with Joomla 3.9.0+   &   0.9.3 Stable, compatible with WordPress 4+ )

Experiences: Extra information for each group member

More
1 month 2 days ago #16342 by Thellie
I can't find where I can add custom fields for the guest info - I know it goes into the teco_sr_experience_reservation_guests table, but cannot find anywhere in the Solidres component to add extra fields.

Or do I have to add them into the MySQL table manually?

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

More
1 month 1 day ago #16346 by solidres
Hi,

New fields should be added into database and declared in:

/plugins/solidres/experience/administrator/components/com_solidres/models/forms/experience.xml

Then you also need to modify the front end layout to hook them in.

Regards,

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

More
1 month 1 day ago #16350 by Thellie
Thanks I'll give it a go :)

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

More
4 weeks 1 day ago #16355 by Thellie
Hi :)
Ok, I'm getting there slowly:

I've added 2 fields to the table:
diet_type
passport_number
----
I've added them as fields in /plugins/solidres/experience/administrator/components/com_solidres/models/forms/experience.xml

<field
name="collect_guest_diet_type"
type="radio"
label="Diet type"
class="btn-group btn-group-yesno"
default="1"
filter="uint"
showon="collect_guest_info:1">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="collect_guest_passport_number"
type="radio"
label="Passport number"
class="btn-group btn-group-yesno"
default="1"
filter="uint"
showon="collect_guest_info:1">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
----
I've added them to line 404 (plugins/solidres/experience/components/com_solidres/models/bookform.php)

foreach (array('first_name', 'middle_name', 'last_name', 'dob', 'gender', 'nationality', 'single_room','diet_type','passport_number') as $fieldName)
----

But the fields still do not appear on the booking form - what have I missed? p.s. They are enabled in the tour experience that I'm testing.

Thanks :)

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

More
4 weeks 20 hours ago #16361 by solidres
Hi,

We are sorry but we can only provide general directions, please hire a Joomla developer or request our Custom Development service for full code implementation

www.solidres.com/support-policy

Regards,

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

More
3 weeks 6 days ago #16365 by Thellie
I understand, not a problem.
I think I found it anyway, in:
/plugins/solidres/experience/layouts/experience/bookform/activity.php

Am having a go today

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

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?