![How To Use Static Methods In Prestashop Theme Files](https://belvg.com/blog/wp-content/uploads/2013/09/xHow-to-use-static-methods-in-Prestashop-theme-files1.jpg.pagespeed.ic.rYl8rfuBpU.jpg)
Once again I am posting a quick tip, based on rather frequently asked question on Prestashop forums. I feel like it will be helpful to a lot of people.
Today’s topic: static methods usage in Prestashop theme files.
The question goes like this –
Is it possible to use {php} tags in Prestashop template files?
As you know {php} tags are excluded from Smarty and therefore you cannot use Smarty {php} for Prestashop.
In such cases, if you want to use a static method you can call it the same way as in PHP but using {} to separate common HTML from Smarty, e.g.:
1 |
{Configuration::get('PS_SHOP_FAX')} |
![Andrey Dubina](https://belvg.com/blog/wp-content/uploads/2019/03/Andrey-Dubina1.png.pagespeed.ce.ei0ZJOYlPl.png)
Partner With Us
Looking for a partner to grow your business? We are the right company to bring your webstore to success.
Talk to Andrey