Edit rooms_booking_results.tpl.php

creativemedia's picture
creativemedia
Mon, 10/17/2016 - 07:43
#1
Edit rooms_booking_results.tpl.php

Hi,

I need to edit this file to show the 'Rates' information for each Unit. Each unit will have different prices per night and I want to show this on the booking page. I have tried adding:

              print render($unit['field_unit_rate_info']);

under the other displayed fields but nothing seems to change.

Thank you in advance

phuonght's picture
phuonght
Tue, 10/18/2016 - 05:37

Hi,

Please

1. Enable module Devel

2. Print following code in file 

<?php dsm($unit); ?>

3. Check if there is 'field_unit_rate_info' in displaying values. It can be printed only when that value exits.

creativemedia's picture
creativemedia
Tue, 10/18/2016 - 09:48

I have tried the above and it is still not showing.

How can I display the 'Rates' information in the booking results??

cindy's picture
cindy
Wed, 10/19/2016 - 03:51

Because 'field_unit_rate_info' is the field of Unit Description content type, thus choosing "Show availability of individual units" also does not work 

You have to create a Rate Info field in UNIT TYPES as mentioned http://megadrupal.com/forum/theme-support/hillter/3309

creativemedia's picture
creativemedia
Wed, 10/19/2016 - 08:22

Thank You! :)

khoa's picture
khoa
Wed, 10/19/2016 - 22:53

You're welcome

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.