765 lines
45 KiB
Smarty
Executable File
765 lines
45 KiB
Smarty
Executable File
<div class="salesTop">
|
|
{hook h="displaySalesTop"}
|
|
</div>
|
|
{capture name=path}
|
|
<a href="{$link->getModuleLink('privatesales', 'home')|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Private sales' mod='privatesales'}">{l s='Private sales' mod='privatesales'}</a>
|
|
{/capture}
|
|
|
|
<ul class="snotmobile nav-privatesales clearfix">
|
|
<li {if $news === null }class="active"{/if} >
|
|
<a href="{$link_allsale}" >{l s='See all sales' mod='privatesales'}</a>
|
|
</li>
|
|
<li {if $news == 2 }class="active"{/if}>
|
|
<a href="{$link_allsale}?type=ventes" >{l s='sales' mod='privatesales'}</a>
|
|
</li>
|
|
<li {if $news == 1 }class="active"{/if}>
|
|
<a href="{$link_allsale}?type=nouveautes" >{l s='See all news' mod='privatesales'}</a>
|
|
</li>
|
|
<li >
|
|
<a href="#futuresales" >{l s='See futures sales' mod='privatesales'}</a>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
<div class="clearfix" id="privatesales_home">
|
|
|
|
|
|
<div class="current_sales">
|
|
<h3 class="sale-title-type col-xs-12 smobile"><span>{l s='Nos ventes en cours' mod='privatesales'}</span></h3>
|
|
{if $currentsales|count > 0}
|
|
{assign var=i value=0}
|
|
{foreach $currentsales as $sale}
|
|
|
|
{if $slider_active && ($currentsales|count == 1 || $i == 0)}
|
|
<div class="row">
|
|
{*desktop*}
|
|
<div id="slider_home" class="clearfix snotmobile">
|
|
<div class="clearfix owl">
|
|
{foreach from=$slider item=slide key=key name=slider}
|
|
<div class="col-sm-12 slide-home item " {if isset($slide.img) && $slide.img!='slider/slider_{$key}_.png'}style="height:300px;background: url('{$img_dir}{$slide.img}') no-repeat left top; background-size: 100% auto;"{/if}>
|
|
{if isset($slide.link) && $slide.link}
|
|
<a class="" href="{$slide.link}" style="width:100%;height: 100%;display: block;" {if isset($slide.title) && $slide.title}title="{$slide.title}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
{*mobile*}
|
|
<div id="slider_home_mobile" class="clearfix smobile">
|
|
<div class="clearfix owl">
|
|
{foreach from=$slider item=slide key=key name=slider}
|
|
<div class="col-sm-12 slide-home item" {if isset($slide.img_mobile) && $slide.img_mobile!='slider/slider_{$key}_.png'}style="height:200px;background: url('{$img_dir}{$slide.img_mobile}') no-repeat center top; background-size: contain;"{/if}>
|
|
{if isset($slide.link) && $slide.link}
|
|
<a class="" {if !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{else}href="{$slide.link}"{/if} style="width:100%;height: 100%;display: block;" {if isset($slide.title) && $slide.title}title="{$slide.title}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function() {
|
|
var owl = $('.owl');
|
|
|
|
owl.owlCarousel({
|
|
items : 1,
|
|
margin: 10,
|
|
autoPlay:5000,
|
|
itemsDesktop : [1200, 1],
|
|
itemsDesktopSmall : [900, 1],
|
|
itemsTablet : [750, 1],
|
|
itemsMobile : [570, 1],
|
|
navigationText : ["", ""],
|
|
mouseDrag : false,
|
|
scrollPerPage : false,
|
|
navigation : true,
|
|
});
|
|
|
|
$('.owl-prev').addClass('snotmobile');
|
|
$('.owl-next').addClass('snotmobile');
|
|
});
|
|
</script>
|
|
{/if}
|
|
|
|
{capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/current/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
|
{if !$sale->news}
|
|
<div class="sale {if $sale->univers}sale_univers{/if}" id="sale_{$sale->id}" >
|
|
<div class="sale_container clearfix" {if $sales_mobile && !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{/if}>
|
|
{if $sale->concours && strtotime($sale->date_start) >= {mktime(strftime('%H') - $sale->concours_delay)}}
|
|
<div class="picto-concours">
|
|
<a href="{$sale->link}"></a>
|
|
</div>
|
|
{/if}
|
|
{if $sale->picto}
|
|
<div class="picto-image"><a href="{$sale->link}"></a></div>
|
|
{/if}
|
|
<div class="sale_img col-xs-12 col-sm-6 col-md-6 col-lg-6 " {if !$sale->univers && $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} {if $sale->image} style="background: url('{$smarty.capture.img_sale}') no-repeat left center / cover"{/if} >
|
|
<div class="sale_logo">
|
|
{capture name=img_logo}{$base_dir}{$link_img}{$sale->id}/logo/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
|
{if $sale->imagelogo}<img width="140" height="90" src="{$smarty.capture.img_logo}" />{/if}<br/>
|
|
{if $sale->percent}
|
|
<div class="sale_percent">
|
|
<span>
|
|
{l s='Up to' mod='privatesales'} -{$sale->percent}%
|
|
</span>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
<div class="smobile diamond_red"></div>
|
|
</div>
|
|
|
|
<div class="sale_desc col-xs-12 col-sm-6 col-md-6 col-lg-6" {if !$sale->univers && $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} >
|
|
<span class="sale-name">{$sale->title}</span>
|
|
<div>
|
|
{if $sale->subtitle}
|
|
<p class="sale-subtitle">{$sale->subtitle}</p>
|
|
{/if}
|
|
<p class="snotmobile">{$sale->description}</p>
|
|
{if !$sale->univers}<p class="sale-date">{l s='To' mod='privatesales'} {$sale->date_end|date_format:"%A %d/%m à %Hh%M"}</p>{/if}
|
|
</div>
|
|
{if !$sale->univers}
|
|
<div class="snotmobile button-container clearfix">
|
|
<a class="button-grey" href="{$sale->link}">
|
|
<span>
|
|
{l s='Enter the sale' mod='privatesales'}
|
|
</span>
|
|
</a>
|
|
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
{if !$sale->univers}
|
|
<div class="snotmobile">
|
|
<div class="sale_social col-sm-6">
|
|
<a target="_blank" class="fb" href="http://www.facebook.com/sharer.php?u={$sale->link}&t={$sale->title|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}" title="{l s='Share on Facebook' mod='privatesales'}"></a>
|
|
<a target="_blank" class="twt" href="https://twitter.com/share?text={l s='Sale %s is open' sprintf=$sale->title mod='privatesales'}&url={$sale->link}" title="{l s='Share on Twitter' mod='privatesales'}"></a>
|
|
{hook h='displaySaleLink' id_sale={$sale->id} type='current'}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{else}
|
|
<div class="sale {if isset($sale->news) && $sale->news}is_news{/if} {if $sale->univers}sale_univers{/if}" id="sale_{$sale->id}">
|
|
<div class="sale_container clearfix" {if $sales_mobile && !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{/if} style="{if $sale->image}background : url('{$smarty.capture.img_sale}') no-repeat 0 0 / 230% 100% {/if}">
|
|
{if $sale->image}<img class="img_sale snotmobile" src="{$smarty.capture.img_sale}" />{/if}
|
|
<div class="snotmobile new-block clearfix" {if !$sale->univers && $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} >
|
|
|
|
<div class="button-container">
|
|
{if !$sale->univers}
|
|
<a class="link_sale" href="{$sale->link}">
|
|
<span class="new-normal">
|
|
{l s='New' mod='privatesales'}
|
|
</span>
|
|
<span class="new-hover">
|
|
{l s='Discover' mod='privatesales'}
|
|
</span>
|
|
</a>
|
|
{else}
|
|
<p class="link_sale">
|
|
<span>
|
|
{l s='à venir' mod='privatesales'}
|
|
</span>
|
|
</p>
|
|
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 smobile bluebox">
|
|
{if !$sale->univers}
|
|
<span>{l s='New' mod='privatesales'}</span>
|
|
{else}
|
|
<span>{l s='à venir' mod='privatesales'}</span>
|
|
{/if}
|
|
</div>
|
|
<div {if !$sale->univers && $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} class="col-xs-12 smobile boximg">
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 sale_desc" {if !$sale->univers && $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} >
|
|
<span class="sale-name">{$sale->title}</span>
|
|
<div>
|
|
<p class="snotmobile">{$sale->description}</p>
|
|
{if !$sale->univers}
|
|
<p class="sale-date">
|
|
{l s='To' mod='privatesales'} {$sale->date_end|date_format:"%A %d/%m à %Hh%M"}
|
|
</p>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="sale_logo_display" {if !$sale->univers && $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} >
|
|
<div class="sale_logo">
|
|
{capture name=img_logo}{$base_dir}{$link_img}{$sale->id}/logo/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
|
{if $sale->imagelogo}<img src="{$smarty.capture.img_logo}" />{/if}
|
|
|
|
{if !$sale->univers}
|
|
{if $sale->percent}
|
|
<div class="sale_percent">
|
|
<span>
|
|
{l s='Up to' mod='privatesales'} -{$sale->percent}%
|
|
</span>
|
|
</div>
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{if !$sale->univers}
|
|
<div class="snotmobile">
|
|
<div class="sale_social_new ">
|
|
<a target="_blank" class="fb" href="http://www.facebook.com/sharer.php?u={$sale->link}&t={$sale->title|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}" title="{l s='Share on Facebook' mod='privatesales'}"></a>
|
|
<a target="_blank" class="twt" href="https://twitter.com/share?text={l s='Sale %s is open' sprintf=$sale->title mod='privatesales'}&url={$sale->link}" title="{l s='Share on Twitter' mod='privatesales'}"> </a>
|
|
{hook h='displaySaleLink' id_sale={$sale->id} type='current'}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
|
|
{assign var=i value=$i+1}
|
|
|
|
{if $banner_link_top_active && ($currentsales|count == 1 || $i == 2)}
|
|
<div class="sale-banner-home-top">
|
|
<div class="banner-home-top snotmobile" {if isset($banner_img_top) && $banner_img_top!='banner/bandeau_superieur_.png'}style="background: url('{$img_dir}{$banner_img_top}') no-repeat left top;"{/if}>
|
|
|
|
{if isset($banner_link_top) && $banner_link_top}
|
|
<a class="" href="{$banner_link_top}" {if isset($banner_title_top) && $banner_title_top}title="{$banner_title_top}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
<div class="banner-home-top smobile" {if isset($banner_imgmobile_top) && $banner_imgmobile_top!='banner/bandeau_superieur_mobile_.png'}style="background: url('{$img_dir}{$banner_imgmobile_top}') no-repeat left top; background-size:100% auto;"{/if}>
|
|
{if isset($banner_link_top) && $banner_link_top}
|
|
<a class="" href="{$banner_link_top}" {if isset($banner_title_top) && $banner_title_top}title="{$banner_title_top}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $banner_link_second_active && ($currentsales|count == 1 || $i == 4)}
|
|
<div class="sale-banner-home-second">
|
|
<div class="sale-banner-home-second">
|
|
<div class="banner-home-second snotmobile" {if isset($banner_img_second) && $banner_img_second!='banner/bandeau_second_.png'}style="background: url('{$img_dir}{$banner_img_second}') no-repeat left top;"{/if}>
|
|
{if isset($banner_link_second) && $banner_link_second!=''}
|
|
<a class="" href="{$banner_link_second}" {if isset($banner_title_second) && $banner_title_second!=''}title="{$banner_title_second}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
<div class="banner-home-second smobile" {if isset($banner_imgmobile_second) && $banner_imgmobile_second!='banner/bandeau_second_mobile_.png'}style="background: url('{$img_dir}{$banner_imgmobile_second}') no-repeat left top; background-size: 100% auto;"{/if}>
|
|
{if isset($banner_link_second) && $banner_link_second!=''}
|
|
<a class="" href="{$banner_link_second}" {if isset($banner_title_second) && $banner_title_second!=''}title="{$banner_title_second}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $banner_link_third_active && ($currentsales|count == 1 || $i == 6)}
|
|
<div class="sale-banner-home-third">
|
|
<div class="sale-banner-home-third">
|
|
<div class="banner-home-third snotmobile" {if isset($banner_img_third) && $banner_img_third!='banner/bandeau_third_.png'}style="background: url('{$img_dir}{$banner_img_third}') no-repeat left top;"{/if}>
|
|
{if isset($banner_link_third) && $banner_link_third!=''}
|
|
<a class="" href="{$banner_link_third}" {if isset($banner_title_third) && $banner_title_third!=''}title="{$banner_title_third}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
<div class="banner-home-third smobile" {if isset($banner_imgmobile_third) && $banner_imgmobile_third!='banner/bandeau_third_mobile_.png'}style="background: url('{$img_dir}{$banner_imgmobile_third}') no-repeat left top; background-size:100% auto;"{/if}>
|
|
{if isset($banner_link_third) && $banner_link_third!=''}
|
|
<a class="" href="{$banner_link_third}" {if isset($banner_title_third) && $banner_title_third!=''}title="{$banner_title_third}"{/if}></a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
{if $banner_concour_link_active && ($currentsales|count == 1 || $i == 8)}
|
|
<div class="sale-concours-banner">
|
|
<div class="banner-home-concours">
|
|
{if isset($banner_concour_link) && $banner_concour_link!=''}
|
|
<a class="smobile" href="{if isset($banner_concour_link) && $banner_concour_link!=''}{$banner_concour_link}{/if}"></a>
|
|
<a id="concours-link-rules" class="snotmobile" href="{if isset($banner_concour_link) && $banner_concour_link!=''}{$banner_concour_link}{/if}" title="{if isset($banner_concour_title) && $banner_concour_title!=''}{$banner_concour_title}{/if}" >{if isset($banner_concour_title) && $banner_concour_title!=''}{$banner_concour_title}{/if}</a>
|
|
{/if}
|
|
<br/>
|
|
{if isset($banner_concour_link_2) && $banner_concour_link_2!=''}
|
|
<a id="concours-link-winners" class="snotmobile" href="{if isset($banner_concour_link_2) && $banner_concour_link_2!=''}{$banner_concour_link_2}{/if}" title="{if isset($banner_concour_title_2) && $banner_concour_title_2!=''}{$banner_concour_title_2}{/if}" >{if isset($banner_concour_title_2) && $banner_concour_title_2!=''}{$banner_concour_title_2}{/if}</a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
{*{if $currentsales|count == 1 || $i == 4}
|
|
<div class="sale-parrainage-block clearfix">
|
|
{if isset($banner_link) && $banner_link}
|
|
<a href="{$banner_link}" {if isset($banner_title) && $banner_title!=''}title="{$banner_title}"{/if} >
|
|
{/if}*}
|
|
{*<div class="col-sm-9 block-parrainage">*}
|
|
{*<div class="pastille">{l s='Parrainez vos amis' mod='privatesales'}</div>
|
|
<p>{l s='Et gagnez 10€' mod='privatesales'}</p>
|
|
<a class="button-grey" href="{$link->getModuleLink('referralprogram', 'program', [], true)|escape:'html'}"><span>{l s='J\'invite mes amis !' mod='privatesales'}</span></a>*}
|
|
{*</div>*}
|
|
{*{if isset($banner_link) && $banner_link!=''}
|
|
</a>
|
|
{/if}
|
|
<div class="col-sm-3 encadre_hp">
|
|
{if isset($banner_link_block) && $banner_link_block!=''}
|
|
<a href="{$banner_link_block}" {if isset($banner_title_block) && $banner_title_block}title="{$banner_title_block}"{/if} >
|
|
{/if}
|
|
<img src="{$img_dir}encadre_hp.png" />
|
|
{if isset($banner_link_block) && $banner_link_block!=''}
|
|
</a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/if}*}
|
|
{/foreach}
|
|
|
|
{else}
|
|
<div class="alert alert-warning ">
|
|
<p>{l s='There are no current sales' mod='privatesales'}</p>
|
|
</div>
|
|
{*<div class="snotmobile sale-parrainage-block ">*}
|
|
<div class="sale-parrainage-block clearfix">
|
|
<div class="col-sm-9 block-parrainage">
|
|
{*<div class="pastille">{l s='Parrainez vos amis' mod='privatesales'}</div>
|
|
<p>{l s='Et gagnez 10€' mod='privatesales'}</p>
|
|
<a class="button-grey" href="{$link->getModuleLink('referralprogram', 'program', [], true)|escape:'html'}"><span>{l s='J\'invite mes amis !' mod='privatesales'}</span></a>*}
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<img src="{$img_dir}encadre_hp.png" />
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{if $futuresales|count > 0}
|
|
<div class="future_sales row " id="futuresales">
|
|
<h3 class="sale-title-type col-xs-12"><span>{l s='Nos ventes à venir' mod='privatesales'}</span></h3>
|
|
{if $futuresales|count > 0}
|
|
{foreach from=$futuresales item=sale name=antafutur}
|
|
{if ($smarty.foreach.antafutur.index+1) % 3 == 0}<div class="row">{/if}
|
|
{capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/future/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
|
<div class="sale col-sm-4" id="sale_{$sale->id}" >
|
|
<div class="container_sale clearfix">
|
|
<div class="sale_img " {if $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if} {if $sale->imagefuture} style="background: url('{$smarty.capture.img_sale}') no-repeat left center / cover "{/if}>
|
|
<div class="sale_logo">
|
|
{capture name=img_logo}{$base_dir}{$link_img}{$sale->id}/logo/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
|
{if $sale->imagelogo}<img width="140" height="90" src="{$smarty.capture.img_logo}" />{/if}
|
|
{if $sale->percent}<br/>
|
|
<div class="sale_percent">
|
|
<span>
|
|
{l s='Up to' mod='privatesales'} -{$sale->percent}%
|
|
</span>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
<div class="sale_desc" {if $cookie->logged}onclick="window.location.href='{$sale->link}';"{/if}>
|
|
<span class="sale-name">{$sale->title}</span>
|
|
<div>
|
|
{if $sale->subtitle}
|
|
<p class="sale-subtitle">{$sale->subtitle}</p>
|
|
{/if}
|
|
<p class="sale-date">{l s='From' mod='privatesales'} {$sale->date_start|date_format:"%A %d/%m à %Hh%M"}</p>
|
|
</div>
|
|
<a href="{$sale->link}" class="hidden button-grey">{l s='Voir la vente' mod='privatesales'}</a>
|
|
</div>
|
|
|
|
<div class="submit2">
|
|
<div class="button-container">
|
|
<div class="sale_social_future">
|
|
<a target="_blank" class="fb" href="http://www.facebook.com/sharer.php?u={$sale->link}&t={$sale->title|rawurlencode}%20{l s='on' mod='privatesales'}%20{$shop_name|rawurlencode}" title="{l s='Share on Facebook' mod='privatesales'}"></a>
|
|
<a target="_blank" class="twt" href="https://twitter.com/share?text={l s='Sale %s is open soon' sprintf=$sale->title mod='privatesales'}&url={$sale->link}" title="{l s='Share on Twitter' mod='privatesales'}"></a>
|
|
{hook h='displaySaleLink' id_sale={$sale->id} type='future'}
|
|
</div>
|
|
<a href="{$sale->link}">
|
|
<span class="alert-text">
|
|
{l s='Soon' mod='privatesales'}
|
|
</span>
|
|
<span class="arrow-right"></span>
|
|
</a>
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{if ($smarty.foreach.antafutur.index+1) % 3 == 0}</div><br/>{/if}
|
|
{/foreach}
|
|
|
|
|
|
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="snotmobile block-info row clearfix">
|
|
<div class="block-info-advantage col-sm-4">
|
|
<div class="container-info">
|
|
<div class="box-dashed">
|
|
<div class="pastille">{l s='Vos avantages' mod='privatesales'}</div>
|
|
<ul>
|
|
<li>
|
|
{l s='Profitez des nouveautés de marques prestigieuses avant tout le monde' mod='privatesales'}
|
|
</li>
|
|
<li>
|
|
{l s='Mixez plusieurs marques dans un seul panier et ne payez qu\'un seul frais de port' mod='privatesales'}
|
|
</li>
|
|
<li>
|
|
{l s='Vous avez 14 jours pour changer d\'avis' mod='privatesales'}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="block-info-parrainage col-sm-4">
|
|
<div class="container-info">
|
|
<div class="box-dashed">
|
|
<div class="pastille">{l s='Parrainez vos amis' mod='privatesales'}</div>
|
|
<p>{l s='Et gagnez 10€' mod='privatesales'}</p>
|
|
<a class="button-grey" href="{$link->getModuleLink('referralprogram', 'program', [], true)|escape:'html'}"><span>{l s='J\'invite mes amis !' mod='privatesales'}</span></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="block-info-fidelity col-sm-4">
|
|
<div class="container-info">
|
|
<div class="box-dashed">
|
|
<div class="pastille">{l s='Programme de fidélité' mod='privatesales'}</div>
|
|
<p>{l s='Cumulez des € avec notre programme de fidélité et réalisez des économies sur vos futurs achats !' mod='privatesales'}</p>
|
|
{if $cookie->logged}
|
|
<a class="button-grey" href="{$link->getModuleLink('loyalty', 'default', ['process' => 'summary'], true)|escape:'html'}" title="{l s='Votre crédit fidélité'}"><span>{l s='En savoir plus' mod='privatesales'}</span></a>
|
|
{else}
|
|
<a class="button-grey" href="{$link->getCMSLink(11)|escape:'html'}" title="{l s='Votre crédit fidélité'}"><span>{l s='En savoir plus' mod='privatesales'}</span></a>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
{*if $popup_connection && !$cookie->logged && !$sales_mobile}
|
|
<div class="popup_connection" style="display: none;">
|
|
<div class="text-intro-popup col-xs-12 col-sm-6">
|
|
<div class="box-auth">
|
|
<div class="container-box-white">
|
|
<div class="container-logo">
|
|
<img src="{$img_dir}logo_min.png" />
|
|
</div>
|
|
<p>
|
|
{l s='Toutes les marques des PROS'}<br>
|
|
{l s='de l\'hôtellerie restauration'}<br/>
|
|
{l s='en ventes privées.'}
|
|
</p>
|
|
<div class="clearfix"></div>
|
|
<ul>
|
|
<li>
|
|
{l s='Ventes Privées jusqu\'à -70%'}
|
|
</li>
|
|
<li>
|
|
{l s='Nouveautés en avant première'}
|
|
</li>
|
|
<li>
|
|
{l s='Professionnels et particuliers passionnés de cuisine'}
|
|
</li>
|
|
<li>
|
|
{l s='Livraison entre 15 et 25 jours.'}
|
|
</li>
|
|
</ul>
|
|
<h2 class="to_step_login">
|
|
{l s='Déjà membre ?'}<br/><p class="shape-red"></p>
|
|
</h2>
|
|
<h2 class="to_step_create" style="display : none;">
|
|
{l s='Devenez membre gratuitement'}<br/><p class="shape-red"></p>
|
|
</h2>
|
|
<button type="button" class="button-grey button-white to_step_login">
|
|
<span>{l s='Se connecter'}</span>
|
|
</button>
|
|
|
|
<button type="button" class="button-grey button-white to_step_create" style="display : none;">
|
|
<span>{l s='Nous rejoindre'}</span>
|
|
</button>
|
|
</div>
|
|
<div id="free_delivery_offer">
|
|
<img src="{$img_dir}pop_up_free_delivery_offer.png" alt="{l s='Free delivery' mod='privatesales'}" width="150" height="150">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="box-auth">
|
|
<div class="create_account step_1 col-xs-12 col-sm-6">
|
|
<h2>
|
|
{l s='Devenez membre'} <span>{l s='gratuitement'}</span><br/><p class="shape-red"></p>
|
|
</h2>
|
|
<div class="alert alert-danger" style="display:none"></div>
|
|
<div class="required form-group">
|
|
<label for="customer_firstname">{l s='Votre prénom'} <sup>*</sup></label>
|
|
<input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname|escape:'html':'UTF-8'}{/if}{if isset($smarty.get.customer_firstname)}{$smarty.get.customer_firstname|escape:'html':'UTF-8'}{/if}" />
|
|
<p class="error firstname"></p>
|
|
</div>
|
|
<div class="required form-group">
|
|
<label for="customer_lastname">{l s='Votre nom'} <sup>*</sup></label>
|
|
<input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.customer_lastname)}{$smarty.post.customer_lastname|escape:'html':'UTF-8'}{/if}{if isset($smarty.get.customer_lastname)}{$smarty.get.customer_lastname|escape:'html':'UTF-8'}{/if}" />
|
|
<p class="error lastname"></p>
|
|
</div>
|
|
<div class="required form-group">
|
|
<label for="email">{l s='Adresse email'} <sup>*</sup></label>
|
|
<input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'html':'UTF-8'}{/if}{if isset($smarty.get.email)}{$smarty.get.email|escape:'html':'UTF-8'}{/if}" />
|
|
<p class="error email"></p>
|
|
</div>
|
|
<div class="required password form-group">
|
|
<label for="passwd">{l s='Mot de passe'} <sup>*</sup></label>
|
|
<input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" />
|
|
<p class="error password"></p>
|
|
</div>
|
|
|
|
<p class="submit clearfix">
|
|
<input type="hidden" name="email_create" value="1" />
|
|
<input type="hidden" name="is_new_customer" value="1" />
|
|
<button type="button" name="nextStep" id="nextStep" class="nextStep button-grey">
|
|
<span>{l s='Nous rejoindre'}</span>
|
|
</button>
|
|
</p>
|
|
</div>
|
|
<div class="create_account step_2 col-xs-12 col-sm-6" style="display : none;">
|
|
<h2>
|
|
{l s='Devenez membre'} <span>{l s='gratuitement'}</span><br/><p class="shape-red"></p>
|
|
</h2>
|
|
<div class="clearfix">
|
|
<div class="box-b2b">
|
|
<div class="group-radio">
|
|
<input name="check_b2b" id="b2b_on" type="radio" value="1" {if isset($is_pro) && $is_pro}checked="checked"{/if} />
|
|
<label for="b2b_on">{l s='Je suis un'} <b>{l s='professionnel'}</b> {l s='de l\'hôtellerie restauration ou des métiers de bouche'}</label>
|
|
</div>
|
|
<div class="group-radio">
|
|
<input name="check_b2b" id="b2b_off" type="radio" value="0" {if !isset($is_pro) || !$is_pro}checked="checked"{/if}/>
|
|
<label for="b2b_off">{l s='Je suis un'} <b>{l s='particulier'}</b> {l s=', à la recherche de matériel de marques professionnelles'}</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="checkbox">
|
|
<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) and $smarty.post.newsletter == 1} checked="checked"{/if} />
|
|
<label for="newsletter">{l s='J\'accepte les conditions générales d\'utilisations'}</label>
|
|
<p class="error newsletter"></p>
|
|
</div>
|
|
<div class="clearfix"> </div>
|
|
|
|
<p class="submit clearfix text-center">
|
|
<input type="hidden" name="email_create" value="1" />
|
|
<input type="hidden" name="is_new_customer" value="1" />
|
|
<input type="hidden" class="hidden" name="back" value="{$link->getPageLink('index', true)}" />
|
|
<button type="button" name="submitAccount2" id="submitAccount2" class="button-grey right">
|
|
<span>{l s='Devenir membre gratuitement'}</span>
|
|
</button>
|
|
<button type="submit" name="submitAccount" id="submitAccount" class="button-grey right" style="display : none;">
|
|
<span>{l s='Devenir membre gratuitement'}</span>
|
|
</button>
|
|
</p>
|
|
</div>
|
|
</form>
|
|
<div class="login_account step_login col-xs-12 col-sm-6" style="display : none;">
|
|
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box-auth">
|
|
<div class="container-box-white">
|
|
<h2>
|
|
{l s='Déjà membre'} <span>{l s='privilégié'}</span> ?<br/>
|
|
{l s='connectez-vous !'}<br/>
|
|
<p class="shape-red"></p>
|
|
</h2>
|
|
<div class="form_content clearfix">
|
|
<div class="form-group" >
|
|
<label for="email">{l s='Adresse email'}</label>
|
|
|
|
<input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="passwd">{l s='Mot de passe'}</label>
|
|
<span><input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" /></span>
|
|
</div>
|
|
<p class="lost_password form-group text-center"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Mot de passe oublié ?'}</a></p>
|
|
<p class="submit text-center">
|
|
<input type="hidden" class="hidden" name="back" value="{$link->getPageLink('index', true)}" />
|
|
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button-grey ">
|
|
<span>
|
|
{l s='Me connecter'}
|
|
</span>
|
|
</button>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="popup_overlay" style="display: none;"></div>
|
|
|
|
<script type="text/javascript">
|
|
var nom = "{l s='Votre nom est manquant'}";
|
|
var prenom = "{l s='Votre prénom est manquant'}";
|
|
var mdp = "{l s='Votre mot de passe est manquant'}";
|
|
var mdp2 = "{l s='Votre mot de passe est trop court'}";
|
|
var mail = "{l s='Votre adresse email est manquante'}";
|
|
var newsletter = "{l s='Acceptez les conditions générales d\'utilisations'}";
|
|
</script>
|
|
{literal}
|
|
<script type="text/javascript">
|
|
//var timer = setInterval( showPopup, 3000);
|
|
var open = false;
|
|
function showPopup(){
|
|
if(!open){
|
|
$('.popup_overlay').fadeIn(100);
|
|
$('.popup_connection').fadeIn(250);
|
|
open = true;
|
|
}
|
|
}
|
|
$(document).ready(function() {
|
|
$(".sale, .sale a.button-grey").click(function(e) {
|
|
e.stopPropagation();
|
|
$('.popup_overlay').fadeIn(100);
|
|
$('.popup_connection').fadeIn(250);
|
|
});
|
|
/*$('li.modalbox').unbind('click').click(function(){
|
|
$('.popup_overlay').fadeIn(100);
|
|
$('.popup_connection').fadeIn(250);
|
|
});*/
|
|
$('.popup_overlay').click(function(){
|
|
$(this).fadeOut(100);
|
|
$('.popup_connection').fadeOut(100);
|
|
open = false;
|
|
});
|
|
|
|
});
|
|
$(".nextStep").bind( "click", function() {
|
|
var error = false;
|
|
if(!$('#customer_firstname').val()){
|
|
$('.error.firstname').html(prenom);
|
|
$('.error.firstname').show();
|
|
error = true;
|
|
}
|
|
if(!$('#customer_lastname').val()){
|
|
$('.error.lastname').html(nom);
|
|
$('.error.lastname').show();
|
|
error = true;
|
|
}
|
|
if(!$('#email').val()){
|
|
$('.error.email').html(mail);
|
|
$('.error.email').show();
|
|
error = true;
|
|
}
|
|
if(!$('#passwd').val()){
|
|
$('.error.password').html(mdp);
|
|
$('.error.password').show();
|
|
error = true;
|
|
}else{
|
|
var pass = $('#passwd').val();
|
|
if(pass.length < 6){
|
|
$('.error.password').html(mdp2);
|
|
$('.error.password').show();
|
|
error = true;
|
|
}
|
|
}
|
|
if(!error){
|
|
$('.create_account .error').hide();
|
|
$(".step_1").hide();
|
|
$(".step_login").hide();
|
|
$(".step_2").show();
|
|
}
|
|
});
|
|
|
|
$("#submitAccount2").bind( "click", function() {
|
|
var error = false;
|
|
if(!$('#newsletter').is(':checked')){
|
|
$('.error.newsletter').html(newsletter);
|
|
$('.error.newsletter').show();
|
|
error = true;
|
|
}
|
|
if(!error){
|
|
$("#submitAccount").trigger("click");
|
|
}
|
|
});
|
|
|
|
$(".to_step_login").bind( "click", function() {
|
|
|
|
$(".step_1").hide();
|
|
$(".step_2").hide();
|
|
$("#free_delivery_offer").hide();
|
|
$(".to_step_login").hide();
|
|
$(".step_login").show();
|
|
$(".to_step_create").show();
|
|
});
|
|
$(".to_step_create").bind( "click", function() {
|
|
$(".step_1").show();
|
|
$(".step_2").hide();
|
|
$("#free_delivery_offer").show();
|
|
$(".to_step_login").show();
|
|
$(".step_login").hide();
|
|
$(".to_step_create").hide();
|
|
});
|
|
</script>
|
|
{/literal}
|
|
|
|
{/if*}
|
|
{if $cookie->logged && $sale_customer_uniqid}
|
|
{literal}
|
|
<!-- Tag inscription Public Idees -->
|
|
<script type="text/javascript">
|
|
var tip = tip || [];
|
|
tip.push(["_setLead","3913","508146","d3efacaacc5ad231b63cb2b8d50b0dd6",
|
|
'{/literal}{$sale_customer_uniqid}{literal}', // transaction ID - required
|
|
'' // additional data
|
|
]);
|
|
(function(e){function t(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src=(document.location.protocol=="https:"?"https":"http")+"://tracking.publicidees.com/p/tip/";
|
|
var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}if(e.addEventListener){e.addEventListener("load",t,false)}else if(e.attachEvent){e.attachEvent("onload",t)}})(window)
|
|
</script>
|
|
<!-- Fin Tag inscription Public Idees -->
|
|
|
|
<!-- Tag Thank you page -->
|
|
<script type="text/javascript">
|
|
var tip = tip || [];
|
|
tip.push(['_setSegment', '3913', '4983', 'Thank you Page']);
|
|
(function(e){function t(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src=(document.location.protocol=="https:"?"https":"http")+"://tracking.publicidees.com/p/tip/";
|
|
var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}if(e.addEventListener){e.addEventListener("load",t,false)}else if(e.attachEvent){e.attachEvent("onload",t)}})(window)
|
|
</script>
|
|
{/literal}
|
|
{/if}
|
|
<!-- Tracking Universel Public Idees -->
|
|
{literal}
|
|
<script type="text/javascript">
|
|
var tip = tip || [];
|
|
tip.push(['_setSegment', '3913', '4981', 'Home']);
|
|
(function(e){function t(){var e=document.createElement("script");e.type="text/javascript";e.async=true;e.src=(document.location.protocol=="https:"?"https":"http")+"://tracking.publicidees.com/p/tip/";
|
|
var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}if(e.addEventListener){e.addEventListener("load",t,false)}else if(e.attachEvent){e.attachEvent("onload",t)}})(window)
|
|
</script>
|
|
{/literal}
|
|
<!-- Fin Tracking Universel Public Idees -->
|
|
{if $cookie->logged && !$alertedcat && $id_category}
|
|
{assign var=params value=['id_sale_category' => $id_category, 'alias' => $alias]}
|
|
<script>
|
|
var url = "{$link->getModuleLink('privatesales', 'homecat', $params )}";
|
|
var id_category = {$id_category};
|
|
var message = "{l s='You request has been save' mod='privatesales' js=1}";
|
|
</script>
|
|
{literal}
|
|
<script>
|
|
$(document).ready(function(){
|
|
$("[name='alertme']").click(function(event){
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: url,
|
|
dataType: 'json',
|
|
data : {
|
|
action : "submitNewsletterCat",
|
|
ajax: 1,
|
|
id_category: id_category,
|
|
},
|
|
success: function(response){
|
|
if ( !response.hasError ){
|
|
$("[name='alertme']").hide();
|
|
$("#privatesales_home").prepend('<div class="alert alert-success"><button data-dismiss="alert" class="close" type="button"></button>'+message+'</div>');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
{/literal}
|
|
{/if} |