{hook h="displaySalesTop"}
{capture name=path} {l s='Private sales' mod='privatesales'} {/capture} {if $categories|count > 0} {/if}
{if $cookie->logged && !$alertedcat && $id_category}
{/if} {if $flashsales|count > 0}

{l s='Flash sales' mod='privatesales'}

{foreach $flashsales as $sale} {capture name=img_sale} {$link_img}{$sale['sale']->id}/flashsale/{$sale['sale']->id}_{$cookie->id_lang}.jpg {/capture}
{$sale['product']->name}
{$sale['product']->description_short}
{assign var='productPrice' value=$sale['product']->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$sale['product']->getPriceWithoutReduct(false, $smarty.const.NULL)} {convertPrice price=$productPrice} {if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}
specificPrice || $sale['product']->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if} class="percent-box"> {if $sale['product']->specificPrice && $sale['product']->specificPrice.reduction_type == 'percentage'}-{$sale['product']->specificPrice.reduction*100}%{/if}
{/foreach}
{/if}

{l s='Current sales' mod='privatesales'}

{if $hotspotsales|count > 0}
{assign var=sale value=$hotspotsales[0] } {capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/hotspot/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
imagehotspot} style="background: url('{$smarty.capture.img_sale}') no-repeat left center"{/if}>
{l s='Up to' mod='privatesales'} -{$sale->percent}%
logged}onclick="window.location.href='{$sale->link}';"{/if}>
{$sale->title}
{$sale->subtitle}
{l s='Hotspot sales' mod='privatesales'}
{/if}
{if $currentsales|count > 0} {foreach $currentsales as $sale} {capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/current/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
image} style="background: url('{$smarty.capture.img_sale}') no-repeat left center"{/if}>
{l s='Up to' mod='privatesales'} -{$sale->percent}%
logged}onclick="window.location.href='{$sale->link}';"{/if}>
{$sale->title}
{$sale->subtitle}
{/foreach} {else}

{l s='There are no current sales' mod='privatesales'}

{/if}

{l s='Current auctions' mod='privatesales'}

{hook h='displayAuctions'}
{if $futuresales|count > 0}

{l s='Future sales' mod='privatesales'}

{if $futuresales|count > 0} {foreach $futuresales as $sale} {capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/future/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
imagefuture} style="background: url('{$smarty.capture.img_sale}') no-repeat left center"{/if}>
{$sale->title}
{l s='Up to' mod='privatesales'} -{$sale->percent}%
{l s='Alert me!' mod='privatesales'}
{/foreach}
{/if} {/if}
{hook h="displaySalesBottomBanner"}
{if $pastsales|count > 0}

{l s='Past sales' mod='privatesales'}

{if $pastsales|count > 0} {foreach $pastsales as $sale} {capture name=img_sale} {$link_img}{$sale->id}/past/{$sale->id}_{$cookie->id_lang}.jpg {/capture}
{if $sale->imagepast} {/if}
{$sale->title}
{if $sale->subtitle}

{$sale->subtitle}

{/if}

{$sale->description}

{/foreach} {/if}
{/if}
{if $popup_connection && !$cookie->logged} {literal} {/literal} {/if} {if $cookie->logged && !$alertedcat && $id_category} {assign var=params value=['id_sale_category' => $id_category, 'alias' => $alias]} {literal} {/literal} {/if}