first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{*
* 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
*}
<p>{l s='Cart amount' mod='ets_promotion'}: {$cart_amount_cal|escape:'html':'UTF-8'}{$cart_amount|escape:'html':'UTF-8'}</p>
<p>
{l s='Tax included' mod='ets_promotion'}: {if $cart_amount_tax_incl}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>
<p>
{l s='Shipping included' mod='ets_promotion'}: {if $cart_amount_shipping_incl}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>
<p>
{l s='Discount included' mod='ets_promotion'}: {if $cart_amount_discount_incl}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>

View File

@@ -0,0 +1,33 @@
{*
* 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
*}
{if $customer_groups=='all'}
<p>{l s='All group' mod='ets_promotion'}</p>
{else}
<p>
{l s='Customer groups:' mod='ets_promotion'}
<ul class="pl_10">
{foreach from =$customer_groups item='customer_group'}
<li>- {$customer_group.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
</p>
<p>
{l s='Only apply on default group' mod='ets_promotion'}: {if $only_apply_on_default_group}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>
{/if}

View File

@@ -0,0 +1,45 @@
{*
* 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}

View File

@@ -0,0 +1,36 @@
{*
* 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
*}
{if $customer_genders}
<p>{l s='Gender' mod='ets_promotion'}:
{if $customer_genders=='all'}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from=$customer_genders item='customer_gender'}
<li>- {$customer_gender.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
{/if}
<p>{l s='Age from' mod='ets_promotion'}: {if $age_from || $age_to}{if $age_from}{$age_from|escape:'html':'UTF-8'}{else}0{/if}{if $age_to} - {$age_to|intval}{/if}{else}{l s='All' mod='ets_promotion'}{/if}</p>
<p>{l s='On customer birthday' mod='ets_promotion'}: {if $on_customer_birthday}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}</p>
{if $ets_free_downloads}
<p>{l s='Verified customer' mod='ets_promotion'}: {if $verified_customer}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}</p>
{/if}

View File

