XML Hotel Interface for Affiliates
 

V2 FAQ'S
About

Client Login

Email:

Password:


Server Check
Systems Requirements
 
 



Search:     Advanced search
Browse by category:
Glossary | Ask question



Can I display to lowest price for a country or city
Views: 423
Edit the php page that you want to display the low price(s) on
example if you want to display low prices on your main page you edit index.php
paste the following before the $smarty ->display lines

// Get the low prices for the following cities / country
$featured_cities = array(array("Honolulu","HI","US"),array("Cancun","","MX"), Vegas","NV","US"),array("","","BB"));
$prices_low = getlow($featured_cities);
// assign the result to a template value
$smarty->assign('prices_low',$prices_low);


paste the following into your index.html template were you want the low price to show
Barbados <!--{$prices_low.BB.low_price|string_format:"%d"}-->

Honolulu   <!--{$prices_low.Honolulu.low_price|string_format:"%d"}-->

you can change the featued_cities line to have more cities or just one
Example
$featured_cities = array(array("Honolulu","HI","US"));
would just display the low price for Honolulu

Note: Country codes can only be used for countries that have less then 150 hotels such as Barbados
The price will be 0 until  time the city/country is search, from then on the prices will update


Other questions in this category
What template engine does XML Travel use
How do I view all the variables that I can use in my template
I have entered custom meta tags in the admin but they don't show on my pages
Where can I find more information on creating more advanced templates
I have used a sample from the smarty website and it doesn't work
Can I use template variables more then once on a page
How to I create links to other pages
How do I insert the Calendar / Date fields on my page
How to I create auto updating room adults and children pulldowns
How do I create a currency pulldown




©Copyright XML Systems Inc. 2006. All Rights Reserved.