first commit

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

View File

@@ -0,0 +1,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>