{assign var = 'bodyLayoutTemplate' value = 'main'}
{if !empty($LEFT_ITEMS)}
{assign var = 'bodyLayoutTemplate' value = "`$bodyLayoutTemplate`-left"}
{/if}
{if !empty($RIGHT_ITEMS)}
{assign var = 'bodyLayoutTemplate' value = "`$bodyLayoutTemplate`-right"}
{/if}
{assign var = 'bodyLayoutTemplate' value = "Body/Layout/`$bodyLayoutTemplate`.tpl"}
{include file = $DOC->getTemplate($bodyLayoutTemplate)}
{foreach from=$BOTTOM_ITEMS item='item'}
{include file=$item->tpl item=$item}
{/foreach}
{/if}
{include file = $DOC->getTemplate('checkout-footer.tpl')}