This commit is contained in:
2025-04-01 00:38:54 +02:00
parent d4d4c0c09d
commit 87da06293a
22351 changed files with 5168854 additions and 7538 deletions

View File

@@ -0,0 +1,817 @@
{*
* 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
*}
{extends file="helpers/form/form.tpl"}
{block name="label"}
{if isset($input.label)}
<label class="control-label col-lg-3 {if (isset($input.required) && $input.required && $input.type != 'radio') || (isset($input.showRequired) && $input.showRequired)} required{/if}">
{if isset($input.hint)}
<span class="label-tooltip" data-toggle="tooltip" data-html="true" title="{if is_array($input.hint)}
{foreach $input.hint as $hint}
{if is_array($hint)}
{$hint.text|escape:'html':'UTF-8'}
{else}
{$hint|escape:'html':'UTF-8'}
{/if}
{/foreach}
{else}
{$input.hint|escape:'html':'UTF-8'}
{/if}">
{/if}
{$input.label|escape:'html':'UTF-8'}
{if isset($input.hint)}
</span>
{/if}
</label>
{/if}
{/block}
{block name="legend"}
{$smarty.block.parent}
{if isset($configTabs) && $configTabs}
<ul class="ets_rule_tabs_configs">
{foreach from=$configTabs key='key' item='tab'}
<li class="rule_tab rule_tab_{$tab.tab|escape:'html':'UTF-8'}{if $key==0} active{/if}" data-tab-id="{$tab.tab|escape:'html':'UTF-8'}">{$tab.name|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{/block}
{block name="input_row"}
{if $input.name=='applicable_product_categories' && $table!='ets_pr_promote_rule'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<div class="col-lg-3"></div>
<div class="col-lg-9">
<input type="hidden" name="display_advanced_setting" value="{$display_advanced_setting|intval}" />
<a href="#" class="btn-advanced-settings"{if $display_advanced_setting} style="display:none{/if}">
<i class="ets_icon lh_16">
<svg width="14" height="14" viewBox="0 0 2048 1792" xmlns="http://www.w3.org/2000/svg"><path d="M960 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zm768 512q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm0-1024q0-52-38-90t-90-38-90 38-38 90q0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm-384 421v185q0 10-7 19.5t-16 10.5l-155 24q-11 35-32 76 34 48 90 115 7 11 7 20 0 12-7 19-23 30-82.5 89.5t-78.5 59.5q-11 0-21-7l-115-90q-37 19-77 31-11 108-23 155-7 24-30 24h-186q-11 0-20-7.5t-10-17.5l-23-153q-34-10-75-31l-118 89q-7 7-20 7-11 0-21-8-144-133-144-160 0-9 7-19 10-14 41-53t47-61q-23-44-35-82l-152-24q-10-1-17-9.5t-7-19.5v-185q0-10 7-19.5t16-10.5l155-24q11-35 32-76-34-48-90-115-7-11-7-20 0-12 7-20 22-30 82-89t79-59q11 0 21 7l115 90q34-18 77-32 11-108 23-154 7-24 30-24h186q11 0 20 7.5t10 17.5l23 153q34 10 75 31l118-89q8-7 20-7 11 0 21 8 144 133 144 160 0 8-7 19-12 16-42 54t-45 60q23 48 34 82l152 23q10 2 17 10.5t7 19.5zm640 533v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31zm0-1024v140q0 16-149 31-12 27-30 52 51 113 51 138 0 4-4 7-122 71-124 71-8 0-46-47t-52-68q-20 2-30 2t-30-2q-14 21-52 68t-46 47q-2 0-124-71-4-3-4-7 0-25 51-138-18-25-30-52-149-15-149-31v-140q0-16 149-31 13-29 30-52-51-113-51-138 0-4 4-7 4-2 35-20t59-34 30-16q8 0 46 46.5t52 67.5q20-2 30-2t30 2q51-71 92-112l6-2q4 0 124 70 4 3 4 7 0 25-51 138 17 23 30 52 149 15 149 31z"/></svg>
</i> {l s='Advanced settings' mod='ets_promotion'}</a>
</div>
</div>
<div class="wapper-advanced-settings{if $display_advanced_setting} active{/if}">
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<h2 class="title_advanced_settings">{l s='Advanced settings' mod='ets_promotion'}</h2>
</div>
{/if}
{if isset($input.tab) && $input.tab}
<div class="ets_rule_tab_content rule_tab_content_{$input.tab|escape:'html':'UTF-8'} ets_pr_row_{$input.name|escape:'html':'UTF-8'}">
{else}
<div class="ets_pr_row_{$input.name|escape:'html':'UTF-8'}">
{/if}
{if $input.name=='from_date' || $input.name=='to_date'}
{if $input.name=='from_date'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Available' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input id="from_date" class="datetimepicker input-medium" name="from_date" value="{if $fields_value['from_date']!='0000-00-00 00:00:00'}{$fields_value['from_date']|escape:'html':'UTF-8'}{/if}" type="text" autocomplete="off" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input id="to_date" class="datetimepicker input-medium" name="to_date" value="{if $fields_value['to_date']!='0000-00-00 00:00:00'}{$fields_value['to_date']|escape:'html':'UTF-8'}{/if}" type="text" autocomplete="off" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='customer_signed_up_from' || $input.name=='customer_signed_up_to'}
{if $input.name=='customer_signed_up_from'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Registration date' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input id="customer_signed_up_from" class="datetimepicker input-medium" name="customer_signed_up_from" value="{$fields_value['customer_signed_up_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-6">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input id="customer_signed_up_to" class="datetimepicker input-medium" name="customer_signed_up_to" value="{$fields_value['customer_signed_up_to']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='order_time_in_from' || $input.name=='order_time_in_to'}
{if $input.name=='order_time_in_from'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<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-6">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input id="order_time_in_from" class="datetimepicker input-medium" name="order_time_in_from" value="{$fields_value['order_time_in_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-6">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input id="order_time_in_to" class="datetimepicker input-medium" name="order_time_in_to" value="{$fields_value['order_time_in_to']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
<i class="icon-calendar-empty"></i>
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='age_from' || $input.name=='age_to'}
{if $input.name=='age_from'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Age' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">{l s='From' mod='ets_promotion'}</span>
<input id="age_from" class=" input-medium" name="age_from" value="{$fields_value['age_from']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
<div class="col-lg-6">
<div class="input-group">
<span class="input-group-addon">{l s='To' mod='ets_promotion'}</span>
<input id="age_to" class="input-medium" name="age_to" value="{$fields_value['age_to']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='days_since_signed_up_cal' || $input.name=='days_since_singed_up_day'}
{if $input.name=='days_since_signed_up_cal'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Days since registration' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<select id="days_since_signed_up_cal" name="days_since_signed_up_cal">
<option value=">="{if $fields_value['days_since_signed_up_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="=" {if $fields_value['days_since_signed_up_cal']=='='} selected="slected"{/if}> = </option>
<option value="<=" {if $fields_value['days_since_signed_up_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="days_since_singed_up_day" class="input-medium" name="days_since_singed_up_day" value="{$fields_value['days_since_singed_up_day']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{l s='Days' mod='ets_promotion'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='number_of_order_cal' || $input.name=='number_of_order'}
{if $input.name=='number_of_order'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3 required"> {l s='Number of orders' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<select id="number_of_order_cal" name="number_of_order_cal">
<option value=">="{if $fields_value['number_of_order_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="=" {if $fields_value['number_of_order_cal']=='='} selected="slected"{/if}> = </option>
<option value="<=" {if $fields_value['number_of_order_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="number_of_order" class="input-medium" name="number_of_order" value="{$fields_value['number_of_order']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{$input.suffix|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='number_of_product_cal' || $input.name=='number_of_product'}
{if $input.name=='number_of_product'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3 required"> {l s='Number of products' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<select id="number_of_product_cal" name="number_of_product_cal">
<option value=">="{if $fields_value['number_of_product_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="=" {if $fields_value['number_of_product_cal']=='='} selected="slected"{/if}> = </option>
<option value="<=" {if $fields_value['number_of_product_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="number_of_product" class="input-medium" name="number_of_product" value="{$fields_value['number_of_product']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{$input.suffix|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='amount_of_money_spent_cal' || $input.name=='amount_of_money_spent'}
{if $input.name=='amount_of_money_spent'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3 required"> {l s='Amount of money spent' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6">
<select id="amount_of_money_spent_cal" name="amount_of_money_spent_cal">
<option value=">="{if $fields_value['amount_of_money_spent_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="=" {if $fields_value['amount_of_money_spent_cal']=='='} selected="slected"{/if}> = </option>
<option value="<=" {if $fields_value['amount_of_money_spent_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="amount_of_money_spent" class="input-medium" name="amount_of_money_spent" value="{$fields_value['amount_of_money_spent']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{$input.suffix|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='cart_amount_cal' || $input.name=='cart_amount'}
{if $input.name=='cart_amount'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3 required"> {l s='Cart amount' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="cart_amount_cal" name="cart_amount_cal">
<option value=">="{if $fields_value['cart_amount_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="=" {if $fields_value['cart_amount_cal']=='='} selected="slected"{/if}> = </option>
<option value="<=" {if $fields_value['cart_amount_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="cart_amount" class="input-medium" name="cart_amount" value="{$fields_value['cart_amount']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{$input.suffix|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='total_product_quantity_cal' || $input.name=='total_product_quantity'}
{if $input.name=='total_product_quantity'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Total product quantity' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="total_product_quantity_cal" name="total_product_quantity_cal">
<option value=">="{if $fields_value['total_product_quantity_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['total_product_quantity_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['total_product_quantity_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="total_product_quantity" class="input-medium" name="total_product_quantity" value="{$fields_value['total_product_quantity']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='quantity_of_same_product_cal' || $input.name=='quantity_of_same_product'}
{if $input.name=='quantity_of_same_product'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Purchased quantity of the same product' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="quantity_of_same_product_cal" name="quantity_of_same_product_cal">
<option value=">="{if $fields_value['quantity_of_same_product_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['quantity_of_same_product_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['quantity_of_same_product_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="quantity_of_same_product" class="input-medium" name="quantity_of_same_product" value="{$fields_value['quantity_of_same_product']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='number_of_different_product_cal' || $input.name=='number_of_different_product'}
{if $input.name=='number_of_different_product'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Number of different products' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="number_of_different_product_cal" name="number_of_different_product_cal">
<option value=">="{if $fields_value['number_of_different_product_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['number_of_different_product_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['number_of_different_product_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="number_of_different_product" class="input-medium" name="number_of_different_product" value="{$fields_value['number_of_different_product']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='number_of_product_in_same_category_cal' || $input.name=='number_of_product_in_same_category'}
{if $input.name=='number_of_product_in_same_category'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Number of products in same category' mod='ets_promotion'}<br />({l s='Only apply for default product category' mod='ets_promotion'}) </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="number_of_product_in_same_category_cal" name="number_of_product_in_same_category_cal">
<option value=">="{if $fields_value['number_of_product_in_same_category_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['number_of_product_in_same_category_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['number_of_product_in_same_category_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="number_of_product_in_same_category" class="input-medium" name="number_of_product_in_same_category" value="{$fields_value['number_of_product_in_same_category']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='apply_for_product_price_cal' || $input.name=='apply_for_product_price'}
{if $input.name=='apply_for_product_price'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Apply for product price' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="apply_for_product_price_cal" name="apply_for_product_price_cal">
<option value=">="{if $fields_value['apply_for_product_price_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['apply_for_product_price_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['apply_for_product_price_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="apply_for_product_price" class="input-medium" name="apply_for_product_price" value="{$fields_value['apply_for_product_price']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{$input.suffix|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='apply_for_availabled_quantity_stock_cal' || $input.name=='apply_for_availabled_quantity_stock'}
{if $input.name=='apply_for_availabled_quantity_stock'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Apply for available stock quantity' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="apply_for_availabled_quantity_stock_cal" name="apply_for_availabled_quantity_stock_cal">
<option value=">="{if $fields_value['apply_for_availabled_quantity_stock_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['apply_for_availabled_quantity_stock_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['apply_for_availabled_quantity_stock_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="apply_for_availabled_quantity_stock" class="input-medium" name="apply_for_availabled_quantity_stock" value="{$fields_value['apply_for_availabled_quantity_stock']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='delivery_total_cart_weight_cal' || $input.name=='delivery_total_cart_weight'}
{if $input.name=='delivery_total_cart_weight'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Total cart weight' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="delivery_total_cart_weight_cal" name="delivery_total_cart_weight_cal">
<option value=">="{if $fields_value['delivery_total_cart_weight_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['delivery_total_cart_weight_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['delivery_total_cart_weight_cal']=='<='} selected="slected"{/if}><= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="delivery_total_cart_weight" class="input-medium" name="delivery_total_cart_weight" value="{$fields_value['delivery_total_cart_weight']|escape:'html':'UTF-8'}" type="text" />
<span class="input-group-addon">
{$input.suffix|escape:'html':'UTF-8'}
</span>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='amount_discount_on_next_same_product' || $input.name=='amount_discount_on_next_same_product_tax_incl' || $input.name=='reduction_currency_discount_on_next_same_product'}
{if $input.name=='amount_discount_on_next_same_product'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3 required"> {$input.label|escape:'html':'UTF-8'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-4">
<div{if isset($input.suffix) && $input.suffix} class="input-group "{/if}>
<input id="{$input.name|escape:'html':'UTF-8'}" class="" name="{$input.name|escape:'html':'UTF-8'}" value="{$fields_value['amount_discount_on_next_same_product']|escape:'html':'UTF-8'}" type="text" />
{if isset($input.suffix) && $input.suffix}
<span class="input-group-addon"> {$input.suffix|escape:'html':'UTF-8'} </span>
{/if}
</div>
</div>
<div class="col-lg-4">
<select name="reduction_currency_discount_on_next_same_product">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_on_next_same_product']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-4">
<select id="amount_discount_on_next_same_product_tax_incl" name="amount_discount_on_next_same_product_tax_incl">
<option value="0"{if $fields_value['amount_discount_on_next_same_product_tax_incl']==0} selected="slected"{/if} > {l s='Tax excluded' mod='ets_promotion'} </option>
<option value="1"{if $fields_value['amount_discount_on_next_same_product_tax_incl']==1} selected="slected"{/if}> {l s='Tax included' mod='ets_promotion'} </option>
</select>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.name=='delivery_speed_grade_cal' || $input.name=='delivery_speed_grade'}
{if $input.name=='delivery_speed_grade'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<label class="control-label col-lg-3"> {l s='Speed grade' mod='ets_promotion'} </label>
<div class="col-lg-9">
<div class="row">
<div class="col-lg-6 w_100">
<select id="delivery_speed_grade_cal" name="delivery_speed_grade_cal">
<option value=">="{if $fields_value['delivery_speed_grade_cal']=='>='} selected="slected"{/if} > >= </option>
<option value="="{if $fields_value['delivery_speed_grade_cal']=='='} selected="slected"{/if}> = </option>
<option value="<="{if $fields_value['delivery_speed_grade_cal']=='<='} selected="slected"{/if}> <= </option>
</select>
</div>
<div class="col-lg-6">
<div class="input-group">
<input id="delivery_speed_grade" class="input-medium" name="delivery_speed_grade" value="{$fields_value['delivery_speed_grade']|escape:'html':'UTF-8'}" type="text" />
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $input.type=='html'}
{$input.html_content nofilter}
{elseif !(isset($input.no_display) && $input.no_display)}
{$smarty.block.parent}
{/if}
</div>
{if $input.name=='first_order_of_customer'}
<div class="wapper-first_order_of_customer">
{/if}
{if $input.name=='order_status_in'}
</div>
{/if}
{if $input.name=='apply_for_availabled_quantity_stock'}
<div class="form-group {if isset($input.form_group_class)}{$input.form_group_class|escape:'html':'UTF-8'}{/if}">
<div class="col-lg-3"></div>
<div class="col-lg-9">
<a href="#" class="btn-hide-advanced-settings" {if $display_advanced_setting} style="display:block"{/if}>
<i class="ets_icon lh_16">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1277 493q-9 19-29 19h-224v1248q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-1248h-224q-21 0-29-19t5-35l350-384q10-10 23-10 14 0 24 10l355 384q13 16 5 35z"/></svg>
</i> {l s='Hide advanced settings' mod='ets_promotion'}
</a>
</div>
</div>
</div>
{/if}
{/block}
{block name="input"}
{if $input.type == 'checkbox'}
{if isset($input.values.query) && $input.values.query}
{assign var=id_checkbox value=$input.name|cat:'_'|cat:'all'}
{assign var=checkall value=true}
{if !(isset($fields_value[$input.name]) && is_array($fields_value[$input.name]) && $fields_value[$input.name] && in_array('all',$fields_value[$input.name]))}
{assign var=checkall value=false}
{/if}
<div class="checkbox_all checkbox">
{strip}
<label for="{$id_checkbox|escape:'html':'UTF-8'}">
<input type="checkbox" name="{$input.name|escape:'html':'UTF-8'}[]" id="{$id_checkbox|escape:'html':'UTF-8'}" value="all" {if $checkall} checked="checked"{/if} />
{l s='Select/Unselect all' mod='ets_promotion'}
</label>
{/strip}
</div>
{foreach $input.values.query as $value}
{assign var=id_checkbox value=$input.name|cat:'_'|cat:$value[$input.values.id]|escape:'html':'UTF-8'}
<div class="checkbox{if isset($input.expand) && strtolower($input.expand.default) == 'show'} hidden{/if}">
{strip}
<label for="{$id_checkbox|escape:'html':'UTF-8'}">
<input type="checkbox" name="{$input.name|escape:'html':'UTF-8'}[]" id="{$id_checkbox|escape:'html':'UTF-8'}" {if isset($value[$input.values.id])} value="{$value[$input.values.id]|escape:'html':'UTF-8'}"{/if}{if isset($fields_value[$input.name]) && is_array($fields_value[$input.name]) && $fields_value[$input.name] && (in_array($value[$input.values.id],$fields_value[$input.name]) || in_array('all',$fields_value[$input.name])) } checked="checked"{/if} {if isset($value.class) && $value.class} class="{$value.class|escape:'html':'UTF-8'}"{/if}/>
{$value[$input.values.name]|replace:'[highlight]':'<strong>'|replace:'[end_highlight]':'</strong>' nofilter}
</label>
{/strip}
</div>
{/foreach}
{/if}
{elseif $input.type == 'file_lang'}
{if $languages|count > 1}
<div class="form-group">
{/if}
{foreach from=$languages item=language}
{if $languages|count > 1}
<div class="translatable-field lang-{$language.id_lang|intval}" {if $language.id_lang != $defaultFormLanguage}style="display:none"{/if}>
{/if}
<div class="col-lg-9">
<div class="dummyfile input-group sass">
<input id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}" type="file" name="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}" class="hide-file-upload" />
<span class="input-group-addon"><i class="icon-file"></i></span>
<input id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name" type="text" class="disabled" name="filename" readonly />
<span class="input-group-btn">
<button id="{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-selectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
<i class="icon-folder-open"></i> {l s='Choose a file' mod='ets_promotion'}
</button>
</span>
</div>
{if isset($fields_value[$input.name]) && $fields_value[$input.name] && $fields_value[$input.name][$language.id_lang]}
<label class="control-label col-lg-3 uploaded_image_label" style="font-style: italic;">{l s='Uploaded image: ' mod='ets_promotion'}</label>
<div class="col-lg-9 uploaded_img_wrapper">
<img title="" style="display: inline-block; max-width: 200px;" src="{$image_baseurl|escape:'html':'UTF-8'}{$fields_value[$input.name][$language.id_lang]|escape:'html':'UTF-8'}" /></a>
</div>
{/if}
</div>
{if $languages|count > 1}
<div class="col-lg-2">
<button type="button" class="btn btn-default dropdown-toggle" tabindex="-1" data-toggle="dropdown">
{$language.iso_code|escape:'html':'UTF-8'}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
{foreach from=$languages item=lang}
<li><a href="javascript:hideOtherLanguage({$lang.id_lang|intval});" tabindex="-1">{$lang.name|escape:'html':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
{/if}
{if $languages|count > 1}
</div>
{/if}
<script>
$(document).ready(function(){
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-selectbutton,#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name").click(function(e){
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}").trigger('click');
});
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}").change(function(e){
var val = $(this).val();
var file = val.split(/[\\/]/);
$("#{$input.name|escape:'html':'UTF-8'}_{$language.id_lang|intval}-name").val(file[file.length-1]);
});
});
</script>
{/foreach}
{if $languages|count > 1}
</div>
{/if}
{elseif $input.type=='range'}
<div class="range_custom">
<input name="{$input.name|escape:'html':'UTF-8'}" min="{$input.min|intval}" max="{$input.max|intval}" value="{if $fields_value[$input.name]}{$fields_value[$input.name]|escape:'html':'UTF-8'}{else}1{/if}" forever="1" type="range" data-suffix="{$input.data_suffix|escape:'html':'UTF-8'}" data-suffixs="{$input.data_suffixs|escape:'html':'UTF-8'}" />
<div class="range_new">
<span class="range_new_bar"></span>
<span class="range_new_run" style="">
<span class="range_new_button"></span>
</span>
</div>
<span class="input-group-unit">{if $fields_value[$input.name] >1}{$fields_value[$input.name]|escape:'html':'UTF-8'}{else}1{/if}</span>
<span class="range_suffixs">{$input.data_suffixs|escape:'html':'UTF-8'}</span>
<span class="range_min">{$input.min|escape:'html':'UTF-8'}</span>
<span class="range_max">{$input.max|escape:'html':'UTF-8'}</span>
</div>
{elseif $input.type == 'search_customer'}
<div class="pr_search_customer_form">
<div class="input-group ">
<input class="pr_search_customer" name="pr_search_customer" {if isset($input.placeholder)}placeholder="{$input.placeholder|escape:'html':'UTF-8'}"{/if} autocomplete="off" type="text" />
<span class="input-group-addon"> <i class="icon-search"></i> </span>
</div>
<input class="pr_ids_customer" name="{$input.name|escape:'html':'UTF-8'}" value="{$fields_value[$input.name]|escape:'html':'UTF-8'}" type="hidden" />
<ul class="pr_customers" id="block_search_{$input.name|escape:'html':'UTF-8'}">
{Module::getInstanceByName('ets_promotion')->displayListCustomers($fields_value[$input.name]) nofilter}
<li class="pr_customer_loading"></li>
</ul>
</div>
{elseif $input.type == 'search_product'}
<div class="pr_search_product_form">
<div class="input-group ">
<input class="pr_search_product" name="pr_search_product" {if isset($input.placeholder)}placeholder="{$input.placeholder|escape:'html':'UTF-8'}"{/if} autocomplete="off" type="text" data-name="{$input.name|escape:'html':'UTF-8'}" />
<span class="input-group-addon"> <i class="icon-search"></i> </span>
</div>
<input class="pr_ids_product" name="{$input.name|escape:'html':'UTF-8'}" value="{$fields_value[$input.name]|escape:'html':'UTF-8'}" type="hidden" />
<ul class="pr_products" id="block_search_{$input.name|escape:'html':'UTF-8'}">
{Module::getInstanceByName('ets_promotion')->displayListProducts($fields_value[$input.name]) nofilter}
<li class="pr_product_loading"></li>
</ul>
</div>
{else}
{$smarty.block.parent}
{/if}
{/block}
{block name="field"}
{$smarty.block.parent}
{if isset($input.name) && $input.name=='amount_total_cart'}
<div class="col-lg-3">
<select name="reduction_currency">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax">
<option value="0"{if $fields_value['reduction_tax']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{if isset($input.name) && $input.name=='amount_discount_product'}
<div class="col-lg-3">
<select name="reduction_currency_discount_product">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_product']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax_discount_product">
<option value="0"{if $fields_value['reduction_tax_discount_product']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax_discount_product']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{if isset($input.name) && $input.name=='amount_discount_on_all_quantities'}
<div class="col-lg-3">
<select name="reduction_currency_discount_all_quantities">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_all_quantities']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax_discount_all_quantities">
<option value="0"{if $fields_value['reduction_tax_discount_all_quantities']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax_discount_all_quantities']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{if isset($input.name) && $input.name=='amount_discount_on_shipping_cost'}
<div class="col-lg-3">
<select name="reduction_currency_discount_on_shipping_cost">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_on_shipping_cost']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax_discount_on_shipping_cost">
<option value="0"{if $fields_value['reduction_tax_discount_on_shipping_cost']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax_discount_on_shipping_cost']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{if isset($input.name) && $input.name=='amount_new_product_with_discount_price'}
<div class="col-lg-3">
<select name="reduction_currency_discount_on_new_product">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_on_new_product']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax_discount_on_new_product">
<option value="0"{if $fields_value['reduction_tax_discount_on_new_product']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax_discount_on_new_product']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{if isset($input.name) && $input.name=='amount_discount_purchase_more_product_quantity'}
<div class="col-lg-3">
<select name="reduction_currency_discount_on_more_product_quantity">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_on_more_product_quantity']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax_discount_on_more_product_quantity">
<option value="0"{if $fields_value['reduction_tax_discount_on_more_product_quantity']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax_discount_on_more_product_quantity']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{if isset($input.name) && $input.name=='amount_discount_purchase_more_product_amount'}
<div class="col-lg-3">
<select name="reduction_currency_discount_on_more_product_amount">
{if !isset($currencies)}
{assign var='currencies' value =Currency::getCurrencies()}
{/if}
{foreach from=$currencies item='currency'}
<option value="{$currency.id|intval}"{if $fields_value['reduction_currency_discount_on_more_product_amount']==$currency.id} selected="selected"{/if} >{$currency.iso_code|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="col-lg-3">
<select name="reduction_tax_discount_on_more_product_amount">
<option value="0"{if $fields_value['reduction_tax_discount_on_more_product_amount']==0} selected="selected"{/if}>{l s='Tax excluded' mod='ets_promotion'}</option>
<option value="1"{if $fields_value['reduction_tax_discount_on_more_product_amount']==1} selected="selected"{/if} >{l s='Tax included' mod='ets_promotion'}</option>
</select>
</div>
{/if}
{/block}
{block name='description'}
{if $input.type == 'file' && isset($input.is_image) && $input.is_image}
{$smarty.block.parent}
<p class="help-block">{l s='Available image type: jpg, png, gif, jpeg' mod='ets_promotion'}. {l s='Limit' mod='ets_promotion'} {Configuration::get('PS_ATTACHMENT_MAXIMUM_SIZE')|escape:'html':'UTF-8'}Mb</p>
{elseif isset($input.desc) && !is_array($input.desc)}
<p class="help-block">{$input.desc|replace:'[highlight]':'<code>'|replace:'[end_highlight]':'</code>'|replace:'[highlighta]':'<a href="#">'|replace:'[end_highlighta]':'</a>' nofilter}</p>
{else}
{$smarty.block.parent}
{/if}
{/block}

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,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,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,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,61 @@
{*
* 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
*}
<script type="text/javascript">
var text_Click_to_copy = '{l s='Click to copy' mod='ets_promotion' js=1}';
var text_Copied = '{l s='Copied' mod='ets_promotion' js=1}';
if (typeof $.fn.mColorPicker !== "undefined") {
$.fn.mColorPicker.defaults.imageFolder = '../img/admin/';
}
</script>
<div class="ets_pr_tabs_height"></div>
<ul class="ets_pr_tabs">
<li class="tab{if $rule_tab=='discount_rule'} active{/if}" data-tab="discount_rule">
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion">
<img src="../modules/ets_promotion/views/img/mn1.png" alt="" /> {l s='Discount rules' mod='ets_promotion'}
</a>
</li>
<li class="tab{if $rule_tab=='discount_report'} active{/if}" data-tab="discount_report">
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&rule_tab=discount_report">
<img src="../modules/ets_promotion/views/img/mn2.png" alt="" /> {l s='Statistics' mod='ets_promotion'}
</a>
</li>
<li class="tab{if $rule_tab=='settings'} active{/if}" data-tab="settings">
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&rule_tab=settings">
<img src="../modules/ets_promotion/views/img/mn3.png" alt="" /> {l s='Settings' mod='ets_promotion'}
</a>
</li>
</ul>
<div class="ets_pr_content_tabs">
<div class="tab_content discount_rule{if $rule_tab=='discount_rule'} active{/if}">
{if $rule_tab=='discount_rule'}
{$discount_rule nofilter}
{/if}
</div>
<div class="tab_content discount_report{if $rule_tab=='discount_report'} active{/if}">
{if $rule_tab=='discount_report'}
{$discount_rule_report nofilter}
{/if}
</div>
<div class="tab_content settings{if $rule_tab=='settings'} active{/if}">
{if $rule_tab=='settings'}
{$setting_form nofilter}
{/if}
</div>
</div>

View File

@@ -0,0 +1,46 @@
{*
* 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 isset($cartVouchers) && $cartVouchers}
{if !$added}
<ul class="promo-name card-block">
{/if}
{foreach from=$cartVouchers item='voucher'}
{if $voucher.reduction_amount >0}
<li class="cart-summary-line">
<span class="label">{$voucher.name|escape:'html':'UTF-8'}</span>
<div class="float-xs-right">
<span>{$voucher.reduction_formatted|escape:'html':'UTF-8'}</span>
{if isset($voucher.code) && $voucher.code !== ''}
<a href="{$voucher.delete_url|escape:'html':'UTF-8'}" data-link-action="remove-voucher">
<i class="material-icons">&#xE872;</i>
</a>
{/if}
</div>
</li>
{/if}
{/foreach}
{if $list_gift}
<li class="li_ets_pr_gift_products" style="display:none">
{$list_gift nofilter}
</li>
{/if}
{if !$added}
</ul>
{/if}
{/if}

View File

@@ -0,0 +1,22 @@
{*
* 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
*}
{extends file='checkout/_partials/cart-summary.tpl'}
{block name='cart_summary_voucher'}
{include file='./cart-voucher.tpl'}
{/block}

View File

@@ -0,0 +1,84 @@
{*
* 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
*}
<div class="block-promo">
<div class="cart-voucher">
{if $cart.vouchers.added}
{block name='cart_voucher_list'}
<ul class="promo-name card-block">
{foreach from=$cart.vouchers.added item=voucher}
<li class="cart-summary-line">
<span class="label">{$voucher.name}</span>
<div class="float-xs-right">
<span>{$voucher.reduction_formatted}</span>
<a href="{$voucher.delete_url}" data-link-action="remove-voucher"><i class="material-icons">&#xE872;</i></a>
</div>
</li>
{/foreach}
</ul>
{/block}
{else}
{hook h='displayCustomDiscountRule' added=false}
{/if}
{* <p class="promo-code-button display-promo{if $cart.discounts|count > 0} with-discounts{/if}">
<a class="collapse-button" href="#promo-code">
{l s='Have a promo code?' mod='ets_promotion'}
</a>
</p> *}
{* <div id="promo-code" class="collapse{if $cart.discounts|count > 0} in{/if}"> *}
<div id="promo-code">
<div class="promo-code">
{block name='cart_voucher_form'}
<form action="{$urls.pages.cart|escape:'html':'UTF-8'}" data-link-action="add-voucher" method="post">
<input type="hidden" name="token" value="{$static_token|escape:'html':'UTF-8'}">
<input type="hidden" name="addDiscount" value="1">
<input class="promo-input" type="text" name="discount_name" placeholder="{l s='Promo code' mod='ets_promotion'}">
<button type="submit" class="btn btn-primary"><span>{l s='Add' mod='ets_promotion'}</span></button>
</form>
{/block}
{block name='cart_voucher_notifications'}
<div class="alert alert-danger js-error" role="alert">
<i class="material-icons">&#xE001;</i><span class="ml-1 js-error-text"></span>
</div>
{/block}
{* <a class="collapse-button promo-code-button cancel-promo" role="button" data-toggle="collapse" data-target="#promo-code" aria-expanded="true" aria-controls="promo-code">
{l s='Close' mod='ets_promotion'}
</a> *}
</div>
</div>
{if $cart.discounts|count > 0}
<p class="block-promo promo-highlighted">
{l s='Take advantage of our exclusive offers:' mod='ets_promotion'}
</p>
<ul class="js-discount card-block promo-discounts">
{foreach from=$cart.discounts item=discount}
<li class="cart-summary-line">
<span class="label">
<span class="code">{$discount.code|escape:'html':'UTF-8'}</span> - {$discount.name|escape:'html':'UTF-8'}
</span>
</li>
{/foreach}
</ul>
{/if}
</div>
</div>

View File

@@ -0,0 +1,22 @@
{*
* 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
*}
{extends file='checkout/cart.tpl'}
{block name='cart_voucher'}
{include file='./cart-voucher.tpl'}
{/block}

View File

@@ -0,0 +1,34 @@
{*
* 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
*}
<div class="cart-summary-products">
<p>{$cart.summary_string nofilter}</p>
<p>
<a href="#" data-toggle="collapse" data-target="#cart-summary-product-list">
{l s='show details' mod='ets_promotion'}
<i class="material-icons">expand_more</i>
</a>
</p>
<div class="collapse" id="cart-summary-product-list">
<ul class="media-list">
{foreach from=$cart.products item=product}
<li class="media">{include file='checkout/_partials/cart-summary-product-line.tpl' product=$product}</li>
{/foreach}
</ul>
</div>
</div>

View File

@@ -0,0 +1,26 @@
{*
* 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
*}
{extends file='checkout/checkout.tpl'}
{block name='cart_voucher'}
{include file='./cart-voucher.tpl'}
{/block}
{block name='checkout_process'}
{$smarty.block.parent}
{$html_gift_products nofilter}
{/block}

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,105 @@
{*
* 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
*}
<div class="panel">
<div class="panel-heading">
{l s='Rule conditions' mod='ets_promotion'}
<span class="panel-heading-action">
<a class="btn btn-default btn-new-condition" href="#">
<i class="ets_icon">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>
</i> {l s='Add new condition' mod='ets_promotion'}
</a>
</span>
</div>
<div class="form-wrapper">
<table class="table configuration list-rule">
<thead>
<tr class="nodrag nodrop">
<th>{l s='Condition' mod='ets_promotion'}</th>
<th>{l s='Detail' mod='ets_promotion'}</th>
<th class="text-right">{l s='Action' mod='ets_promotion'}</th>
</tr>
</thead>
<tbody>
{if $conditions}
{foreach from=$conditions item='condition'}
<tr class="row-condtion-{$condition.id_ets_pr_condition_rule|intval}">
<td>{$condition.condition|escape:'html':'UTF-8'}</td>
<td>{if isset($condition.detail) && $condition.detail}{$condition.detail nofilter}{/if}</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={$condition.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={$condition.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>
{/foreach}
<tr class="no-data" style="display:none">
<td colspan="100%">{l s='No data found' mod='ets_promotion'}</td>
</tr>
{else}
<tr class="no-data">
<td colspan="100%">{l s='No data found' mod='ets_promotion'}</td>
</tr>
{/if}
</tbody>
</table>
</div>
<div class="panel-footer">
<a class="btn btn-default pull-left" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=information">
<i class="process-icon-back"></i>
{l s='Back' mod='ets_promotion'}
</a>
<a class="btn btn-default pull-right" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=action">
<i class="process-icon-next"></i>
{l s='Next' mod='ets_promotion'}
</a>
</div>
</div>
<div class="ets_condition_popup">
<div class="popup_content table">
<div class="popup_content_tablecell">
<div class="popup_content_wrap" style="position: relative">
<span class="close_popup" title="{l s='Close' mod='ets_promotion'}">+</span>
<div id="block-form-popup-condition" class="form_codition">
{$condition_form nofilter}
</div>
</div>
</div>
</div>
</div>
<div id="new_from_condition_rule" style="display:none;">
{$condition_form nofilter}
</div>

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}

View File

@@ -0,0 +1,88 @@
{*
* 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
*}
<div class="clearfix">
<div class="emp-cronjob ets_pr_form configuration active">
<div class="row mt-15">
<div class="col-lg-12">
<p class="ets-mp-text-strong mb-10"><span style="color: red;">*</span> {l s='Some important notes before setting Cronjob:' mod='ets_promotion'}</p>
<ul>
<li>{l s='Cronjob frequency should be at least twice per day, the recommended frequency is once per minute' mod='ets_promotion'}</li>
<li>{l s='How to set up a cronjob is different depending on your server. If you\'re using a Cpanel hosting, watch this video for more reference:' mod='ets_promotion'}
<a href="https://www.youtube.com/watch?v=bmBjg1nD5yA" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=bmBjg1nD5yA</a> <br>
{l s='You can also contact your hosting provider to ask them for support on setting up the cronjob' mod='ets_promotion'}
</li>
</ul>
<p class="ets-mp-text-strong emp-block mb-15"><span style="color: red;">*</span> {l s=' Set up a cronjob as below on your server to automatically delete expired discount codes or used discount codes.' mod='ets_promotion'}</p>
<p class="mb-15 emp-block"><span class="ets-mp-text-bg-light-gray">* * * * * {$php_path|escape:'html':'UTF-8'} {$dir_cronjob|escape:'html':'UTF-8'} secure=<span class="emp-cronjob-secure-value">{$ETS_PR_CRONJOB_TOKEN|escape:'html':'UTF-8'}</span></span></p>
<p class="ets-mp-text-strong mb-10"><span style="color: red;">*</span> {l s='Execute the cronjob manually by clicking on the button below' mod='ets_promotion'}</p>
<a href="{$link_conjob nofilter}" data-secure="{$ETS_PR_CRONJOB_TOKEN|escape:'html':'UTF-8'}" class="btn btn-default mb-10 js-emp-test-cronjob"><i></i>{l s='Execute cronjob manually' mod='ets_promotion'}</a>
</div>
</div>
<div class="mb-15 emp-block form-horizontal">
<div class="form-group form-group-cronjob">
<label class="control-label col-lg-12 required" style="text-align: left;margin-bottom: 10px;">
{l s='Cronjob secure token:' mod='ets_promotion'}
</label>
<div class="col-lg-6 flex">
<input name="ETS_PR_CRONJOB_TOKEN" id="ETS_PR_CRONJOB_TOKEN" value="{$ETS_PR_CRONJOB_TOKEN|escape:'html':'UTF-8'}" type="text" />
<button name="etsprSubmitUpdateToken" class="btn btn-default" type="submit">{l s='Update' mod='ets_promotion'}</button>
</div>
</div>
</div>
</div>
<div class="ets_pr_form cronjob_log">
<div class="mb-15 emp-block form-horizontal">
<div class="form-group form-group-cronjob">
<label class="control-label" style="float:left;text-align: left;margin-bottom: 10px;padding-left:5px;">
{l s='Save cronjob log' mod='ets_promotion'}
</label>
<div class="col-lg-9 flex">
<span class="switch prestashop-switch fixed-width-lg">
<input name="ETS_PR_SAVE_CRONJOB_LOG" id="ETS_PR_SAVE_CRONJOB_LOG_on" value="1" {if $ETS_PR_SAVE_CRONJOB_LOG}checked="checked"{/if} type="radio" />
<label for="ETS_PR_SAVE_CRONJOB_LOG_on">{l s='Yes' mod='ets_promotion'}</label>
<input name="ETS_PR_SAVE_CRONJOB_LOG" id="ETS_PR_SAVE_CRONJOB_LOG_off" value="0" type="radio" {if !$ETS_PR_SAVE_CRONJOB_LOG}checked="checked"{/if} />
<label for="ETS_PR_SAVE_CRONJOB_LOG_off">{l s='No' mod='ets_promotion'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">{l s='Only recommended for debug purpose' mod='ets_promotion'}</p>
</div>
</div>
<div class="form-group form-group-cronjob">
<label class="control-label col-lg-12" style="text-align: left;margin-bottom: 10px;">
{l s='Cronjob log:' mod='ets_promotion'}
</label>
<div class="col-lg-12 flex">
<textarea class="cronjob_log">{$cronjob_log nofilter}</textarea><br />
<button class="btn btn-default" name="etsprSubmitClearLog"><i class="icon icon-trash"></i> {l s='Clear log' mod='ets_promotion'}</button>
</div>
</div>
</div>
</div>
{if $cronjob_last}
<div class="mb-15 emp-block form-horizontal">
<p class="alert alert-info">{l s='Last time cronjob run' mod='ets_promotion'}: {$cronjob_last|escape:'html':'UTF-8'}</p>
</div>
{/if}
{if !$check_run}
<div class="mb-15 emp-block form-horizontal">
<p class="alert alert-danger">{l s='The last time cronjob executed was more than 24 hours ago. Please check your cronjob configuration.' mod='ets_promotion'}</p>
</div>
{/if}
</div>

View File

@@ -0,0 +1,34 @@
{*
* 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 $customers}
{foreach from=$customers item='customer'}
<li class="pr_customer_item " data-id="{$customer.id_customer|intval}">
<div class="pr_cusotmer_info">
<span class="customer_name">{$customer.firstname|escape:'html':'UTF-8'}&nbsp;{$customer.lastname|escape:'html':'UTF-8'} ({$customer.email|escape:'html':'UTF-8'})</span>
</div>
<div class="pr_block_item_close" title="{l s='Delete' mod='ets_promotion'}">
<i class="ets_svg_fill_lightgray">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
<path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z">
</svg>
</i>
</div>
</li>
{/foreach}
{/if}

View File

@@ -0,0 +1,34 @@
{*
* 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
*}
<script type="text/javascript">
var pr_link_search_product = '{$pr_link_search_product nofilter}';
var Delete_text = '{l s='Delete' mod='ets_promotion' js=1}';
var pr_link_search_customer = '{$pr_link_search_customer nofilter}';
</script>
<div class="panel-heading">
{if !$id_ets_pr_rule}
{l s='Add discount rule' mod='ets_promotion'}
{else}
{l s='Edit discount rule' mod='ets_promotion'}: {$rule->name|escape:'html':'UTF-8'}
{/if}
</div>
<div class="form-wrapper form-rule">
{$tab_rule nofilter}
{$form_html nofilter}
</div>

View File

@@ -0,0 +1,67 @@
{*
* 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
*}
<div class="ets_pr_gift_products">
{if $products}
<div class="card cart-gift-container">
{if $ETS_PR_TITLE_OF_PRODUCT_GIFT}
<div class="card-block">
<h2 class="h2">{$ETS_PR_TITLE_OF_PRODUCT_GIFT|escape:'html':'UTF-8'}</h2>
</div>
<hr class="separator" />
{/if}
<ul class="cart-items">
{foreach from=$products item='product'}
<li class="cart-item">
<div class="product-line-grid">
<div class="product-line-grid-left col-md-3 col-xs-4">
<span class="product-image media-middle">
<img src="{$product.image|escape:'html':'UTF-8'}" alt="{$product.name|escape:'html':'UTF-8'}" />
</span>
</div>
<div class="product-line-grid-body col-md-4 col-xs-8">
<div class="product-line-info">
<a class="label" href="{$product.link|escape:'html':'UTF-8'}">{$product.name|escape:'html':'UTF-8'}</a>
</div>
<div class="product-line-info product-price h5 has-discount">
<div class="product-discount">
<span class="regular-price">{$product.price|escape:'html':'UTF-8'}</span>
</div>
<div class="current-price">
<span class="price">{$product.price_with_discount|escape:'html':'UTF-8'}</span>
</div>
</div>
</div>
<div class="product-line-grid-right product-line-actions col-md-5 col-xs-12">
<div class="row">
<div class="add">
<button data-link="{$link->getPageLink('cart',null,null,['add'=>1,'id_product'=>$product.id_product,'id_product_attribute'=>$product.id_product_attribute,'op'=>'up'])|escape:'html':'UTF-8'}" class="btn btn-primary add-to-cart-gift-product" data-id_product="{$product.id_product|intval}" data-id_product_attribute="{$product.id_product_attribute|intval}">
<i class="material-icons shopping-cart">&#xE547;</i>
{l s='Add to cart' mod='ets_promotion'}
</button>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</li>
{/foreach}
</ul>
</div>
{/if}
</div>

View File

@@ -0,0 +1,21 @@
{*
* 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
*}
<script type="text/javascript">
var ets_pr_link_ajax_change_payment ='{$ets_pr_link_ajax_change_payment nofilter}';
</script>

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,30 @@
{*
* 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
*}
<div class="limit results">
<label class="" for="paginator_select_limit">{l s='Items per page:' mod='ets_promotion'}</label>
<div>
<select id="paginator_{$pageName|escape:'html':'UTF-8'}_select_limit" class="pagination-link custom-select paginator_select_limit" name="paginator_{$pageName|escape:'html':'UTF-8'}_select_limit" >
<option value="10" {if $limit==10} selected="selected"{/if}>10</option>
<option value="20" {if $limit==20} selected="selected"{/if}>20</option>
<option value="50" {if $limit==50} selected="selected"{/if}>50</option>
<option value="100" {if $limit==100} selected="selected"{/if}>100</option>
<option value="300" {if $limit==300} selected="selected"{/if}>300</option>
</select>
</div>
</div>

View File

@@ -0,0 +1,290 @@
{*
* 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
*}
<script type="text/javascript">
var text_update_position='{l s='Successfully updated' mod='ets_promotion'}';
</script>
<div class="panel ets_pr-panel{if isset($class)} {$class|escape:'html':'UTF-8'}{/if}">
<div class="panel-heading">{$title nofilter}
{if isset($totalRecords) && $totalRecords>0}<span class="badge">{$totalRecords|intval}</span>{/if}
<span class="panel-heading-action">
{if isset($show_add_new) && $show_add_new}
<a class="btn btn-default add_new_link" href="{if isset($link_new)}{$link_new|escape:'html':'UTF-8'}{else}{$currentIndex|escape:'html':'UTF-8'}{/if}">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>
{if isset($add_new_text)}{$add_new_text|escape:'html':'UTF-8'}{else} {l s='Add new' mod='ets_promotion'}{/if}
</a>
{/if}
</span>
</div>
{if $fields_list}
<div class="table-responsive clearfix">
<form method="post" action="{if isset($postIndex)}{$postIndex|escape:'html':'UTF-8'}{else}{$currentIndex|escape:'html':'UTF-8'}{/if}">
{if isset($bulk_action_html)}
{$bulk_action_html nofilter}
{/if}
<table class="table configuration list-{$name|escape:'html':'UTF-8'}">
<thead>
<tr class="nodrag nodrop">
{assign var ='i' value=1}
{foreach from=$fields_list item='field' key='index'}
<th class="{$index|escape:'html':'UTF-8'}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}" {if $show_action && !$actions && count($fields_list)==$i}colspan="2"{/if}>
<span class="title_box">
{$field.title|escape:'html':'UTF-8'}
{if isset($field.sort) && $field.sort}
<span class="soft">
<a href="{$currentIndex|escape:'html':'UTF-8'}&sort={$index|escape:'html':'UTF-8'}&sort_type=desc{$filter_params nofilter}" {if isset($sort)&& $sort==$index && isset($sort_type) && $sort_type=='desc'} class="active"{/if}><i class="icon-caret-down"></i></a>
<a href="{$currentIndex|escape:'html':'UTF-8'}&sort={$index|escape:'html':'UTF-8'}&sort_type=asc{$filter_params nofilter}" {if isset($sort)&& $sort==$index && isset($sort_type) && $sort_type=='asc'} class="active"{/if}><i class="icon-caret-up"></i></a>
</span>
{/if}
</span>
</th>
{assign var ='i' value=$i+1}
{/foreach}
{if $show_action && $actions}
<th class="table_action" style="text-align: right;">{l s='Action' mod='ets_promotion'}</th>
{/if}
</tr>
{if $show_toolbar}
<tr class="nodrag nodrop filter row_hover">
{foreach from=$fields_list item='field' key='index'}
<th class="{$index|escape:'html':'UTF-8'}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}">
{if isset($field.filter) && $field.filter}
{if $field.type=='text'}
<input class="filter" name="{$index|escape:'html':'UTF-8'}" type="text" {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} {if isset($field.active)}value="{$field.active|escape:'html':'UTF-8'}"{/if}/>
{/if}
{if $field.type=='select' || $field.type=='active'}
<select {if isset($field.width)}style="width: {$field.width|intval}px;"{/if} name="{$index|escape:'html':'UTF-8'}">
<option value=""> -- </option>
{if isset($field.filter_list.list) && $field.filter_list.list}
{assign var='id_option' value=$field.filter_list.id_option}
{assign var='value' value=$field.filter_list.value}
{foreach from=$field.filter_list.list item='option'}
<option {if ($field.active!=='' && $field.active==$option.$id_option) || ($field.active=='' && $index=='has_post' && $option.$id_option==1 )} selected="selected"{/if} value="{$option.$id_option|escape:'html':'UTF-8'}">{$option.$value|escape:'html':'UTF-8'}</option>
{/foreach}
{/if}
</select>
{/if}
{if $field.type=='int'}
<label for="{$index|escape:'html':'UTF-8'}_min"><input type="text" placeholder="{l s='Min' mod='ets_promotion'}" name="{$index|escape:'html':'UTF-8'}_min" value="{$field.active.min|escape:'html':'UTF-8'}" /></label>
<label for="{$index|escape:'html':'UTF-8'}_max"><input type="text" placeholder="{l s='Max' mod='ets_promotion'}" name="{$index|escape:'html':'UTF-8'}_max" value="{$field.active.max|escape:'html':'UTF-8'}" /></label>
{/if}
{if $field.type=='date'}
<fieldset class="form-group">
<div class="input-group ets_pr_datepicker">
<input id="{$index|escape:'html':'UTF-8'}_min" autocomplete="off" class="form-control" name="{$index|escape:'html':'UTF-8'}_min" placeholder="{l s='From' mod='ets_promotion'}" value="{$field.active.min|escape:'html':'UTF-8'}" type="text" autocomplete="off" />
<div class="input-group-append">
<div class="input-group-text">
<i class="icon icon-date"></i>
</div>
</div>
</div>
</fieldset>
<fieldset class="form-group">
<div class="input-group ets_pr_datepicker">
<input id="{$index|escape:'html':'UTF-8'}_max" autocomplete="off" class="form-control" name="{$index|escape:'html':'UTF-8'}_max" placeholder="{l s='To' mod='ets_promotion'}" value="{$field.active.max|escape:'html':'UTF-8'}" type="text" autocomplete="off" />
<div class="input-group-append">
<div class="input-group-text">
<i class="icon icon-date"></i>
</div>
</div>
</div>
</fieldset>
{/if}
{elseif ( ($name == 'mp_front_products' || $name == 'mp_products') && $field.type == 'text' && isset($index) && $index == 'input_box') }
<div class="md-checkbox">
<label>
<input id="bulk_action_select_all" onclick="$('table').find('td input:checkbox').prop('checked', $(this).prop('checked')); ets_pr_updateBulkMenu();" value="" type="checkbox">
<i class="md-checkbox-control"></i>
</label>
</div>
{else}
{l s=' -- ' mod='ets_promotion'}
{/if}
</th>
{/foreach}
{if $show_action}
<th class="actions">
<span class="pull-right flex">
<input type="hidden" name="post_filter" value="yes" />
{if $show_reset}<a class="btn btn-warning" href="{$currentIndex|escape:'html':'UTF-8'}"><i class="icon-eraser"></i> {l s='Reset' mod='ets_promotion'}</a> &nbsp;{/if}
<button class="btn btn-default" name="ets_pr_submit_{$name|escape:'html':'UTF-8'}" id="ets_pr_submit_{$name|escape:'html':'UTF-8'}" type="submit">
<i class="icon-search"></i> {l s='Filter' mod='ets_promotion'}
</button>
</span>
</th>
{/if}
</tr>
{/if}
</thead>
<tbody id="list-{$name|escape:'html':'UTF-8'}">
{if $field_values}
{foreach from=$field_values item='row'}
<tr {if isset($row.read) && !$row.read}class="no-read"{/if} data-id="{$row.$identifier|intval}">
{assign var='i' value=1}
{foreach from=$fields_list item='field' key='key'}
<td class="{$key|escape:'html':'UTF-8'} {if isset($sort)&& $sort==$key && isset($sort_type) && $sort_type=='asc' && isset($field.update_position) && $field.update_position}pointer dragHandle center{/if}{if isset($field.class)} {$field.class|escape:'html':'UTF-8'}{/if}" {if $show_action && !$actions && count($fields_list)==$i}colspan="2"{/if} >
{if isset($field.rating_field) && $field.rating_field}
{if isset($row.$key) && $row.$key > 0}
{for $i=1 to (int)$row.$key}
<div class="star star_on"></div>
{/for}
{if (int)$row.$key < 5}
{for $i=(int)$row.$key+1 to 5}
<div class="star"></div>
{/for}
{/if}
{else}
{l s=' -- ' mod='ets_promotion'}
{/if}
{elseif $field.type != 'active'}
{if $field.type=='date'}
{if !$row.$key}
--
{else}
{if $key!='date_from' && $key!='date_to'}
{dateFormat date=$row.$key full=1}
{else}
{dateFormat date=$row.$key full=0}
{/if}
{/if}
{elseif $field.type=='checkbox'}
<input type="checkbox" name="{$name|escape:'html':'UTF-8'}_boxs[]" value="{$row.$identifier|escape:'html':'UTF-8'}" class="{$name|escape:'html':'UTF-8'}_boxs" />
{elseif $field.type=='input_number'}
{assign var='field_input' value=$field.field}
<div class="qty edit_quantity" data-v-599c0dc5="">
<div class="ps-number edit-qty hover-buttons" data-{$identifier|escape:'html':'UTF-8'}="{$row.$identifier|escape:'html':'UTF-8'}">
<input class="form-control {$name|escape:'html':'UTF-8'}_{$field_input|escape:'html':'UTF-8'}" type="number" name="{$name|escape:'html':'UTF-8'}_{$field_input|escape:'html':'UTF-8'}[{$row.$identifier|escape:'html':'UTF-8'}]" value="" placeholder="0" />
<div class="ps-number-spinner d-flex">
<span class="ps-number-up"></span>
<span class="ps-number-down"></span>
</div>
</div>
<button class="check-button" disabled="disabled"><i class="fa fa-check icon-check"></i></button>
</div>
{else}
{if isset($field.update_position) && $field.update_position}
<div class="dragGroup">
<span class="positions">
{/if}
{if isset($row.$key) && $row.$key!=='' && !is_array($row.$key)}{if isset($field.strip_tag) && !$field.strip_tag}{$row.$key nofilter}{else}{$row.$key|strip_tags:'UTF-8'|truncate:120:'...'|escape:'html':'UTF-8'}{/if}{else}--{/if}
{if isset($row.$key) && is_array($row.$key) && isset($row.$key.image_field) && $row.$key.image_field}
<a class="ets_pr_fancy" href="{$row.$key.img_url|escape:'html':'UTF-8'}"><img style="{if isset($row.$key.height) && $row.$key.height}max-height: {$row.$key.height|intval}px;{/if}{if isset($row.$key.width) && $row.$key.width}max-width: {$row.$key.width|intval}px;{/if}" src="{$row.$key.img_url|escape:'html':'UTF-8'}" /></a>
{/if}
{if isset($field.update_position) && $field.update_position}
</div>
</span>
{/if}
{/if}
{else}
{if isset($row.$key) && $row.$key}
{if (!isset($row.action_edit) || $row.action_edit)}
<a name="{$name|escape:'html':'UTF-8'}" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&change_enabled=0&field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-enabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}" title="{if $key=='reported'}{l s='Click to unreport' mod='ets_promotion'}{else}{l s='Click to disable' mod='ets_promotion'}{/if}">
<i class="icon icon-check fa fa-check"></i>
</a>
{else}
<span class="list-action-enable action-enabled" title="{l s='Enabled' mod='ets_promotion'}">
<i class="icon icon-check fa fa-check"></i>
</span>
{/if}
{else}
{if (!isset($row.action_edit) || $row.action_edit)}
<a name="{$name|escape:'html':'UTF-8'}" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&change_enabled=1&field={$key|escape:'html':'UTF-8'}" class="list-action field-{$key|escape:'html':'UTF-8'} list-action-enable action-disabled list-item-{$row.$identifier|escape:'html':'UTF-8'}" data-id="{$row.$identifier|escape:'html':'UTF-8'}" title="{if $key=='reported'}{l s='Click to mark as reported' mod='ets_promotion'}{else}{l s='Click to enable' mod='ets_promotion'}{/if}">
<i class="icon icon-remove fa fa-remove"></i>
</a>
{else}
<span class="list-action-enable action-disabled" title="{l s='Disabled' mod='ets_promotion'}">
<i class="icon icon-remove fa fa-remove"></i>
</span>
{/if}
{/if}
{/if}
</td>
{assign var='i' value=$i+1}
{/foreach}
{if $show_action}
{if $actions}
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
{if $actions[0]=='view'}
{if isset($row.child_view_url) && $row.child_view_url}
<a class="btn btn-default link_view" href="{$row.child_view_url|escape:'html':'UTF-8'}" {if isset($view_new_tab) && $view_new_tab} target="_blank" {/if}><i class="icon-search-plus fa fa-search-plus"></i> {l s='View' mod='ets_promotion'}</a>
{elseif !isset($row.action_edit) || $row.action_edit}
<a class="btn btn-default link_edit" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}" ><i class="icon icon-pencil fa fa-pencil"></i> {l s='Edit' mod='ets_promotion'}</a>
{/if}
{/if}
{if $actions[0]=='delete'}
<a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_promotion' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes"><i class="icon icon-trash fa fa-trash"></i> {l s='Delete' mod='ets_promotion'}</a>
{/if}
{if $actions|count >=2 && (!isset($row.action_edit) || $row.action_edit || in_array('action',$actions) || (isset($row.action_delete) &&$row.action_delete) )}
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
<i class="icon-caret-down"></i>&nbsp;
</button>
<ul class="dropdown-menu">
{foreach from=$actions item='action' key='key'}
{if $key!=0}
{if $action=='delete' && (!isset($row.view_order_url) || (isset($row.view_order_url) && !$row.view_order_url) )}
<li><a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this item?' mod='ets_promotion' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&del=yes{if isset($row.type)}&type={$row.type|escape:'html':'UTF-8'}{/if}"><i class="fa fa-trash icon icon-trash"></i> {l s='Delete' mod='ets_promotion'}</a></li>
{/if}
{if $action=='delete_all'}
<li><a class="btn btn-default" onclick="return confirm('{l s='Do you want to delete this shop and all of its data?' mod='ets_promotion' js=1}');" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}&delall=yes{if isset($row.type)}&type={$row.type|escape:'html':'UTF-8'}{/if}"><i class="fa fa-trash icon icon-trash"></i> {l s='Delete all' mod='ets_promotion'}</a></li>
{/if}
{if $action=='view'}
{if isset($row.child_view_url) && $row.child_view_url}
<li><a class="btn btn-default" href="{$row.child_view_url|escape:'html':'UTF-8'}"><i class="fa fa-search-plus icon icon-search-plus"></i> {l s='View' mod='ets_promotion'}</a></li>
{else}
<li><a class="btn btn-default" href="{$currentIndex|escape:'html':'UTF-8'}&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}"><i class="fa fa-pencil icon icon-pencil"></i> {l s='Edit' mod='ets_promotion'}</a></li>
{/if}
{/if}
{if $action =='edit'}
<li><a class="btn btn-default" href="{$currentIndex|escape:'html':'UTF-8'}&edit{$name|escape:'html':'UTF-8'}=1&{$identifier|escape:'html':'UTF-8'}={$row.$identifier|escape:'html':'UTF-8'}"><i class="fa fa-pencil icon icon-pencil"></i> {l s='Edit' mod='ets_promotion'}</a></li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
</div>
</div>
</td>
{/if}
{/if}
</tr>
{/foreach}
{/if}
{if !$field_values}
<tr class="no-record not_items_found"> <td colspan="100%"><p>{l s='No items found' mod='ets_promotion'}</p></td></tr>
{/if}
</tbody>
</table>
{if $paggination}
<div class="ets_pr_paggination" style="margin-top: 10px;">
{$paggination nofilter}
</div>
{/if}
</form>
</div>
{/if}
</div>
<script type="text/javascript">
$(document).on('change','.paginator_select_limit',function(e){
$(this).parents('form').submit();
});
</script>

View File

@@ -0,0 +1,31 @@
{*
* 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 $products}
<div class="list-order-products">
{foreach from = $products item='product'}
<a target="_blank" href="{$link->getProductLink($product.product_id,null,null,null,null,null,$product.product_attribute_id)|escape:'html':'UTF-8'}">
{if $product.image}
<img src="{$product.image|escape:'html':'UTF-8'}" alt="{$product.product_name|escape:'html':'UTF-8'}" title="{$product.product_name|escape:'html':'UTF-8'} ({$product.product_quantity|intval} {if $product.product_quantity >1}{l s='items' mod='ets_promotion'}{else}{l s='item' mod='ets_promotion'}{/if})" />
{else}
{$product.product_name|escape:'html':'UTF-8'}
{/if}
</a>
{/foreach}
</div>
{/if}

View File

@@ -0,0 +1,37 @@
{*
* 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 $products}
{foreach from=$products item='product'}
<li class="pr_product_item " data-id="{$product.id_product|intval}-{$product.id_product_attribute|intval}">
<a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" target="_blank">
<img class="pr_product_image" src="{$product.image|escape:'html':'UTF-8'}" alt="{$product.name|escape:'html':'UTF-8'}{if isset($product.attributes) && $product.attributes} - {$product.attributes|escape:'html':'UTF-8'}{/if}" />
<div class="pr_product_info">
<span class="product_name">{$product.name|escape:'html':'UTF-8'}{if isset($product.attributes) && $product.attributes} - {$product.attributes|escape:'html':'UTF-8'}{/if}</span>
</div>
</a>
<div class="pr_block_item_close" title="{l s='Delete' mod='ets_promotion'}">
<i class="ets_svg_fill_lightgray">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
<path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z">
</svg>
</i>
</div>
</li>
{/foreach}
{/if}

View File

@@ -0,0 +1,104 @@
{*
* 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
*}
<div class="panel">
<div class="panel-heading">
{l s='Promote discount rule' mod='ets_promotion'}
<span class="panel-heading-action">
<a class="btn btn-default btn-new-promote" href="#">
<i class="ets_icon">
<svg width="14" height="14" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg>
</i> {l s='Add new way to promote discount rule' mod='ets_promotion'}
</a>
</span>
</div>
<div class="form-wrapper">
<table class="table configuration list-rule">
<thead>
<tr class="nodrag nodrop">
<th>{l s='Way to promote' mod='ets_promotion'}</th>
<th>{l s='Position to display' mod='ets_promotion'}</th>
<th>{l s='Detail' mod='ets_promotion'}</th>
<th class="text-right">{l s='Action' mod='ets_promotion'}</th>
</tr>
</thead>
<tbody>
{if $promotes}
{foreach from=$promotes item='promote'}
<tr class="row-promote-{$promote.id_ets_pr_promote_rule|intval}">
<td>{$promote.way_to_promote|escape:'html':'UTF-8'}</td>
<td class="position_display">{$promote.position_to_display nofilter}</td>
<td>{$promote.detail 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&editpromoterule=1&id_ets_pr_promote_rule={$promote.id_ets_pr_promote_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_promote_rule={$promote.id_ets_pr_promote_rule|intval}&delPromote=yes">
<i class="fa fa-trash icon icon-trash"></i>
{l s='Delete' mod='ets_promotion'}
</a>
</li>
</ul>
</div>
</div>
</td>
</tr>
{/foreach}
<tr class="no-data" style="display:none">
<td colspan="100%">{l s='No data found' mod='ets_promotion'}</td>
</tr>
{else}
<tr class="no-data">
<td colspan="100%">{l s='No data found' mod='ets_promotion'}</td>
</tr>
{/if}
</tbody>
</table>
</div>
<div class="panel-footer">
<a class="btn btn-default pull-left" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=action">
<i class="process-icon-back"></i>
{l s='Back' mod='ets_promotion'}
</a>
<a class="btn btn-default pull-right" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion">
<i class="process-icon-save"></i>
{l s='Finish' mod='ets_promotion'}
</a>
</div>
</div>
<div class="ets_condition_popup">
<div class="popup_content table">
<div class="popup_content_tablecell">
<div class="popup_content_wrap" style="position: relative">
<span class="close_popup" title="{l s='Close' mod='ets_promotion'}">+</span>
<div id="block-form-popup-condition" class="form_promote form_codition">
</div>
</div>
</div>
</div>
</div>
<div id="new_from_promote_rule" style="display:none;" data-form="{$promote_form|escape:'html':'UTF-8'}">
</div>

View File

@@ -0,0 +1,27 @@
{*
* 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 $banner}
{if $banner_link}
<a href="{$banner_link|escape:'html':'UTF-8'}" target="_blank">
{/if}
<img src="{$link->getMediaLink("`$smarty.const._PS_ETS_PR_IMG_``$banner|escape:'htmlall':'UTF-8'`")}" style="width:60px" />
{if $banner_link}
</a>
{/if}
{/if}

View File

@@ -0,0 +1,23 @@
{*
* 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 $title_popup}
<p>{l s='Popup title: ' mod='ets_promotion'} {$title_popup|escape:'html':'UTF-8'}</p>
{/if}
<p>{l s='Popup content: ' mod='ets_promotion'}</p>
{$content_popup nofilter}

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,31 @@
{*
* 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 $display_positions}
{if in_array('all',$display_positions)}
<p>{l s='All' mod='ets_promotion'}</p>
{else}
<ul>
{foreach from=$display_positions item='display_position'}
{if isset($positions[$display_position])}
<li>{$positions[$display_position]|replace:'[highlight]':'<strong>'|replace:'[end_highlight]':'</strong>' nofilter}</li>
{/if}
{/foreach}
</ul>
{/if}
{/if}

View File

@@ -0,0 +1,44 @@
{*
* 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-promote-{$id_ets_pr_promote_rule|intval}">
<td>{$way_to_promote|escape:'html':'UTF-8'}</td>
<td>{$position_to_display nofilter}</td>
<td>{$detail_promote 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&editpromoterule=1&id_ets_pr_promote_rule={$id_ets_pr_promote_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_promote_rule={$id_ets_pr_promote_rule|intval}&delPromote=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,94 @@
{*
* 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
*}
<script type="text/javascript">
var Days_text ='{l s='Day(s)' mod='ets_promotion' js=1}';
var Hours_text ='{l s='Hour(s)' mod='ets_promotion' js=1}';
var Mins_text ='{l s='Min(s)' mod='ets_promotion' js=1}';
var Sec_text ='{l s='Sec(s)' mod='ets_promotion' js=1}';
</script>
{if $promoteDiscountRule.way_to_promote=='display_notification'}
<div class="ets_pr_display_notification">
<div class="alert alert-info" style="{if $promoteDiscountRule.notification_text_color} color:{$promoteDiscountRule.notification_text_color|escape:'html':'UTF-8'};{/if} {if $promoteDiscountRule.notification_border_color} border-color:{$promoteDiscountRule.notification_border_color|escape:'html':'UTF-8'};{/if}{if $promoteDiscountRule.notification_background_color} background-color:{$promoteDiscountRule.notification_background_color|escape:'html':'UTF-8'};{/if}">{$promoteDiscountRule.notification nofilter}</div>
</div>
{elseif $promoteDiscountRule.way_to_promote =='display_banner'}
<div class="ets_pr_display_banner">
{if $promoteDiscountRule.banner_link}
<a href="{$promoteDiscountRule.banner_link|escape:'html':'UTF-8'}">
{/if}
<img src="{$link->getMediaLink("`$smarty.const._PS_ETS_PR_IMG_``$promoteDiscountRule.banner|escape:'htmlall':'UTF-8'`")}" />
{if $promoteDiscountRule.banner_link}
</a>
{/if}
</div>
{elseif $promoteDiscountRule.way_to_promote =='display_highlight_bar'}
{if !in_array($promoteDiscountRule.id_ets_pr_promote_rule,$pr_closed_highlightbars)}
<div class="ets_pr_display_highlight_bar highlight_bar_{$promoteDiscountRule.id_ets_pr_promote_rule|intval} show" style="{if $promoteDiscountRule.text_color} color:{$promoteDiscountRule.text_color|escape:'html':'UTF-8'};{/if}{if $promoteDiscountRule.background_color} background-color:{$promoteDiscountRule.background_color|escape:'html':'UTF-8'};{/if}">
<div class="ets_pr_table">
<div class="ets_pr_tablecell">
<div class="container">
<div class="ets_pr_container">
<div data-href="{$link->getModuleLink('ets_promotion','ajax')|escape:'html':'UTF-8'}" class="ets_pr_close close_highlight_bar" title="{l s='Close' mod='ets_promotion'}" data-id="{$promoteDiscountRule.id_ets_pr_promote_rule|intval}">
{if $promoteDiscountRule.button_close_color}
{literal}
<style>
.highlight_bar_{/literal}{$promoteDiscountRule.id_ets_pr_promote_rule|intval}{literal} .ets_pr_close:before,.highlight_bar_{/literal}{$promoteDiscountRule.id_ets_pr_promote_rule|intval}{literal} .ets_pr_close:after{background-color: {/literal}{$promoteDiscountRule.button_close_color|escape:'html':'UTF-8'}{literal};}
</style>
{/literal}
{/if}
</div>
<div class="ets_pr_highlight_bar_wrapper">
{$promoteDiscountRule.content_bar nofilter}
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
{elseif $promoteDiscountRule.way_to_promote =='display_popup'}
{if !in_array($promoteDiscountRule.id_ets_pr_promote_rule,$pr_closed_popups)}
<div class="ets_pr_display_popup ets_pr_popup_{$promoteDiscountRule.id_ets_pr_promote_rule|intval}" data-delay="{$promoteDiscountRule.delay_popup|intval}">
<div class="ets_pr_table">
<div class="ets_pr_tablecell">
<div class="ets_pr_container" style="{if $promoteDiscountRule.border_radius} border-radius:{$promoteDiscountRule.border_radius|escape:'html':'UTF-8'}px;{/if}">
<div data-href="{$link->getModuleLink('ets_promotion','ajax')|escape:'html':'UTF-8'}" class="ets_pr_close ets_pr_close_popup" title="{l s='Close' mod='ets_promotion'}" data-id="{$promoteDiscountRule.id_ets_pr_promote_rule|intval}">
{if $promoteDiscountRule.close_button_popup_color}
{literal}
<style>
.ets_pr_popup_{/literal}{$promoteDiscountRule.id_ets_pr_promote_rule|intval}{literal} .ets_pr_close:before,.ets_pr_popup_{/literal}{$promoteDiscountRule.id_ets_pr_promote_rule|intval}{literal} .ets_pr_close:after{background-color: {/literal}{$promoteDiscountRule.close_button_popup_color|escape:'html':'UTF-8'}{literal};}
</style>
{/literal}
{/if}
</div>
<div class="ets_pr_popup_wrapper">
{if $promoteDiscountRule.title_popup}
<div class="ets_pr_popup_title" style="{if $promoteDiscountRule.title_popup_color} color:{$promoteDiscountRule.title_popup_color|escape:'html':'UTF-8'};{/if}{if $promoteDiscountRule.background_title_popup_color} background-color:{$promoteDiscountRule.background_title_popup_color|escape:'html':'UTF-8'};{/if} ">
{$promoteDiscountRule.title_popup|escape:'html':'UTF-8'}
</div>
{/if}
<div class="ets_pr_popup_content" style="{if $promoteDiscountRule.background_content_popup_color} background-color:{$promoteDiscountRule.background_content_popup_color|escape:'html':'UTF-8'};{/if}">
{$promoteDiscountRule.content_popup nofilter}
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
{/if}

View File

@@ -0,0 +1,68 @@
{*
* 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 isset($hookDisplayProductListHeaderAfter) && $hookDisplayProductListHeaderAfter}
<div id="etsPRhookDisplayProductListHeaderAfter" style="display: none">
{$hookDisplayProductListHeaderAfter nofilter}
</div>
{/if}
{if isset($hookDisplayProductListHeaderBefore) && $hookDisplayProductListHeaderBefore}
<div id="etsPRhookDisplayProductListHeaderBefore" style="display: none">
{$hookDisplayProductListHeaderBefore nofilter}
</div>
{/if}
{if isset($hookDisplayLeftColumnBefore) && $hookDisplayLeftColumnBefore}
<div id="etsPRhookDisplayLeftColumnBefore" style="display: none">
{$hookDisplayLeftColumnBefore nofilter}
</div>
{/if}
{if isset($hookDisplayRightColumnBefore) && $hookDisplayRightColumnBefore}
<div id="etsPRhookDisplayRightColumnBefore" style="display: none">
{$hookDisplayRightColumnBefore nofilter}
</div>
{/if}
{if isset($hookDisplayProductVariantsBefore) && $hookDisplayProductVariantsBefore}
<div id="etsPRhookDisplayProductVariantsBefore" style="display: none">
{$hookDisplayProductVariantsBefore nofilter}
</div>
{/if}
{if isset($hookDisplayProductVariantsAfter) && $hookDisplayProductVariantsAfter}
<div id="etsPRhookDisplayProductVariantsAfter" style="display: none">
{$hookDisplayProductVariantsAfter nofilter}
</div>
{/if}
{if isset($hookDisplayProductCommentsListHeaderBefore) && $hookDisplayProductCommentsListHeaderBefore}
<div id="etsPRhookDisplayProductCommentsListHeaderBefore" style="display: none">
{$hookDisplayProductCommentsListHeaderBefore nofilter}
</div>
{/if}
{if isset($hookDisplayCartGridBodyBefore1) && $hookDisplayCartGridBodyBefore1}
<div id="etsPRhookDisplayCartGridBodyBefore1" style="display: none">
{$hookDisplayCartGridBodyBefore1 nofilter}
</div>
{/if}
{if isset($hookDisplayCartGridBodyBefore2) && $hookDisplayCartGridBodyBefore2}
<div id="etsPRhookDisplayCartGridBodyBefore2" style="display: none">
{$hookDisplayCartGridBodyBefore2 nofilter}
</div>
{/if}
{if isset($hookDisplayCartGridBodyAfter) && $hookDisplayCartGridBodyAfter}
<div id="etsPRhookDisplayCartGridBodyAfter" style="display: none">
{$hookDisplayCartGridBodyAfter nofilter}
</div>
{/if}

View File

@@ -0,0 +1,118 @@
{*
* 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
*}
<div class="row">
<div class="col-lg-12">
<div class="row ets_pr_rule_report-row">
<h3 class="session-header">{l s='View discount report' mod='ets_promotion'}</h3>
<div class="session-body">
<div class="row">
<div class="card">
<div class="card-body">
<ul>
<li>
<span class="title">{l s='Rule name' mod='ets_promotion'}</span>
<span class="cotent"><a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$rule->id|intval}"> {$rule->name|escape:'html':'UTF-8'}</a> </span>
</li>
<li>
<span class="title">{l s='Discount code' mod='ets_promotion'}</span>
<span class="cotent">{if $rule->code}{$rule->code|escape:'html':'UTF-8'}{else}--{/if} </span>
</li>
<li>
<span class="title">{l s='Created date' mod='ets_promotion'}</span>
<span class="cotent">{$rule->date_add|escape:'html':'UTF-8'} </span>
</li>
{assign var='total_applied' value=$rule->getTotaldiscountApplied()}
{assign var='total_order_amount' value=$rule->getTotalOrderAmount()}
{if $total_applied >0}
<li>
<span class="title">{l s='Total discount applied' mod='ets_promotion'}</span>
<span class="cotent">{$rule->getTotaldiscountApplied()|escape:'html':'UTF-8'} </span>
</li>
{/if}
{if $rule->new_customer > 0}
<li>
<span class="title">{l s='Total new customers' mod='ets_promotion'}</span>
<span class="cotent">{$rule->new_customer|intval} </span>
</li>
{/if}
{if $total_order_amount>0}
<li>
<span class="title">{l s='Total order amount' mod='ets_promotion'}</span>
<span class="cotent">{displayPrice price=$rule->getTotalOrderAmount()} </span>
</li>
{/if}
</ul>
</div>
</div>
{if $applied_orders}
<div class="card ets_pr_list_applied_orders">
<h3 class="card-header">{l s='Order applied discount' mod='ets_promotion'}</h3>
<div class="card-body">
<table class="table">
<thead>
<tr>
<th>{l s='Order ID' mod='ets_promotion'}</th>
<th>{l s='Order reference' mod='ets_promotion'}</th>
<th>{l s='Customer' mod='ets_promotion'}</th>
<th>{l s='Products' mod='ets_promotion'}</th>
<th class="text-center">{l s='Original amount' mod='ets_promotion'}</th>
<th class="text-center">{l s='Paid amount' mod='ets_promotion'}</th>
<th class="text-center">{l s='Discount amount' mod='ets_promotion'}</th>
<th>{l s='Date added' mod='ets_promotion'}</th>
<th class="text-right">{l s='Action' mod='ets_promotion'}</th>
</tr>
</thead>
<tbody>
{foreach from= $applied_orders item='order'}
<tr>
<td>{$order.id_order|intval}</td>
<td><a href="{$order.link_view|escape:'html':'UTF-8'}">{$order.reference|escape:'html':'UTF-8'}</a></td>
<td><a href="{$order.view_customer|escape:'html':'UTF-8'}">{$order.firstname|escape:'html':'UTF-8'} {$order.lastname|escape:'html':'UTF-8'}</a><br /> {$order.email|escape:'html':'UTF-8'}</td>
<td>{$order.products nofilter}</td>
<td class="text-center">{displayPrice price= $order.total_onginal_paid}</td>
<td class="text-center">{displayPrice price= $order.total_paid}</td>
<td class="text-center">{displayPrice price= $order.value}</td>
<td>{dateFormat date=$order.date_add full=1}</td>
<td class="text-right">
<div class="btn-group-action">
<div class="btn-group pull-right">
<a class="btn btn-default link_view" href="{$order.link_view|escape:'html':'UTF-8'}">
<i class="icon-search-plus fa fa-search-plus"></i> {l s='View order' mod='ets_promotion'}
</a>
</div>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
{/if}
</div>
<div class="row">
<a class="btn btn-default back_to_list" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&rule_tab=discount_report">
<i class="icon-arrow-left"></i>
{l s='Back to list' mod='ets_promotion'}
</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,59 @@
{*
* 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
*}
<ul class="ets_rule_tabs_left">
<li class="rule_tab rule_tab_information{if $current_tab=='information'} active{/if}{if $current_tab=='condition' || $current_tab=='action' || $current_tab=='discount'} active done{/if}" data-tab-id="information" data-step="1">
{if $id_ets_pr_rule!=0}
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=information">
{/if}
<span>{l s='Information' mod='ets_promotion'}</span>
{if $id_ets_pr_rule!=0}
</a>
{/if}
</li>
<li class="rule_tab rule_tab_condition{if $current_tab=='condition'} active{/if}{if $current_tab=='action' || $current_tab=='discount'} active done{/if}" data-tab-id="condition" data-step="2">
{if $id_ets_pr_rule!=0}
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=condition">
{/if}
<span>{l s='Conditions' mod='ets_promotion'}</span>
{if $id_ets_pr_rule!=0}
</a>
{/if}
</li>
<li class="rule_tab rule_tab_action{if $current_tab=='action' } active{/if}{if $current_tab=='discount'} active done{/if}" data-tab-id="action" data-step="3">
{if $id_ets_pr_rule!=0}
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=action">
{/if}
<span>{l s='Action' mod='ets_promotion'}</span>
{if $id_ets_pr_rule!=0}
</a>
{/if}
</li>
<li class="rule_tab rule_tab_discount{if $current_tab=='discount'} active{/if}" data-tab-id="discount" data-step="4">
{if $id_ets_pr_rule!=0}
<a href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion&editrule=1&id_ets_pr_rule={$id_ets_pr_rule|intval}&current_tab=discount">
{/if}
<span>{l s='Promote' mod='ets_promotion'}</span>
{if $id_ets_pr_rule!=0}
</a>
{/if}
</li>
<li class="black_to_list">
<a class="black_to_list" href="{$link->getAdminLink('AdminModules')|escape:'html':'UTF-8'}&configure=ets_promotion"><i class="icon-long-arrow-left"></i> {l s='Back to list' mod='ets_promotion'}</a>
</li>
</ul>

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;