Smarty is the programming language used for templates in PrestaShop.  To find more information on SMARTY, you can go here:  http://smarty.net. The following article explains the use Smarty per the ADVANCED PARAMETERS section of PrestaShop 1.5.

Understanding the use of Smarty in PrestaShop 1.5

  1. To get to the Performance section of the Advanced Parameters for Prestashop, first login to the Administrator as an Administrator
  2. Hover over menu bar where it says ADVANCED PARAMETERS - click on PERFORMANCE when it appears in the drop-down menu.
  3. You will see the following screen:

    prestashop15-performance-Smarty


    Smarty is a template engine that makes it possible for programmer to separate their roles from the role of the designer.  In other words, programmers can concentrate on their tasks while designers can concentrate on the presentation of the page.  Smarty works within PHP and is a free an open source solution. 

  4. The first item in the SMARTY section is the TEMPLATE CACHE.  Per the Prestashop documentation, template cache improves front-end performance by caching HTML pages.  You have the following options that require you select a radial button to activate:

    Never compile cache enable only editing theme; changes are seen when page is reloaded
    Compile cache if templates are updated changes to theme file in Prestashop seen when file is changed; noted that this may not always work as expected
    Force Compile normal behavior - when changes to the theme are complete, PrestaShop compiles these changes and caches the pages

    Select the option that meets your needs. Click on the green SAVE button in the top right hand corner to save your entries.
  5. PrestaShop warns that you should always leave this option enabled.  Disabling it turns OFF caching and should only be used to debug themes or modules.

    Set this option by carefully, and only when necessary. Click on the green SAVE button in the top right hand corner to save your entry.
  6. The last option in the SMARTY section are the Debug Console options:

    Do not open console default setting; if active, console cannot be viewed
    Open console with URL parameter(SMARTY_DEBUG) console is only displayed if you add "?SMARTY_DEBUG" to tail end of URL; advised that you disable this option once debugging is complete in order to avoid possible hacks
    Always open console EVERYONE has access to your shop console - only use for maintenance


    Select the option which best meets your needs for viewing the debug console.  Remember to use ONLY for the purpose of debugging your installation.  Set the option back to default when debugging is complete.  Click on SAVE in the top right hand corner to save your selection.

The use of SMARTY for the templates of PrestaShop allows for great flexibility between a programmer and a designer.  It is free open source code, works to compliment PHP, and allows for separation between the tasks of the designer and that of the programmer while unifying their efforts.  The options in PrestaShop allow you to debug modules and themes that may be under development.  Use these options carefully and primarily under the direction of a programmer or designer working with your PrestaShop installation. 



Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}