{** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *} {extends file="helpers/view/view.tpl"} {block name="override_tpl"} {include file="./modal.tpl" }
{l s="Thread" d='Admin.Orderscustomers.Feature'}: #{$id_customer_thread|intval} {if isset($next_thread) && $next_thread} {$next_thread.name} {/if}
{foreach $actions as $action} {/foreach}
{if isset($customer->firstname)}

{$customer->firstname|escape:'html':'UTF-8'} {$customer->lastname|escape:'html':'UTF-8'} ({$customer->email|escape:'html':'UTF-8'})

{else}

{$thread->email|escape:'html':'UTF-8'}

{/if} {if isset($contact) && trim($contact) != ''} {l s="To:" d='Admin.Orderscustomers.Feature'} {$contact|escape:'html':'UTF-8'} {/if}
{if isset($customer->firstname)}

{if $count_ok} {l s='[1]%count%[/1] order(s) validated for a total amount of [2]%total%[/2]' html=true sprintf=['%count%' => $count_ok, '%total%' => $total_ok, '[1]' => '', '[/1]' => '', '[2]' => '', '[/2]' => ''] d='Admin.Orderscustomers.Feature'} {else} {l s="No orders validated for the moment" d='Admin.Orderscustomers.Feature'} {/if}

{l s="Customer since: %s" sprintf=[{dateFormat date=$customer->date_add full=0}] d='Admin.Orderscustomers.Feature'}

{/if}
{if !$first_message.id_employee} {include file="./message.tpl" message=$first_message initial=true} {/if}
{foreach $messages as $message} {include file="./message.tpl" message=$message initial=false} {/foreach}

{l s="Your answer to" d='Admin.Orderscustomers.Feature'} {if isset($customer->firstname)}{$customer->firstname|escape:'html':'UTF-8'} {$customer->lastname|escape:'html':'UTF-8'} {else} {$thread->email}{/if}

{if isset($current_employee->firstname)}{/if}
{if count($timeline_items)}

{l s="Orders and messages timeline" d='Admin.Orderscustomers.Feature'}

{foreach $timeline_items as $dates} {foreach from=$dates key=date item=timeline_item} {include file="controllers/customer_threads/helpers/view/timeline_item.tpl" timeline_item=$timeline_item} {/foreach} {/foreach}
{/if} {/block}