Files
drmaterac.pl/modules/ets_promotion/views/templates/hook/condition/customer_membership.tpl
2025-01-06 20:47:25 +01:00

45 lines
2.2 KiB
Smarty

{*
* Copyright ETS Software Technology Co., Ltd
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 website only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future.
*
* @author ETS Software Technology Co., Ltd
* @copyright ETS Software Technology Co., Ltd
* @license Valid for 1 website (or project) for each purchase of license
*}
{assign var='customer_membership' value=false}
{if ($customer_signed_up_from && $customer_signed_up_from!='0000-00-00 00:00:00') || ($customer_signed_up_to && $customer_signed_up_to!='0000-00-00 00:00:00')}
<p>{l s='Registration date' mod='ets_promotion'}: {if $customer_signed_up_from && $customer_signed_up_from!='0000-00-00 00:00:00'}{l s='from' mod='ets_promotion'} {$customer_signed_up_from|escape:'html':'UTF-8'}{/if} {if $customer_signed_up_to && $customer_signed_up_to!='0000-00-00 00:00:00'}{l s='to' mod='ets_promotion'} {$customer_signed_up_to|escape:'html':'UTF-8'}{/if}</p>
{assign var='customer_membership' value=true}
{/if}
{if $days_since_singed_up_day}
<p>{l s='Days since registration' mod='ets_promotion'}: {$days_since_signed_up_cal|escape:'html':'UTF-8'}{$days_since_singed_up_day|escape:'html':'UTF-8'}</p>
{/if}
{if $newsletter_registration}
<p>
{l s='Newsletter registration' mod='ets_promotion'}:
{if in_array('all',$newsletter_registration)}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{if in_array('reccive_offers',$newsletter_registration)}
<li>- {l s='Receive offers from partners' mod='ets_promotion'}</li>
{/if}
{if in_array('sign_up',$newsletter_registration)}
<li>- {l s='Sign up for newsletter' mod='ets_promotion'}</li>
{/if}
</ul>
{/if}
</p>
{assign var='customer_membership' value=true}
{/if}
{if !$customer_membership}--{/if}