{if isset($RSThemes['pages'][$templatefile]) && file_exists($RSThemes['pages'][$templatefile]['fullPath'])}
    {include file=$RSThemes['pages'][$templatefile]['fullPath']}
{else}
    {include file="orderforms/$carttpl/common.tpl"}
    <div class="main-grid{if $mainGrid} {$mainGrid}{/if}">
        {if $RSThemes['pages'][$templatefile]['config']['hideSidebar'] != '1'}
            <div class="main-sidebar hidden-xs hidden-sm hidden-md {if $sidebarOnRight || $RSThemes['layouts']['name'] == 'left-nav-wide'} main-sidebar-right {/if}">
                {if $RSThemes['addonSettings']['sticky_sidebars'] == "true"}<div class="sidebar-sticky" {if $RSThemes.addonSettings.show_affixed_navigation == 'enabled'}data-sidebar-sticky{/if}>{/if}
                    {include file="orderforms/$carttpl/sidebar-categories.tpl"}
                {if $RSThemes['addonSettings']['sticky_sidebars'] == "true"}</div>{/if}
            </div>
        {/if}
        <div class="main-content{if $mainContentClasses} {$mainContentClasses}{/if}">
            {include file="orderforms/$carttpl/sidebar-categories-collapsed.tpl"}
            {if count($addons) == 0}
                <div class="message message-no-data" id="noAddons">
                    <div class="message-image">
                        {include file="$template/includes/common/svg-icon.tpl" icon="addon"}           
                    </div>
                    <h6 class="message-title">{$LANG.cartproductaddonsnone}</h6>
                </div>     
            {/if}
            <div class="products">
                <div class="row row-eq-height">
                    {foreach $addons as $num => $addon}
                        <div class="col-md-6 col-sm-12">
                            <form class="package package-sm package-left package-addons" method="post" action="{$smarty.server.PHP_SELF}?a=add">
                                <input type="hidden" name="aid" value="{$addon.id}" />
                                <h3 class="package-title m-t-0">
                                    {if is_array($graphics['addon']) && $graphics['addon'][$addon.id]->enabled && $graphics['addon'][$addon.id]->getJson()->condensed->type}
                                            {assign var=graphic value=$graphics['addon'][$addon.id]->getJson()->condensed->graphic}
                                            {assign var=graphicType value=$graphics['addon'][$addon.id]->getJson()->condensed->type}
                                        <span class="graphic-item {if $graphicType == "font-icon"} graphic-item-rounded{/if}">
                                            {if $graphicType == "icon"}
                                                {include file="$template/assets/svg-icon/{$graphic}"}
                                            {else if $graphicType == "font-icon"}
                                                <span class="graphic-item-bg">
                                                    <i class="{$graphic}"></i>
                                                </span>
                                            {else if $graphicType == "media"}
                                                <img src="{$WEB_ROOT}/templates/{$template}/assets/img/page-manager/{$graphic}" alt="{$graphic}">
                                            {/if}
                                        </span>
                                    {/if}
                                    {$addon.name}
                                </h3>
                                <div class="package-content">    
                                    <p>{$addon.description}</p>
                                </div>
                                <div class="package-select">
                                    <label for="inputProductId{$num}" class="sr-only">{$LANG.selectProduct}</label>
                                    <select name="productid" id="inputProductId{$num}" class="form-control">
                                        {foreach $addon.productids as $product}
                                            <option value="{$product.id}">
                                                {$product.product}{if $product.domain} - {$product.domain}{/if}
                                            </option>
                                        {/foreach}
                                    </select>
                                </div>
                                <div class="package-footer">
                                    <div class="package-price">
                                        <div class="price price-sm price-inline {if ($DiscountCenterAddonIsActive)}price-discountCenter{/if}">
                                            {if $addon.free}
                                                {include file="$template/includes/common/price.tpl" 
                                                    price=$LANG.orderfree                                                 
                                                    priceType="free"
                                                }
                                            {else}
                                                {include file="$template/includes/common/price.tpl" 
                                                    price=$addon.recurringamount
                                                    priceCycle=$addon.billingcycle|lower
                                                    priceCycleShort=true
                                                    priceSetupFee=$addon.setupfee
                                                }
                                            {/if}
                                        </div>
                                    </div>
                                    <div class="package-actions">
                                        <button tabindex="0" type="submit" class="btn btn-lg btn-primary">{$LANG.ordernowbutton}</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                        {if $num % 2 != 0}
                            </div>
                            <div class="row row-eq-height">
                        {/if}
                    {/foreach}
                </div>
            </div>
        </div>
    </div>
{/if}