{* * 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 *}

{l s='View discount report' mod='ets_promotion'}

  • {l s='Rule name' mod='ets_promotion'} {$rule->name|escape:'html':'UTF-8'}
  • {l s='Discount code' mod='ets_promotion'} {if $rule->code}{$rule->code|escape:'html':'UTF-8'}{else}--{/if}
  • {l s='Created date' mod='ets_promotion'} {$rule->date_add|escape:'html':'UTF-8'}
  • {assign var='total_applied' value=$rule->getTotaldiscountApplied()} {assign var='total_order_amount' value=$rule->getTotalOrderAmount()} {if $total_applied >0}
  • {l s='Total discount applied' mod='ets_promotion'} {$rule->getTotaldiscountApplied()|escape:'html':'UTF-8'}
  • {/if} {if $rule->new_customer > 0}
  • {l s='Total new customers' mod='ets_promotion'} {$rule->new_customer|intval}
  • {/if} {if $total_order_amount>0}
  • {l s='Total order amount' mod='ets_promotion'} {displayPrice price=$rule->getTotalOrderAmount()}
  • {/if}
{if $applied_orders}

{l s='Order applied discount' mod='ets_promotion'}

{foreach from= $applied_orders item='order'} {/foreach}
{l s='Order ID' mod='ets_promotion'} {l s='Order reference' mod='ets_promotion'} {l s='Customer' mod='ets_promotion'} {l s='Products' mod='ets_promotion'} {l s='Original amount' mod='ets_promotion'} {l s='Paid amount' mod='ets_promotion'} {l s='Discount amount' mod='ets_promotion'} {l s='Date added' mod='ets_promotion'} {l s='Action' mod='ets_promotion'}
{$order.id_order|intval} {$order.reference|escape:'html':'UTF-8'} {$order.firstname|escape:'html':'UTF-8'} {$order.lastname|escape:'html':'UTF-8'}
{$order.email|escape:'html':'UTF-8'}
{$order.products nofilter} {displayPrice price= $order.total_onginal_paid} {displayPrice price= $order.total_paid} {displayPrice price= $order.value} {dateFormat date=$order.date_add full=1}
{/if}