- Posts: 9
 
- Home
 - Forum
 - Community Forum
 - Questions
 - Experiences Inquiry Form - Adding a calendar field
 
Possible to have "room type name" in ical feed?
- groovezog
 - Topic Author
 - Offline
 
		Less
		More
		
			
	
		
			
	
						7 years 4 months ago				#11662
		by groovezog
	
	
		
			
	
			
			 		
													
	
				Possible to have "room type name" in ical feed? was created by groovezog			
			
				Hi,
I've managed to customize the ical feed to display reservations in a Google Calendar. I'm able to find first name, last name, etc. inside of the $reservation array in the file:
/plugins/solidres/ical/components/com_solidres/controllers/ical.php
...but I'm unable to find the "room_type_name", or the room number that the guest is assigned to. (This would also be the room number found in "Room/Extra Info" under a guest's reservation: cloudup.com/cP4Tod7Exv0 )
Could you provide a hint or point me in the correct direction for adding this data into the ical feed please?
Thank you!
~J.
					I've managed to customize the ical feed to display reservations in a Google Calendar. I'm able to find first name, last name, etc. inside of the $reservation array in the file:
/plugins/solidres/ical/components/com_solidres/controllers/ical.php
...but I'm unable to find the "room_type_name", or the room number that the guest is assigned to. (This would also be the room number found in "Room/Extra Info" under a guest's reservation: cloudup.com/cP4Tod7Exv0 )
Could you provide a hint or point me in the correct direction for adding this data into the ical feed please?
Thank you!
~J.
Please Log in or Create an account to join the conversation.
- solidres
 - 
				
											 - Away
 
		Less
		More
		
			
	
		- Posts: 3001
 
			
	
						7 years 4 months ago				#11665
		by solidres
	
	
		
			
					
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
					
	
	
			 		
													
	
				Replied by solidres on topic Possible to have "room type name" in ical feed?			
			
				Hi,
The room type name is stored in a different table "#__sr_reservation_room_xref" therefore you need to query from it to retrieve the room type info, each reservation could have one or multiple assigned room types.
Regards,
							The room type name is stored in a different table "#__sr_reservation_room_xref" therefore you need to query from it to retrieve the room type info, each reservation could have one or multiple assigned room types.
Regards,
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
		The following user(s) said Thank You: groovezog 	
			Please Log in or Create an account to join the conversation.
- groovezog
 - Topic Author
 - Offline
 
		Less
		More
		
			
	
		- Posts: 9
 
			
	
						7 years 4 months ago		 -  7 years 4 months ago		#11697
		by groovezog
	
	
		
			
	
	
			 		
													
	
				Replied by groovezog on topic Possible to have "room type name" in ical feed?			
			
				Great. I got it. In the file:
/plugins/solidres/ical/components/com_solidres/controllers/ical.php
...in the function:
getReservations()
...I changed the select query from:...to:
I was then able to access room_label in the $reservations array.
Thanks for the help!
					/plugins/solidres/ical/components/com_solidres/controllers/ical.php
...in the function:
getReservations()
...I changed the select query from:
->select('a.*, a2.email AS asset_email, a5.name AS room_name')->select('a.*, a2.email AS asset_email, a5.name AS room_name, a3.room_label AS room_label')I was then able to access room_label in the $reservations array.
Thanks for the help!
		Last edit: 7 years 4 months ago  by groovezog.			
			Please Log in or Create an account to join the conversation.
- solidres
 - 
				
											 - Away
 
		Less
		More
		
			
	
		- Posts: 3001
 
			
	
						7 years 4 months ago				#11698
		by solidres
	
	
		
			
					
FAQ: www.solidres.com/support/frequently-asked-questions
Support Policy: www.solidres.com/support-policy
					
	
			
			 		
													
	
				Replied by solidres on topic Possible to have "room type name" in ical feed?			
			
				Hi,
It is great to see you got it!
We will consider adding support for it soon.
Regards,
							It is great to see you got it!
We will consider adding support for it soon.
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.
		Moderators: solidres