- Posts: 292
 
- Home
 - Forum
 - Community Forum
 - Questions
 - Experiences Inquiry Form - Adding a calendar field
 
- Forum
 - Community Forum
 - Feature requests / Suggestions
 - Experiences: Extra information for each group member
 
Experiences: Extra information for each group member
- Thellie
 - Topic Author
 - Offline
 
		Less
		More
		
			
	
		
			
	
						5 years 9 months ago				#16342
		by Thellie
	
	
		
			
	
			
			 		
													
	
				Replied by Thellie on topic Experiences: Extra information for each group member			
			
				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?
					Or do I have to add them into the MySQL table manually?
Please Log in or Create an account to join the conversation.
- solidres
 - 
				
											 - Away
 
		Less
		More
		
			
	
		- Posts: 3001
 
			
	
						5 years 9 months ago				#16346
		by solidres
	
	
		
			
					
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
					
	
			
			 		
													
	
				Replied by solidres on topic Experiences: Extra information for each group member			
			
				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,
							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,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Please Log in or Create an account to join the conversation.
- Thellie
 - Topic Author
 - Offline
 
		Less
		More
		
			
	
		- Posts: 292
 
			
	
						5 years 9 months ago				#16350
		by Thellie
	
	
		
			
	
			
			 		
													
	
				Replied by Thellie on topic Experiences: Extra information for each group member			
			
				Thanks I'll give it a go 
			
					Please Log in or Create an account to join the conversation.
- Thellie
 - Topic Author
 - Offline
 
		Less
		More
		
			
	
		- Posts: 292
 
			
	
						5 years 9 months ago				#16355
		by Thellie
	
	
		
			
	
			
			 		
													
	
				Replied by Thellie on topic Experiences: Extra information for each group member			
			
				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
			
					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.
- solidres
 - 
				
											 - Away
 
		Less
		More
		
			
	
		- Posts: 3001
 
			
	
						5 years 9 months ago				#16361
		by solidres
	
	
		
			
					
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
					
	
			
			 		
													
	
				Replied by solidres on topic Experiences: Extra information for each group member			
			
				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,
							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,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
Please Log in or Create an account to join the conversation.
- Thellie
 - Topic Author
 - Offline
 
		Less
		More
		
			
	
		- Posts: 292
 
			
	
						5 years 9 months ago				#16365
		by Thellie
	
	
		
			
	
			
			 		
													
	
				Replied by Thellie on topic Experiences: Extra information for each group member			
			
				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
					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