@@ -0,0 +1,163 @@
{*
* 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
*}
{if $specific_occasion_day_of_week}
{assign var ='dem' value= 1}
{foreach from =$specific_occasion_day_of_week key='index' item='day_week'}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Day of week' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-3">
<select name="specific_occasion_day_of_week[]">
{foreach from =$days key='key' item='day'}
<option value="{$key|escape:'html':'UTF-8'}" {if $day_week==$key} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select name="specific_occasion_day_of_week_from[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}"{if $specific_occasion_day_of_week_from[$index]!='' && $specific_occasion_day_of_week_from[$index]== $h} selected="selected"{/if}>{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_day_of_week_to[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}"{if $specific_occasion_day_of_week_to[$index]!='' && $specific_occasion_day_of_week_to[$index]== $h} selected="selected"{/if}>{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
{if $dem > 1}
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
{/if}
</div>
</div>
</div>
{assign var ='dem' value= $dem+1}
{/foreach}
{else}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Day of week' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-3">
<select name="specific_occasion_day_of_week[]">
{foreach from =$days key='key' item='day'}
<option value="{$key|escape:'html':'UTF-8'}">{$day|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select name="specific_occasion_day_of_week_from[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_day_of_week_to[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
</div>
</div>
</div>
{/if}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3"></label>
<div class="col-lg-9">
<button class="btn btn-default btn_add_new_row_specific_occasion">
<i class="icon-plus-circle"></i>&nbsp;{l s='Add day' mod='ets_promotion'}
</button>
</div>
</div>
<div class="new_row_specific_occasion" style="display:none;">
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Day of week' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-3">
<select data-name="specific_occasion_day_of_week[]">
{foreach from =$days key='key' item='day'}
<option value="{$key|escape:'html':'UTF-8'}">{$day|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select name="specific_occasion_day_of_week_from[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_day_of_week_to[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,65 @@
{*
* 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='check_delivery' value=false}
{if $delivery_total_cart_weight >0}
{assign var='check_delivery' value=true}
<p>
{l s='Total cart weight' mod='ets_promotion'}: {$delivery_total_cart_weight_cal|escape:'html':'UTF-8'}{$delivery_total_cart_weight|escape:'html':'UTF-8'}kg
</p>
{/if}
{if $delivery_apply_to_carriers}
<p>
{l s='Apply to carriers' mod='ets_promotion'}:
{if $delivery_apply_to_carriers=='all'}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from=$delivery_apply_to_carriers item='carrier'}
<li>- {$carrier.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
{assign var='check_delivery' value=true}
{/if}
{if $zone_name}
<p>
{l s='Delivery zone' mod='ets_promotion'}: {$zone_name|escape:'html':'UTF-8'}
</p>
{assign var='check_delivery' value=true}
{/if}
{if $country_name}
<p>
{l s='Delivery country' mod='ets_promotion'}: {$country_name|escape:'html':'UTF-8'}
</p>
{assign var='check_delivery' value=true}
{/if}
{if $state_name}
<p>
{l s='Delivery state' mod='ets_promotion'}: {$state_name|escape:'html':'UTF-8'}
</p>
{assign var='check_delivery' value=true}
{/if}
{if $delivery_speed_grade > 0}
<p>
{l s='Speed grade' mod='ets_promotion'}: {$delivery_speed_grade_cal|escape:'html':'UTF-8'}{$delivery_speed_grade|escape:'html':'UTF-8'}
</p>
{assign var='check_delivery' value=true}
{/if}
{if !$check_delivery}--{/if}

View File

@@ -0,0 +1,120 @@
{*
* 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
*}
{if $specific_occasion_date_from}
{assign var ='dem' value= 1}
{foreach from =$specific_occasion_date_from key='index' item='date_from'}
{if $date_from || $specific_occasion_date_to[$index]}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3 {if $dem==0} required{/if}">{l s='From - To' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input class="datetimepicker input-medium" name="specific_occasion_date_from[]" value="{$date_from|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input class="datetimepicker input-medium" name="specific_occasion_date_to[]" value="{$specific_occasion_date_to[$index]|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
{if $dem > 1}
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
{/if}
</div>
</div>
</div>
{assign var ='dem' value= $dem+1}
{/if}
{/foreach}
{else}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3 required">{l s='From - To' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input class="datetimepicker input-medium" name="specific_occasion_date_from[]" value="" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input class="datetimepicker input-medium" name="specific_occasion_date_to[]" value="" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3"></label>
<div class="col-lg-9">
<button class="btn btn-default btn_add_new_row_specific_occasion">
<i class="icon-plus-circle"></i>&nbsp;{l s='Add day' mod='ets_promotion'}
</button>
</div>
</div>
<div class="new_row_specific_occasion" style="display:none;">
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='From - To' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input class="datetimepicker input-medium" data-name="specific_occasion_date_from[]" value="" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input class="datetimepicker input-medium" data-name="specific_occasion_date_to[]" value="" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,144 @@
{*
* 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
*}
{if $specific_occasion_hour_of_day_from}
{assign var ='dem' value= 1}
{foreach from=$specific_occasion_hour_of_day_from key='index' item='hour_from'}
{if $hour_from || $specific_occasion_hour_of_day_to[$index]}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3{if $dem==1} rquired{/if}">{l s='Hour of day' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select name="specific_occasion_hour_of_day_from[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}"{if $hour_from!='' && $h==$hour_from } selected="selected"{/if}>{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_hour_of_day_to[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}"{if $specific_occasion_hour_of_day_to[$index]!='' && $h==$specific_occasion_hour_of_day_to[$index]} selected="selected"{/if}>{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
{if $dem > 1}
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
{/if}
</div>
</div>
</div>
{assign var ='dem' value= $dem+1}
{/if}
{/foreach}
{else}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3 required">{l s='Hour of day' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select name="specific_occasion_hour_of_day_from[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_hour_of_day_to[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
</div>
</div>
</div>
{/if}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3"></label>
<div class="col-lg-9">
<button class="btn btn-default btn_add_new_row_specific_occasion">
<i class="icon-plus-circle"></i>&nbsp;{l s='Add hour' mod='ets_promotion'}
</button>
</div>
</div>
<div class="new_row_specific_occasion" style="display:none;">
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Hour of day' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_hour_of_day_from[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-5">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select name="specific_occasion_hour_of_day_to[]">
<option value="">--</option>
{if $hours}
{foreach from= $hours key='h' item='hour'}
<option value="{$h|escape:'html':'UTF-8'}">{$hour|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
</div>
</div>
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* 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
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,151 @@
{*
* 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
*}
{if $specific_occasion_month_of_year}
{assign var ='dem' value= 1}
{foreach from =$specific_occasion_month_of_year key='index' item ='month_year'}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Month of year' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row month_of_year">
<div class="col-lg-3">
<select class="specific_occasion_month_of_year" name="specific_occasion_month_of_year[]">
{foreach from = $months key='key' item='month'}
<option value="{$key|escape:'html':'UTF-8'}"{if $key==$month_year} selected="selected"{/if}>{$month|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select class="day_month_of_year_from" name="specific_occasion_month_of_year_from[]">
<option value="">--</option>
{for $day=1 to 31}
<option value="{$day|intval}"{if $day==$specific_occasion_month_of_year_from[$index]} selected="selected"{/if}>{$day|intval}</option>
{/for}
</select>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select class="day_month_of_year_to" name="specific_occasion_month_of_year_to[]">
<option value="">--</option>
{for $day=1 to 31}
<option value="{$day|intval}"{if $day==$specific_occasion_month_of_year_to[$index]} selected="selected"{/if}>{$day|intval}</option>
{/for}
</select>
</div>
</div>
{if $dem > 1}
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
{/if}
</div>
</div>
</div>
{assign var ='dem' value= $dem+1}
{/foreach}
{else}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Month of year' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row month_of_year">
<div class="col-lg-3">
<select class="specific_occasion_month_of_year" name="specific_occasion_month_of_year[]">
{foreach from = $months key='key' item='month'}
<option value="{$key|escape:'html':'UTF-8'}">{$month|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select class="day_month_of_year_from" name="specific_occasion_month_of_year_from[]">
<option value="">--</option>
{for $day=1 to 31}
<option value="{$day|intval}">{$day|intval}</option>
{/for}
</select>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select class="day_month_of_year_to" name="specific_occasion_month_of_year_to[]">
<option value="">--</option>
{for $day=1 to 31}
<option value="{$day|intval}">{$day|intval}</option>
{/for}
</select>
</div>
</div>
</div>
</div>
</div>
{/if}
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3"></label>
<div class="col-lg-9">
<button class="btn btn-default btn_add_new_row_specific_occasion">
<i class="icon-plus-circle"></i>&nbsp;{l s='Add month' mod='ets_promotion'}
</button>
</div>
</div>
<div class="new_row_specific_occasion" style="display:none;">
<div class="form-group parent_codition specific_occasion">
<label class="control-label col-lg-3">{l s='Month of year' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row month_of_year">
<div class="col-lg-3">
<select class="specific_occasion_month_of_year" data-name="specific_occasion_month_of_year[]">
{foreach from = $months key='key' item='month'}
<option value="{$key|escape:'html':'UTF-8'}">{$month|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<select class="day_month_of_year_from" name="specific_occasion_month_of_year_from[]">
<option value="">--</option>
{for $day=1 to 31}
<option value="{$day|intval}">{$day|intval}</option>
{/for}
</select>
</div>
</div>
<div class="col-lg-4">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<select class="day_month_of_year_to" name="specific_occasion_month_of_year_to[]">
<option value="">--</option>
{for $day=1 to 31}
<option value="{$day|intval}">{$day|intval}</option>
{/for}
</select>
</div>
</div>
<div class="col-lg-1">
<button class="btn btn-default btn_delete_row_specific_occasion" title="{l s='Delete' mod='ets_promotion'}"><i class="fa fa-trash icon icon-trash"></i></button>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,73 @@
{*
* 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
*}
{if $first_order_of_customer}
<p>{l s='On the first order of customer' mod='ets_promotion'}</p>
{else}
<p>{l s='Order criteria' mod='ets_promotion'}: {if $order_criteria=='number_of_orders'}{l s='Number of orders' mod='ets_promotion'}{else}{l s='Amount of money spent' mod='ets_promotion'}{/if}</p>
{if $order_criteria=='number_of_orders'}
<p>{l s='Number of orders' mod='ets_promotion'}: {$number_of_order_cal|escape:'html':'UTF-8'}{$number_of_order|intval}</p>
{elseif $order_criteria=='number_of_products'}
<p>{l s='Number of products' mod='ets_promotion'}: {$number_of_product_cal|escape:'html':'UTF-8'}{$number_of_product|intval}</p>
{else}
<p>{l s='Amount of money spent' mod='ets_promotion'}: {$amount_of_money_spent_cal|escape:'html':'UTF-8'}{$amount_of_money_spent|escape:'html':'UTF-8'}</p>
<p>{l s='Tax included' mod='ets_promotion'}: {if $amount_of_money_spent_tax_incl}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}</p>
<p>{l s='Shipping included' mod='ets_promotion'}: {if $amount_of_money_spent_shipping_incl}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}</p>
<p>{l s='Discount included' mod='ets_promotion'}: {if $amount_of_money_spent_discount_incl}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}</p>
{/if}
<p>
{l s='Ordered time in' mod='ets_promotion'}:
{if $order_time_in=='all'}
{l s='All time' mod='ets_promotion'}
{elseif $order_time_in=='this_year'}
{l s='This year' mod='ets_promotion'}
{elseif $order_time_in=='year_1'}
{l s='Year -1' mod='ets_promotion'}
{elseif $order_time_in=='this_month'}
{l s='This month' mod='ets_promotion'}
{elseif $order_time_in=='month_1'}
{l s='Month -1' mod='ets_promotion'}
{elseif $order_time_in=='this_week'}
{l s='This week' mod='ets_promotion'}
{elseif $order_time_in=='week_1'}
{l s='This week' mod='ets_promotion'}
{elseif $order_time_in=='from_to'}
{l s='From' mod='ets_promotion'}: {dateFormat date=$order_time_in_from full=1} - {l s='To' mod='ets_promotion'}: {dateFormat date=$order_time_in_to full=1}
{elseif $order_time_in=='in_last_day'}
{if $order_time_in_last_day >1}
{l s='%s days ago' mod='ets_promotion' sprintf = [$order_time_in_last_day]}
{else}
{l s='1 day ago' mod='ets_promotion'}
{/if}
{/if}
</p>
{if $order_status}
<p>
{l s='Order status is' mod='ets_promotion'}:
{if $order_status=='all'}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from=$order_status item='status'}
<li>- {$status.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
{/if}
{/if}

View File

@@ -0,0 +1,32 @@
{*
* 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
*}
{if $payments}
<p>
{l s='Payment methods' mod='ets_promotion'}:
{if $payments=='all'}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from=$payments item='payment'}
<li>- {$payment.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
{/if}

View File

@@ -0,0 +1,138 @@
{*
* 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
*}
{if $total_product_quantity > 0}
<p>{l s='Total product quantity' mod='ets_promotion'}: {$total_product_quantity_cal|escape:'html':'UTF-8'}{$total_product_quantity|intval}</p>
{/if}
{if $quantity_of_same_product > 0}
<p>{l s='Quantity of same product' mod='ets_promotion'}: {$quantity_of_same_product_cal|escape:'html':'UTF-8'}{$quantity_of_same_product|intval}</p>
{/if}
{if $number_of_different_product > 0}
<p>{l s='Number of different product' mod='ets_promotion'}: {$number_of_different_product_cal|escape:'html':'UTF-8'}{$number_of_different_product|intval}</p>
{/if}
{if $number_of_product_in_same_category > 0}
<p>{l s='Number of product in same category' mod='ets_promotion'}: {$number_of_product_in_same_category_cal|escape:'html':'UTF-8'}{$number_of_product_in_same_category|intval}</p>
{/if}
<p>
{l s='Apply for discounted products' mod='ets_promotion'}: {if $apply_for_discounted_products}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>
<p>
{l s='Product with different attributes are counted as different products' mod='ets_promotion'}: {if $products_with_different_attribute}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>
<p><h2 class="adv_title">{l s='Advanced settings' mod='ets_promotion'}</h2></p>
<p>
{l s='Applicable product categories' mod='ets_promotion'} :
{if $applicable_product_categories =='all_product' || (!$applicable_categories && !$include_specific_products) }
{l s='All categories' mod='ets_promotion'}<br />
{else}
{if $applicable_categories}
<ul class="pl_10">
{foreach from =$applicable_categories item='category'}
<li>- {$category.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
<p>
{l s='Include products in subcategories' mod='ets_promotion'}: {if $include_sub_categories}<span class="status_yes">{l s='Yes' mod='ets_promotion'}</span>{else}<span class="status_no">{l s='No' mod='ets_promotion'}</span>{/if}
</p>
{if $include_specific_products}
{l s='Include specific products' mod='ets_promotion'}:
<ul class="pl_10">
{foreach from=$include_specific_products item='product'}
<li class="prm_products">
<img src="{$product.image|escape:'html':'UTF-8'}" />
<div class="product-info">
<div class="name">{$product.name|escape:'html':'UTF-8'}{if isset($product.attributes)} - {$product.attributes|escape:'html':'UTF-8'}{/if}</div>
<div class="price">{$product.price|escape:'html':'UTF-8'}</div>
</div>
</li>
{/foreach}
</ul>
{/if}
{/if}
{if $exclude_products}
{l s='Exclude products' mod='ets_promotion'}:
<ul class="pl_10">
{foreach from=$exclude_products item='product'}
<li class="prm_products">
<img src="{$product.image|escape:'html':'UTF-8'}" />
<div class="product-info">
<div class="name">{$product.name|escape:'html':'UTF-8'}{if isset($product.attributes)} - {$product.attributes|escape:'html':'UTF-8'}{/if}</div>
<div class="price">{$product.price|escape:'html':'UTF-8'}</div>
</div>
</li>
{/foreach}
</ul>
{/if}
</p>
<p>
{l s='Apply attributes' mod='ets_promotion'}:
{if $apply_all_attribute || $select_attributes=='all' || !$select_attributes}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from =$select_attributes item='attribute'}
<li>- {$attribute.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
<p>
{l s='Apply features' mod='ets_promotion'}:
{if $apply_all_features || $select_features=='all' || !$select_features}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from =$select_features item='feature'}
<li>- {$feature.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
<p>
{l s='Apply suppliers' mod='ets_promotion'}:
{if $apply_all_supplier || $select_suppliers=='all' || !$select_suppliers}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from =$select_suppliers item='supplier'}
<li>- {$supplier.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
<p>
{l s='Apply manufacturers' mod='ets_promotion'}:
{if $apply_all_manufacturer || $select_manufacturers=='all' || !$select_manufacturers}
{l s='All' mod='ets_promotion'}
{else}
<ul class="pl_10">
{foreach from =$select_manufacturers item='manufacturer'}
<li>- {$manufacturer.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
</p>
{if $apply_for_product_price}
<p>{l s='Apply for product price' mod='ets_promotion'}: {$apply_for_product_price_cal|escape:'html':'UTF-8'}{$apply_for_product_price|escape:'html':'UTF-8'}</p>
{/if}
{if $apply_for_availabled_quantity_stock >0}
<p>{l s='Apply for availabled quanitty stock' mod='ets_promotion'}: {$apply_for_availabled_quantity_stock_cal|escape:'html':'UTF-8'}{$apply_for_availabled_quantity_stock|intval}</p>
{/if}

View File

@@ -0,0 +1,43 @@
{*
* 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
*}
<tr class="row-condtion-{$id_ets_pr_condition_rule|intval}">
<td>{$parent_codition|escape:'html':'UTF-8'}</td>
<td>{$detail_condition nofilter}</td>
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
<a class="btn btn-default link_edit_condition" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editconditionrule=1&id_ets_pr_condition_rule={$id_ets_pr_condition_rule|intval}">
<i class="icon icon-pencil fa fa-pencil"></i>
{l s='Edit' mod='ets_promotion'}
</a>
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<i class="icon-caret-down"></i>
</button>
<ul class="dropdown-menu">
<li>
<a class="btn btn-default link_delete_condition" data-confirm="{l s='Do you want to delete this item?' mod='ets_promotion' js=1}" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&id_ets_pr_condition_rule={$id_ets_pr_condition_rule|intval}&delCondition=yes">
<i class="fa fa-trash icon icon-trash"></i>
{l s='Delete' mod='ets_promotion'}
</a>
</li>
</ul>
</div>
</div>
</td>
</tr>

View File

@@ -0,0 +1,28 @@
{*
* 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
*}
{if $condition_customers}
<p>
{l s='Customers' mod='ets_promotion'}:
<ul class="pl_10">
{foreach from=$condition_customers item='condition_customer'}
<li>- {$condition_customer.firstname|escape:'html':'UTF-8'}&nbsp;{$condition_customer.lastname|escape:'html':'UTF-8'} ({$condition_customer.email|escape:'html':'UTF-8'})</li>
{/foreach}
</ul>
</p>
{/if}

View File

@@ -0,0 +1,69 @@
{*
* 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
*}
{if $specific_occasion=='hour_of_day'}
<p>{l s='Specific occasion: Hour of day' mod='ets_promotion'}</p>
{if $specific_occasion_hour_of_day_from}
<ul class="pl_10">
{foreach from=$specific_occasion_hour_of_day_from key='index' item ='day_from'}
{if $day_from || $specific_occasion_hour_of_day_to[$index]}
<li>- {if $day_from!==''}{l s='From' mod='ets_promotion'}: {$day_from|escape:'html':'UTF-8'}h{/if} {if $specific_occasion_hour_of_day_to[$index]}{l s='To' mod='ets_promotion'}: {$specific_occasion_hour_of_day_to[$index]|escape:'html':'UTF-8'}h{/if}</li>
{/if}
{/foreach}
</ul>
{/if}
{elseif $specific_occasion=='day_of_week'}
<p>{l s='Specific occasion: Day of week' mod='ets_promotion'}</p>
{if $specific_occasion_day_of_week}
<ul class="pl_10">
{foreach from=$specific_occasion_day_of_week key='index' item ='day'}
<li>- {$days[$day]|escape:'html':'UTF-8'}
{if $specific_occasion_day_of_week_from[$index]!=='' || $specific_occasion_day_of_week_to[$index]!==''}
{if $specific_occasion_day_of_week_from[$index]!==''}{l s='From' mod='ets_promotion'}: {$specific_occasion_day_of_week_from[$index]|escape:'html':'UTF-8'}h{/if} {if $specific_occasion_day_of_week_to[$index]!==''}{l s='To' mod='ets_promotion'}: {$specific_occasion_day_of_week_to[$index]|escape:'html':'UTF-8'}h{/if}
{/if}
</li>
{/foreach}
</ul>
{/if}
{elseif $specific_occasion=='month_of_year'}
<p>{l s='Specific occasion: Month of year' mod='ets_promotion'}</p>
{if $specific_occasion_month_of_year}
<ul class="pl_10">
{foreach from=$specific_occasion_month_of_year key='index' item ='month'}
<li>
- {$months[$month]|escape:'html':'UTF-8'}
{if $specific_occasion_month_of_year_from[$index] || $specific_occasion_month_of_year_to[$index]}
{if $specific_occasion_month_of_year_from[$index]}{l s='From' mod='ets_promotion'}: {dateFormat date=$specific_occasion_month_of_year_from[$index]}{/if} {if $specific_occasion_month_of_year_to[$index]}{l s='To' mod='ets_promotion'}: {dateFormat date=$specific_occasion_month_of_year_to[$index]}{/if}
{/if}
</li>
{/foreach}
</ul>
{/if}
{elseif $specific_occasion=='from_to'}
<p>{l s='Specific occasion : From - To' mod='ets_promotion'}</p>
{if $specific_occasion_date_from}
<ul class="pl_10">
{foreach from=$specific_occasion_date_from key='index' item ='date_from'}
{if $date_from || $specific_occasion_date_to[$index]}
<li>- {if $date_from}{l s='From' mod='ets_promotion'}: {dateFormat date=$date_from full=1}{/if} {if $specific_occasion_date_to[$index]}{l s='To' mod='ets_promotion'}: {dateFormat date=$specific_occasion_date_to[$index] full=1}{/if}</li>
{/if}
{/foreach}
</ul>
{/if}
{/if}