-- HikaShop version -- : 4.0.1
-- HikaSerial version -- : 2.2.0
-- Joomla version -- : 3.9.1
Hello,
my subscription expiration notice email seems to go out empty
emails list:
nimb.ws/VgebHn
single email:
nimb.ws/21e8Hb
email configs:
nimb.ws/yvrOs2
hikaserial configs:
nimb.ws/wuK2AM
email code
<?php
/**
* @package HikaSerial for Joomla!
* @version 2.2.0
* @author Obsidev S.A.R.L.
* @copyright (C) 2011-2018 OBSIDEV. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><table class="w600" border="0" cellspacing="0" cellpadding="0" width="600" style="margin:0px;font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;">
<tr>
<td class="w20" width="20"></td>
<td class="w560 pict" style="text-align:left; color:#575757" width="560">
<div id="title" style="font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;">
<img src="{VAR:LIVE_SITE}/media/com_hikashop/images/icons/icon-48-subscription.png" border="0" alt="" style="float:left;margin-right:4px;"/>
<h1 style="color:#1c8faf !important;font-size:16px;font-weight:bold; border-bottom:1px solid #ddd; padding-bottom:10px">
{TXT:MAIL_TITLE}
</h1>
</div>
</td>
<td class="w20" width="20"></td>
</tr>
<tr>
<td class="w20" width="20"></td>
<td style="border:1px solid #adadad;background-color:#ffffff;">
<div class="w550" width="550" id="content" style="font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;margin-left:5px;margin-right:5px;">
<p>
{TXT:HI_USER}
</p>
<p>
{TXT:SUBSCRIPTION_EXPIRATION_CONTENT}
</p>
</div>
</td>
<td class="w20" width="20"></td>
</tr>
</table>
custom email template code (using it with all hikashop emails, everything works fine)
justpaste.it/1ur7b
language strings
SUBSCRIPTION_EXPIRATION_NOTICE_SUBJECT="La tua iscrizione sta per scadere - rinnovala con lo sconto del 30%"
SUBSCRIPTION_EXPIRATION_NOTICE_X_DAYS_SUBJECT="La tua iscrizione scadrà tra %d giorni - rinnovala con lo sconto del 30%"
SUBSCRIPTION_EXPIRATION_NOTICE_1_DAY_SUBJECT="La tua iscrizione scadrà tra 1 giorno - rinnovala con lo sconto del 30%"
SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT="<p style='font-size: 16px;'>Ciao,<br />la tua iscrizione a <strong>%s</strong> scadrà presto,<br /><a href='https://accademiainfinita.it/shop/subscription/listing'><strong>clicca qui</strong> per rinnovarla con uno sconto del 30%</a>.</p><p>Questa iscrizione ti da accesso a tutte le nostre meditazioni guidate,<br />alla nostra collezione di musica a 432 Hz, e un sconto del 20% su tutti<br />i nostri corsi online.</p><p><em>Per rinnovare l'iscrizione, assicurati aver effettuato l'accesso al tuo account <br />altrimenti riceverai un messaggio di errore.<br />Per poter usufruire dello sconto del 30%, devi rinnovarla prima che scada<br />accedendo al cruscotto del tuo shop in questa pagina:<br /></em><em><a href='https://accademiainfinita.it/shop/dashboard/subscription/listing'>https://accademiainfinita.it/shop/dashboard/subscription/listing</a>.<br /></em></p><p>grazie,<br />Accademia Infinita</p>"
the only thing that comes to mind is that the very long language string containing html code is creating a conflict, it look fine in sublime text editor (in the sintax that the highlight doesn0t show any error")
if you also think that this may be the cause of the problem, could you suggest an alternative solution to insert that html code in the email body?
Should I customize the email template where it says {TXT:SUBSCRIPTION_EXPIRATION_CONTENT} ?
I prefer using the language strings than hacking a template, but if this is the best solution please advice.
Thank you!
Thank you