- Posts: 224
- Thank you received: 8
Insert HTML in expiration alert language strings, suggestion needed!
7 years 11 months ago - 7 years 11 months ago #299366
by oloccina
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:
Should I change
all " signs to "_QQ_"
and all = signs to (see below)
?
like this
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
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:
Code:
<p style="font-size: 16px;">Ciao,<br />la tua iscrizione a <strong>%s</strong> scadrà 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)
Code:
=
like this
Code:
SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT="<p style="_QQ_"font-size: 16px;"_QQ_">Ciao,<br />la tua iscrizione a <strong>%s</strong> scadrà presto,<br /><strong><a href="_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="_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: 7 years 11 months ago by oloccina.
Please Log in or Create an account to join the conversation.
7 years 11 months ago - 7 years 11 months ago #299368
by oloccina
Replied by oloccina on topic Insert HTML in expiration alert language strings, suggestion needed!
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
The result would be something like
Code:
SUBSCRIPTION_EXPIRATION_NOTICE_CONTENT="<p style='font-size: 16px;'>Ciao,<br />la tua iscrizione a <strong>%s</strong> scadrà 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: 7 years 11 months ago by oloccina.
Please Log in or Create an account to join the conversation.
7 years 11 months ago #299381
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Insert HTML in expiration alert language strings, suggestion needed!
Hello,
Yes, the usage of single quotes are easier than trying to push double quotes.
Regards,
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.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.168 seconds