X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Smarty syntax not working - Xcart 5.2 (https://forum.x-cart.com/showthread.php?t=72556)

Ali Kazim 08-09-2015 11:43 PM

Smarty syntax not working - Xcart 5.2
 
I am trying to customize featured product list on frontpage by customizing template file and trying to add some conditions. But in tpl files it is not allowed me to use smarty syntax like: assign, increments, var_dumo etc.

qualiteam 08-10-2015 01:15 AM

Re: Smarty syntax not working - Xcart 5.2
 
Hello!

That's right - X-Cart 5 doesn't use Smarty as the template engine.

Please refer to the documentation for developers at http://kb.x-cart.com/ - it may help you to understand how to customize the behaviour and appearance of X-Cart 5 based websites.

Feel free to ask in these forums should you have questions on a topic missed in the documentation.

Thanks!

razortw 08-10-2015 07:45 AM

Re: Smarty syntax not working - Xcart 5.2
 
Quote:

Originally Posted by Ali Kazim
I am trying to customize featured product list on frontpage by customizing template file and trying to add some conditions. But in tpl files it is not allowed me to use smarty syntax like: assign, increments, var_dumo etc.

X-Cart 5 uses Flexy as a template engine.
There is an article in our knowledge base describing the basics of this "language"
Please have a look:
* http://kb.x-cart.com/display/XDD/Flexy+Guide
Please note that you will need to re-deploy your store after making any changes to the templates located in <X-Cart>/skins/ folder make them show up on the storefront.

Ali Kazim 08-10-2015 07:51 PM

Re: Smarty syntax not working - Xcart 5.2
 
Thanks razortw. That's what I have been looking for.

razortw 08-10-2015 11:37 PM

Re: Smarty syntax not working - Xcart 5.2
 
Quote:

Originally Posted by Ali Kazim
Thanks razortw. That's what I have been looking for.

You're welcome :)
Also, I forgot to mention that if you enable the developer mode in your store, there will be no need in rebuilding the store cache after editing template files.
All changes will be implemented instantly in that case.


All times are GMT -8. The time now is 01:13 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.