Offer detail page

List hotels linked to an offer

In an offer detail page, you can list all hotels linked to the current offer. Then, for each hotel you'll be able to display simple informations like its name or its short description. But, you'll be abled to display informations related to the current context too like the booking engine url or the rate of the current offer for the current hotel.

#$loop|{{item.hotel}}|{ho}| $#
 <ul>
     <li> Name: {ho.name} </li>

    {if=" '{ho.offer_booking_engine_url}' "}
     	<li> 
	     <a href="{ho.offer_booking_engine_url}" target="_blank"> {ho.offer_booking_engine_url} </a>
	</li>
    {/if}

    {if=" '{ho.hotel_offer_rate}' "}
         <li> Rate: {ho.hotel_offer_rate} </li>
    {/if}
</ul>
#$/loop|{{item.hotel}}|{ho}| $#

When no booking engine provided for the current hotel, the function will automatically display the MB one. You don't need to apply any additional condition.

Last updated