Custom Html Content Lang Variable

hi,



I have create a store specific variable called footer_social in language section (the html is nothing but few text and linked icon of social media)





I am trying to call this variable in newsletter template %footer_social and done a test mail.



the mail shows just %footer_social and the html is not fetching up.





any suggestion guys ? how to achieve it.





note: i used same variable in email .tpl file for registration mails and it works smooth.

Hi,

Please use in .tpl:

v4.x{__('footer_social')}

v3.x{$lang.footer_social}





I hope that helps,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

Hi,



Valentin thanks for the suggestion.



I have done the same and it works, thats what i mentioned in note section. I just want to call those variable in newsletter block



"[color=#282828][font=arial, verdana, tahoma, sans-serif]note: i used same variable in email .tpl file for registration mails and it works smooth. "[/font][/color]

Any update on this guys ?

[quote name='ravt' timestamp='1396498864' post='180819']

Any update on this guys ?

[/quote]



I am not sure, but try the following way:


  1. Open the “addons/news_and_emails/func.php” file
  2. Find the fn_render_newsletter PHP function
  3. Replace this part of code:



$values['%COMPANY_PHONE'] = Registry::get('settings.Company.company_phone');




with this one:



$values['%COMPANY_PHONE'] = Registry::get('settings.Company.company_phone');
$values['%footer_social'] = __('footer_social');




4. Check the result

again thanks @ecomlabs





thank you for the time …