Insert HTML in expiration alert language strings, suggestion needed!

  • Posts: 224
  • Thank you received: 8
5 years 5 months ago #299366

Hello,
this does not really concerns Hikaserial Subscription only, but since it came up while customizing the component I am going to post the question here hoping you will give some suggestions.

I want to insert some html in the language strings attached to the subscription expiration emails, but I am not sure how to format it for it to work correctly.

Normal html would be:

<p style="font-size: 16px;">Ciao,<br />la tua iscrizione a <strong>%s</strong> scadr&agrave; presto,<br /><strong><a href="%s">clicca qui</a></strong> per rinnovarla.</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 />In ogni caso, puoi sempre rinnovarla anche acquistandola di nuovo <br />direttamente dallo shop <a href="https://accademiainfinita.it/shop/prodotto/meditazioni-musica-iscrizione-annuale">cliccando qui</a>.</em></p>
<p>grazie,<br />Accademia Infinita</p>

Should I change
all " signs to "_QQ_"
and all = signs to (see below)
&#x003D;
?
like this
SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT="<p style&#x003D;"_QQ_"font-size: 16px;"_QQ_">Ciao,<br />la tua iscrizione a <strong>%s</strong> scadr&agrave; presto,<br /><strong><a href&#x003D;"_QQ_"%s"_QQ_">clicca qui</a></strong> per rinnovarla.</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 />In ogni caso, puoi sempre rinnovarla anche acquistandola di nuovo <br />direttamente dallo shop <a href&#x003D;"_QQ_"https://accademiainfinita.it/shop/prodotto/meditazioni-musica-iscrizione-annuale"_QQ_">cliccando qui</a>.</em></p>
<p>grazie,<br />Accademia Infinita</p>"

even with the second solution in sublime text editor the sintax highlighting is wrong (maybe it considers comments the # signs)
is there a way to test this without having to set a subscription and send a test expiration email?

Thank you

Last edit: 5 years 5 months ago by oloccina.

Please Log in or Create an account to join the conversation.

  • Posts: 224
  • Thank you received: 8
5 years 5 months ago #299368

I asked this also on the Joomla.org forum, a user suggests to just change all " to ', leaving the = signs as they are.
The result would be something like

SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT="<p style='font-size: 16px;'>Ciao,<br />la tua iscrizione a <strong>%s</strong> scadr&agrave; presto,<br /><strong><a href='%s'>clicca qui</a></strong> per rinnovarla.</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 questa iscrizione, assicurati di aver effettuato l accesso al tuo account <br />altrimenti riceverai un messaggio di errore.<br />In ogni caso, puoi sempre rinnovarla anche acquistandola di nuovo <br />direttamente dallo shop <a href='https://accademiainfinita.it/shop/prodotto/meditazioni-musica-iscrizione-annuale'>cliccando qui</a>.</em></p>
<p>grazie,<br />Accademia Infinita</p>"

Last edit: 5 years 5 months ago by oloccina.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 5 months ago #299381

Hello,

Yes, the usage of single quotes are easier than trying to push double quotes.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.059 seconds
Powered by Kunena Forum