Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I use language variable in static blocks ? 
 
lamarios
Jr. Member
 
Total Posts:  1
Joined:  2010-01-31
 

Hello,

I’d like to know if it’s possible to use locale variables in static blocks ? If yes, how ?

Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gui
Guru
 
Avatar
Total Posts:  588
Joined:  2008-03-09
 

I think you can’t because it is called through PHP. However you can specify a static block per store view and base your language in the content on that.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gyniolatry
Sr. Member
 
Total Posts:  132
Joined:  2009-11-26
Perth.au
 

I found these in my notes, haven’t tested but i think it is possible as blocks are written while php is still running.

{{htmlescape var=$password}}
{{var user.name}}
{{var customer.email}}
{{var payment_html}}
{{depend order.getIsNotVirtual()}}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top