{* * 2007-2020 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2020 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {assign var=counter value=0} {foreach from=$result item=sourceInfo} {assign var=counter value=$counter+1}
{$sourceInfo.email|escape:'htmlall':'UTF-8'|stripslashes}
{assign var="emailtest" value=$sourceInfo.email} {if $sourceInfo.id_customer!= "Nclient"} yes {else} No {/if} {if $sourceInfo.phone_mobile != ''} {foreach from=$smsdata key=jk item=smsInfo}0 {if $jk == $sourceInfo.phone_mobile} {$smsInfo|escape:'htmlall':'UTF-8'|stripslashes} {/if} {/foreach} {elseif $sourceInfo.phone != ''} {foreach from=$smsdata key=jk item=smsInfo} {if $jk == $sourceInfo.phone} {$smsInfo|escape:'htmlall':'UTF-8'|stripslashes} {/if} {/foreach} {/if} {assign var=emailid value=$sourceInfo.email} {if isset($data[$emailid].email_bl) && $data[$emailid].email_bl ===1} {assign var=pstatus value=1} {elseif isset($data[$emailid].email_bl) && $data[$emailid].email_bl ===0} {assign var=pstatus value=0} {else} {assign var=pstatus value=1} {/if} {if $pstatus==1} {else} {/if} {if $sourceInfo.newsletter==1} {else} {/if} {assign var=emailid value=$sourceInfo.email} {if isset($data[$emailid].sms_bl) && $data[$emailid].sms_bl ===1} {assign var=pstatus value=1} {elseif isset($data[$emailid].sms_bl) && $data[$emailid].sms_bl ===0} {assign var=pstatus value=0} {else} {assign var=pstatus value=1} {/if} {if !empty($sourceInfo.phone_mobile) || !empty($sourceInfo.phone)} {if $pstatus==1 && isset($data[$emailid].sms_exist) && $data[$emailid].sms_exist != ''} {elseif $pstatus==0 && isset($data[$emailid].sms_exist) && $data[$emailid].sms_exist != ''} {else} {l s='Not synchronized' mod='sendinblue'} {/if} {/if} {/foreach}